Ask a Question related to ASP.NET Security, Design and Development.
-
Cowboy \(Gregory A. Beamer\) #1
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...i> Hi,
>
> i'm trying to run an asp.net application wich is located on network share.--> 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.
> --------------------------------------------------------------------------to> ----
>
> Parser Error
> Description: An error occurred during the parsing of a resource requiredInherits="Test.Global"> 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"i> %>
>
>
>
>
> 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 permissionsfull> have set the share permission and also ntfs permissions for everyone toi> control, but it doesn't help.
> This really doesn't seem to be share or ntfs permissions problem, because> 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
-
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... -
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... -
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... -
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... -
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... -
Cowboy \(Gregory A. Beamer\) #2
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...i> Hi,
>
> i'm trying to run an asp.net application wich is located on network share.--> 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.
> --------------------------------------------------------------------------to> ----
>
> Parser Error
> Description: An error occurred during the parsing of a resource requiredInherits="Test.Global"> 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"i> %>
>
>
>
>
> 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 permissionsfull> have set the share permission and also ntfs permissions for everyone toi> control, but it doesn't help.
> This really doesn't seem to be share or ntfs permissions problem, because> 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
-
Mike S #3
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.
>
> RobertMike S Guest
-
Mike S #4
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.
>
> RobertMike S Guest
-
Mike S #5
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.
> >
> > RobertMike S Guest
-
Mike S #6
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.
> >
> > RobertMike S Guest



Reply With Quote

