Running ASP.NET application from network share

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Re: Running ASP.NET application from network share

    The problem is the same with running apps across domain boundaries (app
    domain, not NT domain). You are creating what, in essence, is a distributed
    application. The system can pull the ASPX pages and parse from your UNC, but
    it has a hard time pulling the assemblies into memory. Thus, you end up with
    a failure.

    Choices:
    1. Move all of your code into the ASPX pages and ASAX page. .NET will
    compile when you run the app
    2. Go to local drive, or map the UNC to a drive letter (The machine will set
    it as local)
    3. Separate the UI layer from the back end and run the backend on the other
    server (remoting or web services or serviced component)

    IIS has never been good at serving apps from another server. What happens if
    the web server stays up and the application server goes down? How do you
    create a system to handle this without overengineering the rest of the
    system? And, how many customers try to serve web apps from a machine that
    does not have a web server on it?

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA
    Author: ADO.NET and XML: ASP.NET on the Edge

    ************************************************** **************************
    ****
    Think Outside the Box!
    ************************************************** **************************
    ****
    "Robert Remen" <robert@remen.at> wrote in message
    news:bfr3ts$ghm$1@at-vie-newsmaster01.nextra.at...
    > Hi,
    >
    > i'm trying to run an asp.net application wich is located on network share.
    i
    > use an win2003 server configured as domain controller running IIS. I have
    > created and shared a directory, wich contains the application files. If i
    > configure the root of the virtual directory to point to this network share
    > and i try to access this application with a webbrowser, i get following
    > error:
    >
    > Server Error in '/' Application.
    > --------------------------------------------------------------------------
    --
    > ----
    >
    > 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 'Test.Global'.
    >
    > Source Error:
    >
    > Line 1: <%@ Application Codebehind="Global.asax.cs"
    Inherits="Test.Global"
    > %>
    >
    >
    >
    >
    > But if i configure the root of the virtual directory to point to local
    > directory (wich ist in fact the shared directory), everything works fine.
    > To be sure, the problem are not the share permissions or ntfs permissions
    i
    > have set the share permission and also ntfs permissions for everyone to
    full
    > control, but it doesn't help.
    > This really doesn't seem to be share or ntfs permissions problem, because
    i
    > can access static pages in this application wihout problems.
    >
    > Does anybody have an idea what's wrong?
    > Thank you for your help.
    >
    > Robert
    >
    >

    Cowboy \(Gregory A. Beamer\) Guest

  2. Similar Questions and Discussions

    1. Problem with asp.net application locate on network share
      Hi all, I have an asp.net application (framework 1.1 sp1) on windows server 2003. When the document root is locate in local that's all ok... but...
    2. Running ASP.NET app off network share
      I'm using IIS 6.0 to try to run an ASP.NET application the files for which live on a shared folder on a machine which also happens to be on a...
    3. Writing to a network share
      I posted this message in dotnet.framework.security, and was told to repost it her Alright, I've been trying to figure out the solution to this...
    4. ASPNET Account Security Problem - Running a Web Application over a network share
      All, If anyone has been following my trials over the last week see(Setting up a Web Application on IIS 5.1 and ASP.Net Security Problems). I'm...
    5. Share files on network
      I have just installed a router between two computers. The main computer is running XP Pro and the other is running 2K pro. Both computers are able...
  3. #2

    Default Re: Running ASP.NET application from network share

    The problem is the same with running apps across domain boundaries (app
    domain, not NT domain). You are creating what, in essence, is a distributed
    application. The system can pull the ASPX pages and parse from your UNC, but
    it has a hard time pulling the assemblies into memory. Thus, you end up with
    a failure.

    Choices:
    1. Move all of your code into the ASPX pages and ASAX page. .NET will
    compile when you run the app
    2. Go to local drive, or map the UNC to a drive letter (The machine will set
    it as local)
    3. Separate the UI layer from the back end and run the backend on the other
    server (remoting or web services or serviced component)

    IIS has never been good at serving apps from another server. What happens if
    the web server stays up and the application server goes down? How do you
    create a system to handle this without overengineering the rest of the
    system? And, how many customers try to serve web apps from a machine that
    does not have a web server on it?

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA
    Author: ADO.NET and XML: ASP.NET on the Edge

    ************************************************** **************************
    ****
    Think Outside the Box!
    ************************************************** **************************
    ****
    "Robert Remen" <robert@remen.at> wrote in message
    news:bfr3ts$ghm$1@at-vie-newsmaster01.nextra.at...
    > Hi,
    >
    > i'm trying to run an asp.net application wich is located on network share.
    i
    > use an win2003 server configured as domain controller running IIS. I have
    > created and shared a directory, wich contains the application files. If i
    > configure the root of the virtual directory to point to this network share
    > and i try to access this application with a webbrowser, i get following
    > error:
    >
    > Server Error in '/' Application.
    > --------------------------------------------------------------------------
    --
    > ----
    >
    > 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 'Test.Global'.
    >
    > Source Error:
    >
    > Line 1: <%@ Application Codebehind="Global.asax.cs"
    Inherits="Test.Global"
    > %>
    >
    >
    >
    >
    > But if i configure the root of the virtual directory to point to local
    > directory (wich ist in fact the shared directory), everything works fine.
    > To be sure, the problem are not the share permissions or ntfs permissions
    i
    > have set the share permission and also ntfs permissions for everyone to
    full
    > control, but it doesn't help.
    > This really doesn't seem to be share or ntfs permissions problem, because
    i
    > can access static pages in this application wihout problems.
    >
    > Does anybody have an idea what's wrong?
    > Thank you for your help.
    >
    > Robert
    >
    >

    Cowboy \(Gregory A. Beamer\) Guest

  4. #3

    Default Re: Running ASP.NET application from network share

    Robert,

    I am trying to do the EXACT same thing as you. I am get the same
    results as you. I have tried many things with no success. If you
    figure out the answer, please post it.

    Thanks,
    Mike S

    "Robert Remen" <robert@remen.at> wrote in message news:<bfr3ts$ghm$1@at-vie-newsmaster01.nextra.at>...
    > Hi,
    >
    > i'm trying to run an asp.net application wich is located on network share. i
    > use an win2003 server configured as domain controller running IIS. I have
    > created and shared a directory, wich contains the application files. If i
    > configure the root of the virtual directory to point to this network share
    > and i try to access this application with a webbrowser, i get following
    > error:
    >
    > Server Error in '/' Application.
    > ----------------------------------------------------------------------------
    > ----
    >
    > 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 'Test.Global'.
    >
    > Source Error:
    >
    > Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Test.Global"
    > %>
    >
    >
    >
    >
    > But if i configure the root of the virtual directory to point to local
    > directory (wich ist in fact the shared directory), everything works fine.
    > To be sure, the problem are not the share permissions or ntfs permissions i
    > have set the share permission and also ntfs permissions for everyone to full
    > control, but it doesn't help.
    > This really doesn't seem to be share or ntfs permissions problem, because i
    > can access static pages in this application wihout problems.
    >
    > Does anybody have an idea what's wrong?
    > Thank you for your help.
    >
    > Robert
    Mike S Guest

  5. #4

    Default Re: Running ASP.NET application from network share

    Robert,

    I am trying to do the EXACT same thing as you. I am get the same
    results as you. I have tried many things with no success. If you
    figure out the answer, please post it.

    Thanks,
    Mike S

    "Robert Remen" <robert@remen.at> wrote in message news:<bfr3ts$ghm$1@at-vie-newsmaster01.nextra.at>...
    > Hi,
    >
    > i'm trying to run an asp.net application wich is located on network share. i
    > use an win2003 server configured as domain controller running IIS. I have
    > created and shared a directory, wich contains the application files. If i
    > configure the root of the virtual directory to point to this network share
    > and i try to access this application with a webbrowser, i get following
    > error:
    >
    > Server Error in '/' Application.
    > ----------------------------------------------------------------------------
    > ----
    >
    > 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 'Test.Global'.
    >
    > Source Error:
    >
    > Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Test.Global"
    > %>
    >
    >
    >
    >
    > But if i configure the root of the virtual directory to point to local
    > directory (wich ist in fact the shared directory), everything works fine.
    > To be sure, the problem are not the share permissions or ntfs permissions i
    > have set the share permission and also ntfs permissions for everyone to full
    > control, but it doesn't help.
    > This really doesn't seem to be share or ntfs permissions problem, because i
    > can access static pages in this application wihout problems.
    >
    > Does anybody have an idea what's wrong?
    > Thank you for your help.
    >
    > Robert
    Mike S Guest

  6. #5

    Default Re: Running ASP.NET application from network share

    Robert,

    Consider the following Google news group thread. This solved my
    problem, which sounds a lot like yours.

    [url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=c2e26e6b.0307300709.40f49fe2%40posting.g oogle.com&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dtestproject4%26meta%3Dgroup%253Dmicrosoft. public.dotnet.framework.aspnet.*[/url]

    I don't know if the link will work for you. If not, search the news
    group for 'testproject4.Global' and 'could not load type'. You'll
    find the thread there. (From July 30th).

    Hope this helps you like it did me.

    Have fun.

    Mike S



    [email]cmsuser@hotmail.com[/email] (Mike S) wrote in message news:<c2e26e6b.0308010807.35cbb5b4@posting.google. com>...
    > Robert,
    >
    > I am trying to do the EXACT same thing as you. I am get the same
    > results as you. I have tried many things with no success. If you
    > figure out the answer, please post it.
    >
    > Thanks,
    > Mike S
    >
    > "Robert Remen" <robert@remen.at> wrote in message news:<bfr3ts$ghm$1@at-vie-newsmaster01.nextra.at>...
    > > Hi,
    > >
    > > i'm trying to run an asp.net application wich is located on network share. i
    > > use an win2003 server configured as domain controller running IIS. I have
    > > created and shared a directory, wich contains the application files. If i
    > > configure the root of the virtual directory to point to this network share
    > > and i try to access this application with a webbrowser, i get following
    > > error:
    > >
    > > Server Error in '/' Application.
    > > ----------------------------------------------------------------------------
    > > ----
    > >
    > > 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 'Test.Global'.
    > >
    > > Source Error:
    > >
    > > Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Test.Global"
    > > %>
    > >
    > >
    > >
    > >
    > > But if i configure the root of the virtual directory to point to local
    > > directory (wich ist in fact the shared directory), everything works fine.
    > > To be sure, the problem are not the share permissions or ntfs permissions i
    > > have set the share permission and also ntfs permissions for everyone to full
    > > control, but it doesn't help.
    > > This really doesn't seem to be share or ntfs permissions problem, because i
    > > can access static pages in this application wihout problems.
    > >
    > > Does anybody have an idea what's wrong?
    > > Thank you for your help.
    > >
    > > Robert
    Mike S Guest

  7. #6

    Default Re: Running ASP.NET application from network share

    Robert,

    Consider the following Google news group thread. This solved my
    problem, which sounds a lot like yours.

    [url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=c2e26e6b.0307300709.40f49fe2%40posting.g oogle.com&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dtestproject4%26meta%3Dgroup%253Dmicrosoft. public.dotnet.framework.aspnet.*[/url]

    I don't know if the link will work for you. If not, search the news
    group for 'testproject4.Global' and 'could not load type'. You'll
    find the thread there. (From July 30th).

    Hope this helps you like it did me.

    Have fun.

    Mike S



    [email]cmsuser@hotmail.com[/email] (Mike S) wrote in message news:<c2e26e6b.0308010807.35cbb5b4@posting.google. com>...
    > Robert,
    >
    > I am trying to do the EXACT same thing as you. I am get the same
    > results as you. I have tried many things with no success. If you
    > figure out the answer, please post it.
    >
    > Thanks,
    > Mike S
    >
    > "Robert Remen" <robert@remen.at> wrote in message news:<bfr3ts$ghm$1@at-vie-newsmaster01.nextra.at>...
    > > Hi,
    > >
    > > i'm trying to run an asp.net application wich is located on network share. i
    > > use an win2003 server configured as domain controller running IIS. I have
    > > created and shared a directory, wich contains the application files. If i
    > > configure the root of the virtual directory to point to this network share
    > > and i try to access this application with a webbrowser, i get following
    > > error:
    > >
    > > Server Error in '/' Application.
    > > ----------------------------------------------------------------------------
    > > ----
    > >
    > > 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 'Test.Global'.
    > >
    > > Source Error:
    > >
    > > Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Test.Global"
    > > %>
    > >
    > >
    > >
    > >
    > > But if i configure the root of the virtual directory to point to local
    > > directory (wich ist in fact the shared directory), everything works fine.
    > > To be sure, the problem are not the share permissions or ntfs permissions i
    > > have set the share permission and also ntfs permissions for everyone to full
    > > control, but it doesn't help.
    > > This really doesn't seem to be share or ntfs permissions problem, because i
    > > can access static pages in this application wihout problems.
    > >
    > > Does anybody have an idea what's wrong?
    > > Thank you for your help.
    > >
    > > Robert
    Mike S Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139