Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > <authentication mode="Windows"/>

Reply
Thread Tools

<authentication mode="Windows"/>

 
 
inungh
Guest
Posts: n/a
 
      07-28-2008
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,

 
Reply With Quote
 
 
 
 
Michael Nemtsev [MVP]
Guest
Posts: n/a
 
      07-28-2008
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/ar.../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>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57