Security issue on Windows7

  • Thread starter Thread starter Mr. X.
  • Start date Start date
M

Mr. X.

Hello.
I am trying to test my code on my own computer for web application - Each
time I got a security exception.
I have windows7, and I know Windows7 has some security problems.
I succeed putting a dll to c:\windows\assembly directory
(Framework 3.5, doing sn -k mydll.snk, and gacutil -I mydll.dll to install
my program in c:\windows\assembly directory).
Also on web.config I put the following (on system.web section) :

<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
and also the following :
<compilation>
<assemblies>
<add assembly="MyDll, Version=1.0.0.0,
Culture=neutral,
PublicKeyToken=..."/>
</assemblies>
</compilation>

I have Windows 7 Home premium edition (Maybe this is the problem, but no one
could answer me).

I have started an IIS, and succeed doing simple html pages.
When doing a page, that use a function of dll (that I put on
c:\windows\assembly directory), I got the error message (even simple: public
int foo() { return 1234; }

Application attempted to perform an operation not allowed by the security
policy.
To grant this application the required permission, contact your system
administrator, or use the Microsoft .NET Framework Configuration tool.

I am trying to figure out what may be wrong for more than a week.
Things lead me to think this related to some security manners of Windows 7
limit.

What should I do next ?
What should I check out?
Any help would be appreciated

Thanks :)
 
Back
Top