Hep -- Authentication issue

W

Winnie

I am having issues with setting up the authentication for .net.
I have an aspx page in e:\myApp. I have set the virtual directory
"MyApp" in IIS and give IUSER_XXX and ANONYMOUS USER permission to
read and execute. Also, ASPNET user has the permission to read and
execute.

I changed my web.config and machine.config of my application to
<authentication mode="None" /> but it is still asking users from other
client Username and password. How can i disable the authentication?

Also, I have Runtime Error as followed:

Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons).
It could, however, be viewed by browsers running on the local server
machine.

Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within
a "web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a
custom error page by modifying the "defaultRedirect" attribute of the
application's <customErrors> configuration tag to point to a custom
error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly"
defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>


I have checked my web.config and <customErrors mode="Off" /> is
set.
What's happening????

Winnie
 
F

Francis Shanahan

I suspect there's a few things going on here.
You say users from other PCs are getting asked for a username and password?
This is probably because of network access, not access determined by .NET
Try granting access to the network users specifically or turning on Windows
Integration Authentication in IIS (same tab as Anonymous access). Turn on
both.

Second thing I think is .NET related, the custom errors.
An exception is being thrown but you are not allowed see the error message
when you access the site from anything other than http://localhost/MyApp

From this page:
http://msdn.microsoft.com/library/d...us/cpgenref/html/gngrfcustomerrorssection.asp
RemoteOnly Specifies that custom errors are shown only to remote
clients and ASP.NET errors are shown to the local host. This is the default.


I hope this helps,
-fs
 

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,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top