security - Running ASP.Net websites in Medium Trust environments -
Disclaimer: I have limited ASP.NET skills
I have some websites that I moved I am getting a "System.Security.SecurityException" error when I tried to transfer a website from my current hosting to Moscow's hosting service: This assembly does not permit partially reliable callers, which It is to be done with the fact that Moscow has written to ASP.Net Runs on Medium Trust. The code requires complete trust in the application and website.
Unfortunately, I do not have access to the full source code for the app, and the original developer is not available. Is there any easier way to port these websites? I tried to add to web.config, but that was not working.
I think there is no alternative to adjusting the level of security, because I asked him when he refused.
Does anyone have any ideas?
Is your assembly a strong name? Does it strengthen the nominated assemblies?
You have more information about this feature in the assembly.
From the docs:
By default, a strong-nominated assembly that does not explicitly apply this feature at the assembly level, to allow its use For the partly reliable code, it can be said only by other assemblies which are given complete trust by the security policy. This restriction has been implemented by placing a link for full trust on every publicly or protected law on every publicly accessible class in the assembly. By partial use of allowable assemblies to be called by trustworthy codes, they can declare their intentions.
For more information see this.
Edit :
There is some doubt that confirms my suspicion that the APTCA feature is a possible solution to the problem:
Comments
Post a Comment