redirect iis to an asp.net subfolder
-
Hi, i have an asp.net project that contains a subfolder (myproj/subfolder) with some classes and pages i want to run what is in the subfolder in this fashion http://localhost/subfolder/.... etc can i do that ? i tried to create a virtual directory in IIS that points to myproj/subfolder but when i run the link http://localhost/subfolder/Client/UserPermissions.aspx i got the error
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.Parser Error Message: Could not load type 'subfolder.Client.UserPermissions'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="UserPermissions.aspx.cs" AutoEventWireup="false" Inherits="subfolder.Client.UserPermissions" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>Source File: C:\Inetpub\wwwroot\myproj\subfolder\Client\UserPermissions.aspx Line: 1
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
-
Hi, i have an asp.net project that contains a subfolder (myproj/subfolder) with some classes and pages i want to run what is in the subfolder in this fashion http://localhost/subfolder/.... etc can i do that ? i tried to create a virtual directory in IIS that points to myproj/subfolder but when i run the link http://localhost/subfolder/Client/UserPermissions.aspx i got the error
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.Parser Error Message: Could not load type 'subfolder.Client.UserPermissions'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="UserPermissions.aspx.cs" AutoEventWireup="false" Inherits="subfolder.Client.UserPermissions" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>Source File: C:\Inetpub\wwwroot\myproj\subfolder\Client\UserPermissions.aspx Line: 1
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
If you left IIS alone, this would just work
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Hi, i have an asp.net project that contains a subfolder (myproj/subfolder) with some classes and pages i want to run what is in the subfolder in this fashion http://localhost/subfolder/.... etc can i do that ? i tried to create a virtual directory in IIS that points to myproj/subfolder but when i run the link http://localhost/subfolder/Client/UserPermissions.aspx i got the error
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.Parser Error Message: Could not load type 'subfolder.Client.UserPermissions'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="UserPermissions.aspx.cs" AutoEventWireup="false" Inherits="subfolder.Client.UserPermissions" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>Source File: C:\Inetpub\wwwroot\myproj\subfolder\Client\UserPermissions.aspx Line: 1
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
Ayman Mashal wrote:
can i do that ?
Sure, You Can !!
Ayman Mashal wrote:
i got the error
Make Sure, you made the RootDirectory as Virtual Directory means
http://localhost/subfolder/Client/UserPermissions.aspx
if this is your path thenSubfolder
should be the virtual Directory**And Please Check The Asp.Net Version Of IIS -> Virtual Directory Property -> Asp.net Version. Make sure this is same with your Development version.**
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
-
Hi, i have an asp.net project that contains a subfolder (myproj/subfolder) with some classes and pages i want to run what is in the subfolder in this fashion http://localhost/subfolder/.... etc can i do that ? i tried to create a virtual directory in IIS that points to myproj/subfolder but when i run the link http://localhost/subfolder/Client/UserPermissions.aspx i got the error
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.Parser Error Message: Could not load type 'subfolder.Client.UserPermissions'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="UserPermissions.aspx.cs" AutoEventWireup="false" Inherits="subfolder.Client.UserPermissions" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>Source File: C:\Inetpub\wwwroot\myproj\subfolder\Client\UserPermissions.aspx Line: 1
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
Ive found in the past that setting up my folder in sub directories and then using that in virtual directory causes problems, althought that might just be me Or the code behind file may: a. not be called that b. might be in a different folder which may cause problems hope this helps
We are not a Code Charity
-
Ive found in the past that setting up my folder in sub directories and then using that in virtual directory causes problems, althought that might just be me Or the code behind file may: a. not be called that b. might be in a different folder which may cause problems hope this helps
We are not a Code Charity
The problem is that his page relies on code that's in the app_code folder at the root, which he's just cut off at the knees.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Hi, i have an asp.net project that contains a subfolder (myproj/subfolder) with some classes and pages i want to run what is in the subfolder in this fashion http://localhost/subfolder/.... etc can i do that ? i tried to create a virtual directory in IIS that points to myproj/subfolder but when i run the link http://localhost/subfolder/Client/UserPermissions.aspx i got the error
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.Parser Error Message: Could not load type 'subfolder.Client.UserPermissions'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="UserPermissions.aspx.cs" AutoEventWireup="false" Inherits="subfolder.Client.UserPermissions" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>Source File: C:\Inetpub\wwwroot\myproj\subfolder\Client\UserPermissions.aspx Line: 1
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
thank u all i fixed the problem by making the virtual directory type as a direct link