Hello,
I'm working in an ASP.NET application wich uses COM+ transactions and
Enterprise Library.
I finished and tested the application in my machine which runs WinXP and
everything was working perfectly. Then I deployed the application in a
Windows 2003 Server and I started to have serious problems and
I'd like to undestand why this is happenning.
Every time I modify something in my application directory(dlls, the Web.config, etc) the application stop working and throws this exception:
Server Error in '/' Application.
Access is denied: 'BusinessObjects.dll'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Access is denied: 'BusinessObjects.dll'
This assembly BusinessObjects contains the serviced components
decorated as [Transaction(TransactionOption.Required)]
This error is thrown everytime I try to access the database.
Sometimes the application starts working again although I do nothing.
But if I modify something the error appear again.
Does anyboby know what is going on
Can somebody help me
Thanks

COM+ Transaction error in ASP.NET
ratster
Actually I removed the tag
<
identity impersonate="true"/>from my Web.config and
it worked.
I think it was something related to permissions
as you said
ekekakos
Make sure that the user used by your ASP.NET application have rights to access this file.
Other possible cause to this problem is if your application or server have CAS (Code Access Security) rules. On this case depending on the rules your updated DLL can be denied access cause of the version change.
Hope this help you.
Fernando Cardoso
BobbyRayudu83
Will take the opportunity to correct myself, the second option would not be possible cause would raise a System.Security exception...
Fernando Cardoso