Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. redirect iis to an asp.net subfolder

redirect iis to an asp.net subfolder

Scheduled Pinned Locked Moved ASP.NET
csharpquestionhtmlasp-netdotnet
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ayman Mashal
    wrote on last edited by
    #1

    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

    C A E A 4 Replies Last reply
    0
    • A Ayman Mashal

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      1 Reply Last reply
      0
      • A Ayman Mashal

        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

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        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 then Subfolder 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"

        1 Reply Last reply
        0
        • A Ayman Mashal

          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

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          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

          C 1 Reply Last reply
          0
          • E eyeseetee

            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

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            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 )

            1 Reply Last reply
            0
            • A Ayman Mashal

              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

              A Offline
              A Offline
              Ayman Mashal
              wrote on last edited by
              #6

              thank u all i fixed the problem by making the virtual directory type as a direct link

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups