473,699 Members | 2,745 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 3607
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
4384
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 = dynamic_cast<String*>(server_config->get_Item(S"IP"));
0
1007
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 the following: Parser Error Message: Could not load type '<project>.Global'
2
20840
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
2144
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
34567
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, select "Choose Items", select "Browse" find the dll on the other server and try to add it I get...
1
7503
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 to a database from my code and run a query, I get an exception thrown: Check: Request for the...
3
12056
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) ---> System.Security.SecurityException: Request for the permission of type
0
1225
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, PublicKeyToken=b77a5c561934e089' failed.'
5
8321
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 trust level in the configuration file. Exception Details: for the permission of type
0
8615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9033
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7748
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6533
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5872
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4375
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
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
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.