Getting Error: You are not authorized to view this page

Topics: Developer Forum, User Forum
May 24, 2010 at 7:45 AM

Hello,
I have created iirf.ini in my root site. Following are my rewritecond and rule for subdomain.

RewriteCond %{HTTP_HOST} ^([^\.]+)\.([^\.]+)\.domain\.com$
RewriteRule ^/(.*)$ /*2/*1/$1 [L]

RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com$
RewriteRule ^/(.*)$ /*1/$1 [L]

Problem:
Web Server: IIS 6
My root site is running under asp.net 2.0 with application pool version 2.0.
I have created "Admin" web folder as web application with asp.net 1.1 on application DefaultAppPool.

When i browse site domain.com/admin, it works fine.
But i m getting error on admin.domain.com.
===================================

====
You are not authorized to view this page
You do not have permission to view this directory or page using the credentials that you supplied.

Please try the following:

* Contact the Web site administrator if you believe you should be able to view this directory or page.
* Click the Refresh button to try again with different credentials.

HTTP Error 403 - Forbidden: Access is denied.
Internet Information Services (IIS)
===========================================

Its working fine, if root site and admin application run in same .net version and appPool.
Please help me.

- Kartik

Thanks.
Coordinator
May 24, 2010 at 2:54 PM

You cannot rewrite a URL into another appPool.   For a discussion of why, see

http://blogs.msdn.com/david.wang/archive/2006/06/21/ISAPI_Filter_and_the_IIS6_Process_Model.aspx

and be sure to read the 2nd and 4th comment. 

I should make the IIRF documentation clearer on this.

 

Coordinator
May 24, 2010 at 3:07 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.