I'm trying to stub database functionality of an ASP.NET application, and I've wrote an HttpModule for that using TypeMock 4.1 Enterprise.
Unfortunatelly when running the web site I've got into "TypeMock.NET is not enabled" problem, despite running mocking_on.bat and restarting IIS after that, so I've used the approach used by the CLRProfiler wich sets Enviroment properties for IISADMIN, W3SVC and WAS (properties regarding the profiler). Then restarted the IIS again and started the site.
Now I'm into a completly different problem:
Could not load file or assembly 'TypeMock, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0000000000000000' or one of its dependencies. The system cannot find the file specified.
and the end result is that aspnet_wp crahes. However the TypeMock tracing is working and recorded some calls and I also have the log file in place. LinkedProfilers-aspnet_wp.exe.out looks like
Logging program: c:windowsmicrosoft.netramework2.0.50727spnet_wp.exe
Cannot read EnvName0 => The system cannot find the file specified.
This all hapens on my development machine, where I'm sucessfully running TypeMock enabled tests. How to make this work ?