cassini

"Data Execution Prevention" kills (VS2008) local ASP.Net Development Server (aka Cassini) on Vista 64

Occasionally i find that while debugging an asp.net application (written in visual studio 2008, running on Vista 64) the local ASP.Net development server (i.e. 'Cassini') stops responding. A message often comes up telling me that "Data Execution Prevention (DEP)" has killed WebDev.WebServer.exe The event logs simply tell me that "WebDe...

What are the (dis)advantages of using Cassini instead of IIS?

I've found that on some occasions I can edit the source while debugging, are there any other advantages of using the Visual Studio built-in webserver instead of a virtual directory in IIS? I'm using windows XP on my development environment, and a local instance of IIS 5. I work on several projects, so I use multiple virtual directories ...

Is there any IIS equivalent to Tomcat?

I want to test ASP.NET applications to get the feel for the MVC extension and compare that to what I can do today with Grails or Rails. The trouble is that being in a corporate environment, I can't install IIS on my workstation, neither on my DEV server. And - you guessed it - Visual Studio is not to be considered at that moment (I guess...

Selenium RC against a Cassini webserver

I'm trying to run Selenium RC against my ASP.NET code running on a Cassini webserver. The web application works when i browse it directly but when running through Selenium I get HTTP ERROR: 403 Forbidden for Proxy Running Selenium i interactive mode I start a new session with: cmd=getNewBrowserSessionsessionId=199578 I get the ...

Why do VS2008 spawn one Cassini for each web-site/application when going into debug mode?

I have quite a big solution here with a lot of different web applications and sites, around 10-15 of them. When I attach VS2008 to any process (most likely Nunit.exe or something similar) I get one Cassini process per website/application in the solution. Is there a quick way to get rid of this behaviour in VS or do I have to connect th...

How do I ignore a GAC reference from Cassini?

I have an assembly in the GAC which gets loaded when I'm debugging a web app. However, I've changed that assembly in the web app that I'm debugging but VS2008/Cassini is picking up the one in the GAC. How do I make VS2008/Cassini use the one that I'm debugging? ...

Path '/forum/default.asp' is forbidden

I have an ASP.NET 2.0 web app and part of the structure still has some legacy ASP under the folder /forum/. I haven recently moved my dev environment to a new machine and am now getting: Path '/forum/default.asp' is forbidden when trying to open a page with a .asp extension under the Cassini environment. Any ideas what could be causing...

How do I keep the development web server (Cassini) running in Visual Studio 2008?

I'm using Visual Studio 2008 to develop ASP.NET applications. Currently I'm debugging with running on IIS. I would like to switch to the development web server (Cassini) for debugging, so that I can use features like edit and continue. The reason that I'm not, is because the development web server only starts up when you are in debug mod...

ASP.NET 3.5 Web Application on media support (CD-ROM)

We have a fairly complex web application (.NET 3.5) that need to be launched from a CD-ROM (or DVD, or from an USB key). I'm thinking of using Cassini and SqlCe for the database (we use LinqToSql for data access, so I think it's the only choice without rewriting the entire data access classes). Is anyone ever done something like that? ...

Alternative to HttpListener?

Hello, I'm developing an application that is so far using HttpListener to provide a small standalone http server. However, I've recently discovered that HttpListener needs to be run as Administrator, which is not always going to be possible. What would the best alternative be? I need http GET and POST, both of which are not simply read...

ASP.NET Development Server or Localhost IIS?

Currently our dev team set up all the websites they're working on in IIS on their local machine. We're thinking of switching to using the built in ASP.NET development server instead. Is this a good idea? What are the pros / cons of using the ASP.NET dev Server? Are there any gotchas we should be aware of? Thanks. NB: Running on Win XP...

What is Cassini's (aka VS Dev Server) stack limit?

I'm running into a StackOverflowException (please don't ask, it's not my fault) in IIS6/2k3 which has a limit of 256k, but the exception doesn't happen in the VS debugger. As a matter of understanding I'd love to know, but have failed to google what the stack limit of Cassini is...if indeed it has one? ...

Why does Visual Studio launch multiple WebDevs when I debug?

I have a Visual Studio 2008 solution with several projects in it - some of which are web applications / sites. Whenever I go "Debug > Start new instance" for a specific web application and VS launches the ASP.net Development Server (WebDev.WebServer.EXE) for that application, VS also launches 3 additional such processes - one for each ...

Configuring 'Cassini' (ASP.NET Development server) for CAC cards for testing - How?

I'm developing a new website (ASP.Net, VB codebehind pages, .Net 3.5) to replace a "Classic ASP" site. Some of the pages are 'public' and the rest require authentication - in this case it's done by reading DoD-issued CAC cards through the keyboard. Now, for 'production', they configure IIS so that it does the authentication challenge (...

Cassini Error: "This type of page is not served"

I'm trying to use the Server class from Cassini to include a basic web server in my own application. I just started playing around with it to get familiar with the way the server works and I setup a simple app that is as follows: static void Main(string[] args) { Server server = new Server(80, "/", @"C:\Projects\"); ...

Link to download Cassini source code?

Does any one know from where can I download source code for Cassini. I tried the link http://www.asp.net/Projects/Cassini/Download but this page does not exist now. ...

Authentication dialog when running with Visual Studio web server

When using Visual Studio's built in web server, every time I make a page request the standard login box pops up and asks for credentials. It doesn't work if I actually put in my credentials, so I just have to hit cancel 5 times so it will go away. When I run the application through IIS (locally or on test server) it works just fine (no ...

What causes Cassini to load when I run a unit test

I have a test project for a solution which involves an MVC web application and several class libraries. I am using mock objects and System.Web.Abstractions to avoid dependencies on ASP.NET intrinsic objects. But when I start my test project Cassini loads. If I immediately stop cassini all my tests still pass. So why does it load? It's no...

Cassini/WebServer.WebDev, NUnit and AppDomainUnloadedException

I am using Cassini/WebServer.WebDev to run some automated tests of a WebService using NUnit. I am not doing anything fancy, just public class WebService{ Microsoft.VisualStudio.WebHost.Server _server; public void Start(){ _server = new Microsoft.VisualStudio.WebHost.Server(_port, "/", _physicalPath); } public void Dispose...

IIS virtual directory, root path deployment ASP.NET

I need a few pointers about how to make a project structure in order to migrate from VSS to SVN, as it stands now it has: Dev trunk-------------------------------->http://localhost/myapp Test environment branch ---------->http://test.myapp.com Production environment branch-->http://www.myapp.com The deal here are th...