http://bytes.com/topic/asp-net/answe...tion-please-he
I have got the same problem, which I cannot figure out what is the solution for weeks.
I have Windows 7 (Home premium edition), framework 3.5 (how can I check that, if gacutil is correct version, if it metters, anyway ...)
I am writting on C#.
Also on assemblyInfo.cs :
Expand|Select|Wrap|Line Numbers
- [assembly: AllowPartiallyTrustedCallers]
- [assembly: FileIOPermission(SecurityAction.RequestMinimum)]
Expand|Select|Wrap|Line Numbers
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- <system.web>
- <authorization>
- <allow users ="*" />
- </authorization>
- <identity impersonate="true"/>
- <securityPolicy>
- <trustLevel name="Full" policyFile="internal"/>
- </securityPolicy>
- <compilation>
- <assemblies>
- <add assembly="MyDll, Version=1.0.0.0,
- Culture=neutral,
- PublicKeyToken=..."/>
- </assemblies>
- </compilation>
- </system.web>
- </configuration>
Nothing happens - same error :
Expand|Select|Wrap|Line Numbers
- request for the permission of type 'system.security.permissions.fileiopermission,mscorlib, version = 2.0.0.0, Culture = neutral,PublicTokenKey=b77a5c561934e089' failed
When I add the following lines, I see no error (even I don't reach the code of the method that calls initializeComponents) :
Expand|Select|Wrap|Line Numbers
- [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Assert, Unrestricted = true)]
- [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")]
I don't know what to do with the explanation on the link I gave (Is it necessary to do something with msi installation to check that I am doing right things).
Any help will be appreciated, since I am dealing with the problem for weeks, with no solution.
Thanks :)