You are not authorise to view this page

You are not authorise to view this page

am 08.11.2007 17:43:54 von RichGK

I have just uploaded a Web application to the wwwroot directory and I
am getting the above error. I have already created applications and
uploaded them to the directory and they work fine. As far as I can see
configuration for the problem site and the sites that work are exactly
the same. Also the web.config file contains the same security
information as the working sites.










I am using Integrated Windows authentication but have also tried
switching this off and using Anonymous access. I get the error message
whether I access the page from a remote browser or on the server
itself using IIS. As I mentioned before previously created sites work
under all situations (accessing remotely, accessing via IIS, accessing
using an authenticated logon or server administrator).

I'm at my wits end! Can anyone help?

Re: You are not authorise to view this page

am 08.11.2007 20:16:57 von Tiago Halm

Check the NTFS ALCs on the physical files.
Also check if there is any ISAPI Filter/Extension intercepting the requests.
Finally, check if the new VDir is correctly created.

To test, create a simple ashx ou aspx on the new VDir. Browse it. If you get
401, copy that same file to a VDir that works. If you can browse it, then
issue is with the new VDir. Otherwise it may be dure to ACLs.

Make a testing and checking round on the above ...

Tiago Halm

Re: You are not authorise to view this page

am 09.11.2007 10:10:03 von RichGK

On 8 Nov, 19:16, "Tiago Halm" wrote:
> Check the NTFS ALCs on the physical files.
> Also check if there is any ISAPI Filter/Extension intercepting the requests.
> Finally, check if the new VDir is correctly created.
>
> To test, create a simple ashx ou aspx on the new VDir. Browse it. If you get
> 401, copy that same file to a VDir that works. If you can browse it, then
> issue is with the new VDir. Otherwise it may be dure to ACLs.
>
> Make a testing and checking round on the above ...
>
> Tiago Halm

I deleted the Visual Studio published site (deleted the folder), re-
created it then and copied the data across (manually this time instead
of using publish). Then re-created the site as an application. This
seems to have fixed the problem with the lack of access but has
highlighted a different problem.

I now get the compilation error CS0030: Cannot convert type
'ASP.loginpage_aspx' to 'System.Web.UI.WebControls.Login' when
attempting to browse the site.

I had this problem previously and had to delete a page named
Login.aspx in my application and re-create it named LoginPage.aspx to
get it to work. Also the underlying class is named LoginPage so I'm
not sure why it is attempting to convert the page to the Login type.

Also, when I try to browse a page directly from within IIS I get a
resource cannot be found error and the resource is /PhoneReports2/
Login.aspx.

Re: You are not authorise to view this page

am 09.11.2007 10:28:16 von RichGK

On 9 Nov, 09:10, RichGK wrote:

Fixed it!

The problem as defined in the OP was something to do with using the
Publish site function from within Visual Studio. The other problem was
due to me accidentally copying across an old compiled version of the
site instead of the new one which fixed the Login.aspx problem!