Page loading problem

Discussion in 'ASP.NET 2.0' started by splanck, Nov 12, 2005.

  1. I have created a new ASP.NET 2.0 project using VWD 2005 Express, but when I attempt to access my blank default.aspx page I receive the following message in my browser:

    ---

    The page cannot be displayed
    You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

    Please try the following:

    * Contact the Web site administrator if you believe this directory should allow execute access.

    HTTP Error 403.1 - Forbidden: Execute access is denied.
    Internet Information Services (IIS)

    Technical Information (for support personnel)

    * Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403.
    * Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Configuring ISAPI Extensions, Configuring CGI Applications, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
    * In the IIS Software Development Kit (SDK) or at the MSDN Online Library, search for topics titled Developing ISAPI Extensions, ISAPI and CGI, and Debugging ISAPI Extensions and Filters.

    ---

    My web.config file is as follows:

    ---



    <configuration>
    <appSettings/>
    <connectionStrings>
    <add name='MySqlConnection' connectionString='Data Source=mssql09.discountasp.net;Persist Security Info=True;User ID=ptkindyorg0;Password=******' />
    </connectionStrings>

    <system.web>

    <compilation debug='false' strict='false' explicit='true' />
    <pages>
    <namespaces>
    <clear />
    <add namespace='System' />
    <add namespace='System.Collections' />
    <add namespace='System.Collections.Specialized' />
    <add namespace='System.Configuration' />
    <add namespace='System.Text' />
    <add namespace='System.Text.RegularExpressions' />
    <add namespace='System.Web' />
    <add namespace='System.Web.Caching' />
    <add namespace='System.Web.SessionState' />
    <add namespace='System.Web.Security' />
    <add namespace='System.Web.Profile' />
    <add namespace='System.Web.UI' />
    <add namespace='System.Web.UI.WebControls' />
    <add namespace='System.Web.UI.WebControls.WebParts' />
    <add namespace='System.Web.UI.HtmlControls' />
    </namespaces>
    </pages>
    <roleManager enabled='true' />
    <authentication mode='Forms'>
    <forms name='.ASPXFORMSAUTH' />
    </authentication>
    <authorization>
    <allow users='*'/>
    </authorization>

    <membership defaultProvider='SqlProvider' userIsOnlineTimeWindow='15'>
    <providers>
    <clear />
    <add
    name='SqlProvider'
    type='System.Web.Security.SqlMembershipProvider'
    connectionStringName='MySqlConnection'
    applicationName='MyApplication'
    enablePasswordRetrieval='false'
    enablePasswordReset='true'
    requiresQuestionAndAnswer='true'
    requiresUniqueEmail='true'
    minRequiredPasswordLength='4'
    minRequiredNonalphanumericCharacters='0'
    passwordStrengthRegularExpression=''
    passwordFormat='Hashed' />
    </providers>
    </membership>
    </system.web>
    </configuration>

    ---

    Anyone see anywhere that I'm going wrong? I'm totally confused on this one.

    Steve
     
  2. I ran into the same problem as well. It seems that all new web applications and web services that I try to create using VS2005 result in this error.
    I was reading another post somewhere on here that wasn't exactly related, but what they suggested was to go to the Web Application tool under Tools &amp; Utilities in the Control Panel, click on the directory that contains your web project, clickthe Remove Application button, wait 5 seconds (I waited 10 just to be safe) and then click the Install Application button. After doing this, everything now seems to work great.

    Hope this helps,

    Justin
     
  3. Bruce

    Bruce DiscountASP.NET Staff

Share This Page