473,569 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Request for the permission of type 'System.Web.Asp NetHostingPermi ssion...'failed

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.Asp NetHostingPermi ssion, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9' 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.

Feb 26 '08 #1
2 3600
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.Asp NetHostingPermi ssion, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9' 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.

Mar 28 '08 #2
check this out

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

IF EXIST C:\WINDOWS\Micr osoft.NET\Frame work64\v2.0.507 27\ldr64.exe
C:\WINDOWS\Micr osoft.NET\Frame work64\v2.0.507 27\ldr64.exe setwow
Your project post-build step would be:
IF EXIST C:\WINDOWS\Micr osoft.NET\Frame work64\v2.0.507 27\ldr64.exe
C:\WINDOWS\Micr osoft.NET\Frame work64\v2.0.507 27\ldr64.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.Asp NetHostingPermi ssion, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9' 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.

Mar 28 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4355
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String *ipAddress = S""; IDictionary *server_config = dynamic_cast<IDictionary*>(ConfigurationSettings::GetConfig("ServerAddress") ); ipAddress =...
0
1004
by: Troy Donavan | last post by:
A VB Web application that worked in VS2002 was upgraded to VS2005 and on build generates the following error message on build: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. A similar failure in VS 2003 gave an error message like...
2
20816
by: AnalogKid17 | last post by:
Keywords: ASP.NET app with VS2005 running on Win2003 with IIS6, and SQL2000 on a WinXP Box I've betting the following for days... it's driving me insane: Server Error in '/' Application. Security Exception Description: The application attempted to perform an operation not
0
2136
by: Siberwulf | last post by:
I'm trying to fetch an XML document from a website through an assembly i built and attached to SQL 2005. Here is my code for the SPROC assembly: public static void fetch_FeedData(string m_URL) { SqlPipe p = SqlContext.Pipe;
1
34558
by: Allan Ebdrup | last post by:
I'm using dotNet 2.0 and VS2005. I've got a class library where I've created a webcontrol (Inherits from GridView). The dll for the class library resides on a different server (development server) Now I have a website ASP.Net 2.0. When I add a reference to the dll I don't get my control in the toolbox, and try to right click on the toolbox,...
1
7483
by: goc | last post by:
I have a Web Farm, that fetches its database-data from a separate database-server. Today I was forced to go over to .NET 2.0 (since 1.1 can't be installed on Windows Vista x64), and it brought about quite alot of problems. But now I've sorted out everything except one problem that I just can't get to disappear: As soon as I try to connect...
3
12039
by: Mike | last post by:
Hi I have problem as folow: 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, PublicKeyToken=b77a5c561934e089' failed. (machine.config) --->...
0
1221
by: clintonb | last post by:
I hope this is the appropriate group for posting this question. We have a Web Application Project that compiles 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,...
5
8284
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. 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...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.