Posted on 2007-10-18
Last Modified: 2013-11-27
I am running an .aspx page on a Windows 2003 Server which was made using Visual Web Developer 2005 Express Edition.  The page has one connection string named "My_ConnectionString", and several SqlDataSource controls using this string.  The string connects to a SQL Server 2000 table on the same server.  Visual Web Developer 2005 Express runs a local server which displays the page, but when running it from another computer on the network, I get the following error:
"Configuration Error", "Parser Error Message: Unrecognized configuration section 'connectionStrings'."
It highlights Line 12 of the web.config file that VWD 2005 Express generates.  This web.config file contains the following:

<?xml version="1.0"?>
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
        <add name="My_ConnectionString" connectionString="Data Source=SQLSERVER;Initial Catalog=Book_orders;Integrated Security=True"
            providerName="System.Data.SqlClient" />
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        <compilation debug="false" />
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        <authentication mode="Windows" />
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />

How can I modify this web.config file so any computer can access and display this aspx page appropriately with IIS?
Question by:Stormspace
    1 Comment
    LVL 37

    Accepted Solution

    Since it's working from inside VisualWebDev and not IIS....I'm guessing IIS isn't properly configured...check IIS and make sure that the aspx page is in a virtual directory that is configured as an application and that the virtual directory is running ASP.Net 2.0....


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now