Forum Moderators: open
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings>
<add key="connect" value="Provider=Microsoft.Jet.OleDb.4.0;data source=../db/nsra.mdb;" />
<add key="conferencePayee" value="nsra@nereads.org" />
<!-- fee to become nsra member-->
<add key="registrationFee" value="25" />
<!-- fee to register for conference late -->
<add key="lateregistrationFee" value="25" />
<add key="sendfrom" value="nsra@nereads.org" />
<add key="mailhost" value="smtp01.intellicomweb.com" />
</appSettings>
<connectionStrings>
<add name="connect" connectionString="Provider=Microsoft.Jet.OleDb.4.0;data source=../db/nsra.mdb;" />
</connectionStrings>
<system.web>
<customErrors mode="Off"/>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode= "Forms">
<forms name=".ASPXAUTH" loginUrl="login.aspx" />
</authentication>
<!--
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>
</configuration>
but you state that you have IIS setup to use your credentials. You could either set Authentication Mode to windows, or remove the node altogether.
If you want both Forms and Windows Authentication, you can look into Mixed Mode Authentication [google.nl]
An ASP.Net (version 2 or higher) uses the Network Service Account, if you give this account access to the directory you should no longer receive the permission error.
Edit - to set the permissions, right-click the folder (or file), choose properties, tab security and add the Network Service account. Then you can set the desired permissions.
Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Once again, it should be going to default.aspx anyways. Any other ideas? Thanks,
That is the login page with the redirect url being private/default.aspx. It should just go to the default.aspx page. I can work with it on my machine and mirror the changes on the server if need be. You know, for all of the neat plugins and gui based development .net has, it's times like this that I miss developing in php. Any thoughts?
I am still getting a popup box that says Authentication required.
It seems to me that there are more issues than just permissions here, I have no experience with multiple web.configs in a solution as you describe here [webmasterworld.com]. It might be an idea to have another windows developer walk through the steps together with you to see if you might be overlooking something.
Or hopefully someone else will come by here with a better idea :)