By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,666 Members | 1,544 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,666 IT Pros & Developers. It's quick & easy.

Access denied to assembly

P: n/a
Hi,

I'm getting this error message when i try to run a asp.net application in my
development workstation:

"A first chance exception of type 'System.IO.FileLoadException' occurred in
mscorlib.dll

Additional information: Access denied: 'myassembly'."

The application has been working for years. I'm working now in a minor
update. There is no compilation errors neither warnings. It just doesn't
start.

Thanks,

--
Jose San Miguel
Consultor Senior TI - MCAD
Improven Consultores

Sep 20 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Could you please give me the following details :
1. Is the assembly a non GAC ?
2. Is there any Code Acess Security employed with the Assembly ?
3. Do you have any publisher policy file for assembly ?
4. Did you compare the assembly manifest and the actual version of the
assembly reference in the application .

If you could give those details, i explore more for your problem

--
Thanks & Regards,
Sundar Narasimman
Technology Specialist
Microsoft .NET
"Jose-san" wrote:
Hi,

I'm getting this error message when i try to run a asp.net application in my
development workstation:

"A first chance exception of type 'System.IO.FileLoadException' occurred in
mscorlib.dll

Additional information: Access denied: 'myassembly'."

The application has been working for years. I'm working now in a minor
update. There is no compilation errors neither warnings. It just doesn't
start.

Thanks,

--
Jose San Miguel
Consultor Senior TI - MCAD
Improven Consultores
Sep 22 '06 #2

P: n/a
Hi,

Thanks for replying.

I found the solution. My antivirus was preventing the application to load
the assembly. It didn't provide any warning message. I changed my AV soft
this summer. I spent two full days getting mad until I tried to desactivate
it :(

BTW, it was a non-GAC assembly, no special security about it, etc... just a
simple local assembly.

Thanks againg :)

--
Jose San Miguel
Consultor Senior TI - MCAD
Improven Consultores

"Sundar Narasimman" wrote:
Could you please give me the following details :
1. Is the assembly a non GAC ?
2. Is there any Code Acess Security employed with the Assembly ?
3. Do you have any publisher policy file for assembly ?
4. Did you compare the assembly manifest and the actual version of the
assembly reference in the application .

If you could give those details, i explore more for your problem

--
Thanks & Regards,
Sundar Narasimman
Technology Specialist
Microsoft .NET
"Jose-san" wrote:
Hi,

I'm getting this error message when i try to run a asp.net application in my
development workstation:

"A first chance exception of type 'System.IO.FileLoadException' occurred in
mscorlib.dll

Additional information: Access denied: 'myassembly'."

The application has been working for years. I'm working now in a minor
update. There is no compilation errors neither warnings. It just doesn't
start.

Thanks,

--
Jose San Miguel
Consultor Senior TI - MCAD
Improven Consultores
Sep 22 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.