Re: Hosting from a network share
From: JJ (jj@nospam.com)
Date: 11/08/02
- Next message: Mary Chipman: "Re: windows authentication & mapping to database"
- Previous message: Sergey L.Ponomarev: "Auth Cookie timeout"
- In reply to: Ben Luckham: "Hosting from a network share"
- Next in thread: Ben Luckham: "Re: Hosting from a network share."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "JJ" <jj@nospam.com> Date: Fri, 8 Nov 2002 08:50:44 -0500
No help here, but I'm in the same boat. It runs fine on a staging server
where it is not stored on a network share, but the production site runs IIS
on two different servers (accessed through a load balancer) and the web
files are stored on a third server and accessed by IIS through a network
share.
There was *something* I did that made it work -- once! Unfortunately, I was
changing so many things that I lost track of what made it work that one
time. I now have a .dll containing the code-behind for a .aspx page that
works off the network share - but ONLY that version of the .dll. If I
upload a new version of the .dll, it breaks again with the same security
exception. If I rename the old .dll back to its original name, the .aspx
starts working again. So something is stored somewhere that is associated
with that specific version of the .dll.
We are going to set up something in our office to simulate the setup of the
production setup. But if we can't get it to work, management here is about
ready to abandon ASP.NET and continue with .asp, since that works fine in
the same setup. We can't get any good answers as to how to make the ASP.NET
code work in the above setup.
"Ben Luckham" <ben.luckham@nosapm.co.uk> wrote in message
news:aqg5j6$mb8$1@news.swman.net.uk...
> Hi,
>
> We are having trouble running an ASP.NET application, when the .aspx, .cs
> and .dll files are located on a network share (i.e. not on the same
machine
> as the IIS that serves them).
>
> We have successully tested the application from a local directory, but now
> need to move it to a network share. Having done this, we set up a virtual
> directory in IIS that points to this network share, specifying a valid
> username and password for connecting AND for anonymous access. However,
> whenever we try to access the aspx file (using
> http://localhost/VirtualDir/OutMessages.aspx) we get the following error:
>
> ---
>
> Security Exception
>
> Description: The application attempted to perform an operation not allowed
> by the security policy. To grant this application the required permission
> please contact your system administrator or change the application's trust
> level in the configuration file.
>
> Exception Details: System.Security.SecurityException: Security error.
>
> ---
>
> The source error on this page highlights the constructor from an
> automatically generated C# file located somewhere under
> c:\Winnt\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files. Does
> anyone have any idea what the heck is going on here?
>
> In sheer frustration, we have jacked up the Internet_Zone code group to
> FullTrust and added <trust level="Full" originUrl="" /> to the Web.config
> file and completely disabled any security settings we can possibly think
of.
> I would greatly appreciate some help with this before someone breaks into
my
> dangerously unsecure PC!
>
> Thanks,
> Ben.
>
>
- Next message: Mary Chipman: "Re: windows authentication & mapping to database"
- Previous message: Sergey L.Ponomarev: "Auth Cookie timeout"
- In reply to: Ben Luckham: "Hosting from a network share"
- Next in thread: Ben Luckham: "Re: Hosting from a network share."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|