fmichail
asked on
Application runs under IIS6 but fails under IIS8.5 with "That assembly does not allow partially trusted callers" ERROR
We have an application hosted in ASP.Net and running well under IIS6. We are now migrating to windows server 2012 and using IIS8.5. After creating the application related pools and follow same steps as we did in IIS6, the application started but when trying to access the server we get a message 'That assembly does not allow partially trusted callers', and we are using "Classic mode" as a way to maintain compatibility with our current IIS6 version.
The pools (applications) are configured in IIS8.5 as [Full trust] even by default, and we are using "Classic mode" as a way to maintain compatibility with our current IIS6 version. When we run tha application and tried to access any function on the server we get an error "That assembly does not allow partially trusted callers". The problem is resolved when we switched the application to run under "Integrated mode" rather than "Classic mode"... What does this mean?. I thought that using classic mode will be completely compatible with what used to run under IIS6. Any explanation, would be appreciatd. Thanks
The pools (applications) are configured in IIS8.5 as [Full trust] even by default, and we are using "Classic mode" as a way to maintain compatibility with our current IIS6 version. When we run tha application and tried to access any function on the server we get an error "That assembly does not allow partially trusted callers". The problem is resolved when we switched the application to run under "Integrated mode" rather than "Classic mode"... What does this mean?. I thought that using classic mode will be completely compatible with what used to run under IIS6. Any explanation, would be appreciatd. Thanks
ASKER
Peter,
We are using .net 3.5 and the link talks about .NET 4 is it OK to use?
We are using .net 3.5 and the link talks about .NET 4 is it OK to use?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Peter, and sorry for the delay.
Our DBA found 2 steps in the installtion that he did not perform, one of them is to grant Read access to GAC area to the service account running the pool, and when he granted enough rights to the account, the applications worked, and he could even switch back and forth between the classic and integrated mode. It is not fully convincing to me, but he is now installing the applications one after one successfully.
I learned a lot from your link. Thanks again Peter
Our DBA found 2 steps in the installtion that he did not perform, one of them is to grant Read access to GAC area to the service account running the pool, and when he granted enough rights to the account, the applications worked, and he could even switch back and forth between the classic and integrated mode. It is not fully convincing to me, but he is now installing the applications one after one successfully.
I learned a lot from your link. Thanks again Peter
https://msdn.microsoft.com/en-us/library/bb515251.aspx