Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Request for the permission of type 'System.Web.AspNetHostingPermission...'failed

Reply
Thread Tools

Request for the permission of type 'System.Web.AspNetHostingPermission...'failed

 
 
clintonb
Guest
Posts: n/a
 
      02-26-2008
I hope this is the appropriate group for my question.

We have a Web Application Project that compiles just fine using Visual
Studio 2005 on Windows XP but it won't compile on Windows Vista.

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

I checked the compilation results in the Output window and noticed the
error happens in the step where it runs the license compiler (LC.exe).

Any help would be greatly appreciated.

 
Reply With Quote
 
 
 
 
rob
Guest
Posts: n/a
 
      03-28-2008
did you find any soultion yet?
same happens to me, code access security changes have no effect

"clintonb" wrote:

> I hope this is the appropriate group for my question.
>
> We have a Web Application Project that compiles just fine using Visual
> Studio 2005 on Windows XP but it won't compile on Windows Vista.
>
> The error is:
> 'Request for the permission of type
> 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.'
>
> I checked the compilation results in the Output window and noticed the
> error happens in the step where it runs the license compiler (LC.exe).
>
> Any help would be greatly appreciated.
>
>

 
Reply With Quote
 
 
 
 
rob
Guest
Posts: n/a
 
      03-28-2008
check this out

http://forums.ni.com/ni/board/messag...essage.id=3965

IF EXIST C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ld r64.exe
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ld r64.exe setwow
Your project post-build step would be:
IF EXIST C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ld r64.exe
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ld r64.exe set64

will help you,
regards
"clintonb" wrote:

> I hope this is the appropriate group for my question.
>
> We have a Web Application Project that compiles just fine using Visual
> Studio 2005 on Windows XP but it won't compile on Windows Vista.
>
> The error is:
> 'Request for the permission of type
> 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.'
>
> I checked the compilation results in the Output window and noticed the
> error happens in the step where it runs the license compiler (LC.exe).
>
> Any help would be greatly appreciated.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error : Request for the permission of type 'System.Security.Permissions.FileIOPermission,mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'failed. dhemittal@gmail.com ASP .Net Security 0 05-10-2008 06:17 AM
Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicK Mike ASP .Net 5 08-15-2007 08:57 AM
Request for the permission of type 'System.Data.SqlClient.SqlClientPermission [.....]' failed goc@swipnet.se ASP .Net 1 02-01-2007 01:49 AM
SQL 2005 Assembly: System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission'... failed Siberwulf ASP .Net 0 10-05-2006 11:39 PM
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib,... Leyla ASP .Net Security 2 08-17-2006 05:56 PM



Advertisments