Why do I get "could not load type" error with my custom SessionStateProvider

Posted by Rising Star on Stack Overflow See other posts from Stack Overflow or by Rising Star
Published on 2010-03-29T17:08:58Z Indexed on 2010/03/29 17:13 UTC
Read the original article Hit count: 254

My associate has created a custom SessionStateProvider for me to use with my ASP.net application. I add the file CustomSessionStateProvider to my VS2008 Web Application Project and put the appropriate reference in the web.config and it works fine.

However, my supervisor wants me to set this up as a GAC reference. At my office, we have many DLLs we've created that we use as GAC references across different projects.

If I add my CustomSessionStateProvider to the Global Assembly Cache, my pages throw a could not load type CustomASP.CustomSessionStateProvider error. Simple removing the DLL from the GAC makes it work again, but I want to set this up as a GAC reference.

What could be causing this problem?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gac