473,549 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hosting ASP.NET outside of IIS with medium trust ?

Hi !

SimpleWorkerReq uest class can be used to host asp.net pages outside of
IIS. However when a web application is configured to run as medium
trust (or lower), you will get an exception
"System.Securit y.SecurityExcep tion: Request for the permission of type
'System.Securit y.Permissions.S ecurityPermissi on......' failed." when
calling HttpRuntime.Pro cessRequest (or trying to parse the page using
PageParser.GetC ompiledPageInst ance).

The reason for this is that both constructors for the
SimpleWorkerReq uest perform a security demand that requires
UnmanagedCode permission. This permission is not normally granted in
any partial trust environment.

How can I host (if possible) asp.net in medium trust environment? I
suppose I'd have to inherit from the HttpWorkerReque st class and do
some stuff. Any help would be appreciated.

Thanks!

Jul 15 '07 #1
0 1424

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

Similar topics

0
980
by: EP | last post by:
I am hosting asp.net outside of IIS, and my workerrequest derived class is written in MC++. Whenever I make a request, I get the exception pasted below: Of course adding a trust element to the config file doesn't change anything, and I have roughly the same implementation built in c# and it works fine. Any Ideas? ...
0
1251
by: Michael Howes | last post by:
I have a webservice and use WSE so a user can upload a good sized file. The entire ASP.Net projects, web.config sets a Medium trust level IIS is set up to use "Integrated Windows authentication" I get an access denied msg in the client when trying to call the webservice method. If I change the trust level in the web.config to Full...
4
1910
by: brian | last post by:
Hello I get this error when trying to create a file: Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. The code that causes this error is in a seperate dll (in the bin
0
923
by: rodchar | last post by:
hey all, i had a problem using the System.Net namespace in shared hosting environment because of the trust=medium issue. however, i came across a post that resolved this issue by using the a proxy server provided by that particular web host. that worked perfect but i don't understand why it worked. what did the proxy server actually do for...
0
1209
by: Stu | last post by:
I x-posted this in the enhancements group as well, looking for some help: Need help with a CAS issue with WSE3. Enable an asp.net2 webapp to use WSE3. Create a new webservice in the app via Add New Item WebService Alter code for webservice so the service inherits from SoapService, instead of the defaults, like so: (this forces your...
2
1942
by: Carl Gilbert | last post by:
Hi I feel as if I'm fighting a loosing battle with shared hosting at the moment. I have an account with 1&1. For a whopping £16.99 a month I get 6GB of shared Microsoft hosting. I also get the ability to have as many domains as I like, 5 web applications and large SQL databases. I'm currently experiencing some difficulties with a...
3
1709
by: jonny | last post by:
Please recommend a Web Hosting Service that supports ASP.NET and SQL server. I am new at this and just signed up with Yahoo before I new any better. It appears that yahoo does not support ASP.NET and SQL server. (Instead yahoo offers PHP and MySQL) Also, good site to go and get a domain name. Thank you.
4
4156
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
Is it possible for a medium trust web application to read the Membership providers? The following throws a SecurityException: MembershipSection membershipSection = (MembershipSection)WebConfigurationManager.GetSection("system.web/membership"); I have custom sections in my web.config where I specify requirePermission="false", which allows...
5
2335
by: Michael Howes | last post by:
I'm upgrading a VS 2003/.Net 1.1 ASP.Net application to VS 2008/.Net 3.0 The application uses an older version of the Microsoft Data Blocks for database access. The version in the Microsoft.ApplicationBlocks.Data.dll is 2.0 The call to SqlConnection.Open() fails after I upgrade to .Net 3.0 The application runs under a tweaked version of...
0
7743
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
7986
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
7504
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
7832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6074
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
5114
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
3518
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...
1
1965
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
0
786
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...

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.