SecurityException AspNetHostingPermission weirdness

J

JimLad

Hi,

I have an ASP.NET 3.5 website which references dlls for the DAL, BEL
and BLL. Works fine on my machine and worked fine on a different test
server.

I am now trying to set it up on another server and getting the
following error:

System.Security.SecurityException: Request for the permission of type
'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The other test server referenced a database on the same server - the
new one references one on a different server. The ASP.NET app is using
impersonation of a single account. This account is an administrator on
the web server (for testing purposes!). The machine.config has trust
set to the default of Full.

Any ideas? I'm confused! One further thing to point out is that I only
just installed .NET Framework 3.5 sp1.

Cheers for any help,

James
 
J

JimLad

Hi,

I have an ASP.NET 3.5 website which references dlls for the DAL, BEL
and BLL. Works fine on my machine and worked fine on a different test
server.

I am now trying to set it up on another server and getting the
following error:

System.Security.SecurityException: Request for the permission of type
'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The other test server referenced a database on the same server - the
new one references one on a different server. The ASP.NET app is using
impersonation of a single account. This account is an administrator on
the web server (for testing purposes!). The machine.config has trust
set to the default of Full.

Any ideas? I'm confused! One further thing to point out is that I only
just installed .NET Framework 3.5 sp1.

Cheers for any help,

James

UNC path set in Virtual Directory, rather than Local path. Doh!

James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top