Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8401475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:48:58+00:00 2026-06-09T21:48:58+00:00

I am trying to deploy my ASP.NET website with database (SQL Server 2008) on

  • 0

I am trying to deploy my ASP.NET website with database (SQL Server 2008) on a remote server. However, I am getting error from the WebConfig file.

WEBCONFIG:

In VS 2010, the WebConfig contained:

<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=SOMETOKEN"/>
      </assemblies>
    </compilation>
  </system.web>
</configuration>

When I ran the page on the web server, I got this error:

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

So, I added <customErrors mode="Off"/> and modified my Web.Config to:

<compilation debug="false" targetFramework="4.0">
    <customErrors mode="Off"/>  
      <assemblies>
        <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>         
    </compilation> 

But it won’t help. I am still getting the same error. What am I missing? I remember deploying other project WITHOUT ASSEMBLIES (*.dlls), and that worked fine. Is the Assembly messing up something? If yes, can you please suggest the fix?

I am surprised, that there’s no SINGLE tutorial explaining the deployment of an ASP.NET “website”, and what should be done to the web.config file. What special care should be taken when there’s assemblies used (if at all).

I’ll appreciate help towards the smooth deployment of the same. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:49:00+00:00Added an answer on June 9, 2026 at 9:49 pm

    Error: customErrors is inside compilation tag

    Change the order to:

    <customErrors mode="Off"/>  
    <compilation debug="false" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>         
    </compilation> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to deploy my new ASP.NET MVC 2.0 website to our Windows Server
I am trying to deploy to a remote server and this is the error
I am trying to deploy a website on Win Server 2008 R2 machine with
I am trying to deploy an ASP.NET 3.5 Web Application to my production server
While trying to deploy a simple asp.net mvc project on an IIS 6 server,
I'm trying to deploy a website using ASP.NET membership and the hosting company is
I am trying to deploy an asp .net MVC app onto II7 and getting
I'm trying to deploy my ASP.NET MVC 2 Website for the first time on
While trying to deploy an ASP.NET MVC3 locally on my IIS7 , I'm facing
I am trying to deploy a test ASP.NET MVC site to a site hosted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.