Security issue on Windows7


Mr. X.

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) :

<trustLevel name="Full" policyFile="internal"/>
and also the following :
<add assembly="MyDll, Version=,

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
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

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

Thanks :)

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question