Database error in Chapter 13, C# version
Firstly when I downloaded the chapter and opened the website the SqlDataSource connection string did not automatically appear and I had to browse for it. Then when I built the index page for the catalogue and tried to run it the following error appeared (see below)
can anyone explain what is going wrong & how to fix it?
thanks
J
Server Error in '/Chapter13' 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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 26: ASP.NET to identify an incoming user.
Line 27: -->
Line 28: <authentication mode="Windows"/>
Line 29: <!--
Line 30: The <customErrors> section enables configuration
Source File: C:\begASPNET2\Begin\Chapter13\begin\chapter13\web. config Line: 28
Show Additional Configuration Errors:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\begASPNET2\Begin\Chapter13\begin\chapter13\web .config line 41)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\begASPNET2\Begin\Chapter13\begin\chapter13\web .config line 42)
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
|