|
| You are not authorized to view this page |
 |
Tue, 1 Apr 2008 05:43:04 +0000 |
On my localhost i got this, setting the page on the web server, all become fine,
i am not sure what could be the problem (aspnet_wp has far more access on my
machine that on the server, it is even not listed as have access to wwwroot on
the server, and yet it makes never any problem.). So this is what is annoying
me, if i tried to access the site using something like localhost/site i got the
error in subject, then if i choosed something like :
localhost/site/default.aspx, i got no style sheets or image (asp.net
authorization doesn't apply to static content isn't ?) So all in all, everything
is wrong, what could be the cause of all these errors
Thanks
|
| Post Reply
|
| Re: You are not authorized to view this page |
 |
Tue, 1 Apr 2008 07:03:29 +0000 |
First; you should give the proper version information so that you would get
correct and quick solution..
Try some work-a-round:
[1] Enable "integrated windows authentication" from "directory
security Tab > Edit" by right click the virtual directory in IIS.
[2] if your asp.net script mappings are not present, you can type aspnet_regiis
to install the script mappings. Here is an article on this tool.ASP.NET IIS
Registration Tool (Aspnet_regiis.exe).
[3] do you able to access http://localhost perfectly ??
[4] check the Event Log; you would find some detailed error log there.
[5] check out below resolved thread links >
You are not authorized to view this page - MSDN Forums
Anonymous access, but "You are not authorized to view this page" ?? -
ASP.NET Forums
hope it helps./.
|
| Post Reply
|
| Re: You are not authorized to view this page |
 |
Wed, 2 Apr 2008 00:45:02 +0000 |
[1] and [3] : if i use integrated security i have to type in my windows login,
in fact if i type http://localhost it prompt me for password
[2] i don't think this is the problem, i already registered asp.net with iis,
and in the mapping section i can see all asp.net mapping extensions available.
[4] checking the event log i got this :
when i try to access the pages in my url directy i got this:
Failed to execute the request because the ASP.NET process identity does not have
read permissions to the global assembly cache. Error: 0x80070005 Access is
denied.
followed by
aspnet_wp.exe (PID: 2768) stopped unexpectedly.
I removed the authorization in my web.config and still i cannot access the site
!
[5] tried every variation of solution proposed and nothing worked for me, mostly
they all are try to guess and try, even the persons who solve their problem
aren't sure why they're been solved.
Thanks
|
| Post Reply
|
| Re: You are not authorized to view this page |
 |
Wed, 2 Apr 2008 07:43:41 +0000 |
fzaynoun:Failed to execute the request because the ASP.NET process identity does
not have read permissions to the global assembly cache. Error: 0x80070005 Access
is denied.
followed by
aspnet_wp.exe (PID: 2768) stopped unexpectedly.
did you try to googling this error ?
Global Assembly Cache Security
|
| Post Reply
|
| Re: You are not authorized to view this page |
 |
Wed, 2 Apr 2008 23:33:13 +0000 |
Of course i already had same error before and tried this, but didn't worked out,
i remember fixing this then it pop up again, i am not sure what could be the
problem now.
Ooh! I know it is just that the folder was not inheriting the security settings
on the wwwroot folder, so when even static pages will not be available and iis
user process have no access to this folder (nor aspnet user account), solve it
simply by choosing to inherit security settings from parrent folder and work
fine now.
Thanks
|
| Post Reply
|
|
|
|
|
|
|
|
|
|