Web.config errors after publishing VS 2005 site...

Last post 10-16-2007 7:08 PM by ASPNET-PRO. 4 replies.

Sort Posts:

  • Web.config errors after publishing VS 2005 site...

    10-11-2007, 2:23 PM
    • Loading...
    • GOMC
    • Joined on 10-11-2007, 6:12 PM
    • Posts 2

    Hey guys, I've seen posts that seemed to have a similiar problem but no solution was offered so let me ask.

     

    I've created a web site with VS 2005 Pro and published it to the Local IIS on my Windows 2003 Server.  When I run the project in development mode it works fine.  However, when I try to access it by using the IP address at gives me the error you see below.  Before I received this error I had an error complaining about my mailsettings tag within the web.config file, I commented the while tag out and now it's complaining about the next tag down.  How do I fix this; I deffinetely need to be able to access my database? 

    Server Error in '/' Application.

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Unrecognized configuration section 'connectionStrings'

    Source Error:

    Line 16:   </system.net>
    Line 17: 
    Line 18:   <connectionStrings>
    Line 19:   <add name="CS1" connectionString="Dsn=MySQL;database=MYDATABASE;option=0;pwd=PASS;port=0;uid=UID"
    Line 20:       providerName="System.Data.Odbc" />

    Source File: c:\inetpub\wwwroot\web.config    Line: 18


    Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407

    Filed under: , ,
  • Re: Web.config errors after publishing VS 2005 site...

    10-11-2007, 2:53 PM
    • Loading...
    • Curt_C
    • Joined on 07-23-2003, 8:27 PM
    • Stevens Point, WI - USA
    • Posts 4,285
    • Moderator

    Note the last line:
    Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407

    You are running a .Net 2.0 site under a .Net 1.1 environment.

    Curt Christianson
  • Re: Web.config errors after publishing VS 2005 site...

    10-11-2007, 3:46 PM
    • Loading...
    • GOMC
    • Joined on 10-11-2007, 6:12 PM
    • Posts 2

     Thanks Curt C, I can see how that would be an issueEmbarrassed.  However, when looking on-line to change IIS to use asp 2 I keep seeing a run command such as "c:/program files/Microsoft.net/(framework version)..."  The point is within microsoft.net I only have ADOMD.NET, Odbc.Net, and Primary Interop Assemblies.  So, I guess, the question is how do I change IIS to work with the project?

  • Re: Web.config errors after publishing VS 2005 site...

    10-12-2007, 8:27 AM
    • Loading...
    • Curt_C
    • Joined on 07-23-2003, 8:27 PM
    • Stevens Point, WI - USA
    • Posts 4,285
    • Moderator

    huh? Do you mean you dont have the .Net 2.0 framework installed on the server? You will need this, it's required.

    Also, if what you are reading is talking about running the aspnet_regiis command, that' is typically in:
    C:\Windows\Microsoft.Net\Framework\<version>
    not
    C:\Program Files\Microsoft.Net\......

    Curt Christianson
  • Re: Web.config errors after publishing VS 2005 site...

    10-16-2007, 7:08 PM
    • Loading...
    • ASPNET-PRO
    • Joined on 10-16-2007, 6:58 PM
    • Posts 5

    Yep, you are missing .NET 2.0 framework.

Page 1 of 1 (5 items)
Microsoft Communities
Page view counter