Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access to the test.aspx message denied
Message
 
 
À
10/01/2012 12:33:51
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01532606
Message ID:
01532647
Vues:
23
>>>>>>Hi,
>>>>>>
>>>>>>I am in the process of installing an ASP.NET app on the customer virtual server. When I try to run a simple (one line) test.aspx, I get this message:
>>>>>>
>>>>>>
>>>>>>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.
>>>>>>
>>>>>>
>>>>>>What permissions should I be looking at?
>>>>>>
>>>>>>Additional information. This is Server 2008 64-bit.
>>>>>
>>>>>What do you mean be 'virtual server' ?
>>>>>IAC, if this is IIS, it sounds as if anonymous access is not allowed for the page. If you *do* want to allow anonymous access you must either configure for same using IIS manager or specifically allow it in web.config (see configuration/location element for details)
>>>>
>>>>As far as virtual server, I meant that the customer built this server as virtual server. But I don't think it matters, as far as my running my ASP.NET app.
>>>>
>>>>I think (but I will double check) that anonymouse access is enabled. The strange thing (to me) was that I could run a simple .html page in my app without any problem. But when I tried to browse a "hello world" .aspx I was getting this "access denied." So I suppose somewhere (and this is what I am trying to find out) in the Server 2008 IIS there has to be a setting to allow .aspx page to be loaded. Or my appl. I will keep looking. Thank you.
>>>
>>>Do you have access to IIS manager on the target server ?
>>>What version of IIS (I assume IIS 7) ?
>>
>>Yes (I have access to the IIS manager).
>>
>>This is Server 2008 and when I go to IIS and Help -> About. The version is 6.1 (Build 7601: Service Pack 1)
>
>In IIS Manager:
>Navigate to the page you are trying to access. Right click, choose Properties.
>Select 'File Security' tab.
>Click 'Edit' in 'Authentication & Access Control'
>Make sure 'Enable anonymous access' is checked.
>
>If you want to allow anonymous access to the whole site you can do pretty much the same thing at the site level:
>Choose Properties for the site then the 'Directory Security' tab then it's the same as above.....

Thank you. I will save these instructions for the next time I am having a problem. As I mentioned to William, the problem was in my web.config. I don't know which setting, exactly, was causing the issue. But once I replaced it, the pages are accessible.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform