<authentication mode="Windows"/>

I

inungh

I tried to place a grid view on my design view and connect to new data
source to local SQL Express server Northwind database. I got error
message on line 80

<authentication mode="Windows"/>

The full error message is following:

D:\websites\begaspnet2db\web.config(80): Build (web): 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.


I checked my SQL Express which uses Windows authentication.

Should I check Visual Web Developer express as well?

Your help is great appreciated,
 
M

Michael Nemtsev [MVP]

Hello inungh,

Check which folder is used as IIS virtual folder, because seems that your
web.config locates above
Check if your web.config is well-formed xml file, because smth could be wrong
when you added the SQL connection

Read more details about this there http://geekswithblogs.net/ranganh/archive/2005/04/25/37609.aspx


---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


i> I tried to place a grid view on my design view and connect to new
i> data source to local SQL Express server Northwind database. I got
i> error message on line 80
i>
i> <authentication mode="Windows"/>
i>
i> The full error message is following:
i>
i> D:\websites\begaspnet2db\web.config(80): Build (web): It is an error
i> to use a section registered as allowDefinition='MachineToApplication'
i> beyond application level. This error can be caused by a virtual
i> directory not being configured as an application in IIS.
i>
i> I checked my SQL Express which uses Windows authentication.
i>
i> Should I check Visual Web Developer express as well?
i>
i> Your help is great appreciated,
i>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top