Home All Groups Group Topic Archive Search About

ADO.net 2.0 Error on line 51 authentication mode=Windows of web.co

Author
27 Nov 2007 8:24 PM
Jeffrey
To run an example from ADOnet 2.0 SBS 2005 edition, I opened a web site from
File System (Microsoft Press folder).   I can review the Design and Source
tabs; however, running an example program, e.g. Chap 14-Finished, showed the
following error:

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:\Microsoft Press\ADO.NET 2.0 Step by Step\Chap14\VB\Chapter 14 -
Finish\Chapter 14 - Finish\web.config    51

I have created a virtural dorectory pointing to C:\Microsoft Press\ADO.NET
2.0 Step by Step\ and IIS Admin did show a virtual directory.  Why Chap 14
web site can not be opened? 

TIA,
Jeffrey

--
Jeffrey

Author
27 Nov 2007 10:38 PM
Norman Yuan
Have you conigured the virtual directory as application?

Show quote
"Jeffrey" <Jeff***@discussions.microsoft.com> wrote in message
news:A5C595EC-076C-4702-A594-399C7DA2593A@microsoft.com...
> To run an example from ADOnet 2.0 SBS 2005 edition, I opened a web site
> from
> File System (Microsoft Press folder).   I can review the Design and Source
> tabs; however, running an example program, e.g. Chap 14-Finished, showed
> the
> following error:
>
> 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:\Microsoft Press\ADO.NET 2.0 Step by Step\Chap14\VB\Chapter 14 -
> Finish\Chapter 14 - Finish\web.config 51
>
> I have created a virtural dorectory pointing to C:\Microsoft Press\ADO.NET
> 2.0 Step by Step\ and IIS Admin did show a virtual directory.  Why Chap 14
> web site can not be opened?
>
> TIA,
> Jeffrey
>
> --
> Jeffrey

AddThis Social Bookmark Button