I am trying to use Cassini (from http://www.asp.net/Downloads/archived/cassini/) to host my old style asp.net web service in-process, ideally in a WCF style. However, when I run it, I get an exception that the Cassini.dll could not be found. The Readme.txt that comes with it says to add it to the GAC, but the whole point of using an inprocess hosting is to avoid installing stuff in global places. Any ideas how to make it work without the GAC? Or maybe some other alternatives?
views:
233answers:
2
+5
A:
Extract the WebDev.WebHost DLL from your GAC. It has no other dependecies apart from the .NET Framework itself. You can then reference it locally, and instantiate a Server
object from it which has a Start()
and - hooray - a Stop()
method.
I normally browse to the GAC folders at a command prompt and copy files out, but if you Google you'll find other approaches.
David M
2009-07-15 15:06:11
A:
Found the way to use the Cassini as well: I had to put Cassini.DLL in the Bin directory under the application root for the your web application.
Grzenio
2009-07-15 15:19:41