Talk about BUGS! not the movie but bugs in Visual
Studio.NET 2005. I was trying to implement simple security in Visual
Studio.NET 2005 by using folder security.
So, I created a folder name "Admin" and make these settings in my
web.config file.
<location path="Admin">
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</location>
When
I ran this code I get the following error:
Error 1 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:\Documents and Settings\AZAMSHARP\My Documents\Visual
Studio
2005\WebSites\PassingDataGridValues\Web.Config 28
You will only receive this error when the
folder in the web.config is present in your application directory.
Are
we looking at a new BUG in Visual Studio.NET
2005?
powered by IMHO 1.3