It's really good described in "Improving Web Application Security: Threats and Countermeasures" article. Most common solution is bit of code in web.config file, which doesn't help me a lot.
<system.web>
<trust level="Full" originUrl=""/>
</system.web>
another popular way to recompile assembly with [assembly: AllowPartiallyTrustedCallers] attribute also was not solution for me.
After all I have added assembly to GAC, restarted IIS and whooops, exception gone!
you will not find gacutil.exe into Framework directory
C:\Windows\Microsoft.NET\Framework\v2.0.50727\
it's located into SDKs directory
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\
So you should install problem assembly into GAC like
gacutil.exe -i itextsharp.dll
P.S.: it won't eliminate exception with GoDaddy hosting :( according to the article your code must be adapted to Medium trust level :(
Subscribe to:
Post Comments (Atom)
HOWTO: Repair Logitech M325 Mouse
FixIt says that you will find single screw under CE label. It isn't always true.
-
I would like to execute mysqldump using .mylogin.cnf file and --login-path option to make it more secure as it can be with plain text passwo...
-
If your worry about data left on dedicated/hosted root server and want to remove secure all files and bits, you can clean complete disk sli...
-
OUT - OF - DATE Obsolete. Please check new post ! If you have issue with Function List plugin for Notepad++ 5.1 or later, please ch...
No comments:
Post a Comment