Questions tagged [cassini]

The Cassini Web Server is an open-source lightweight web server distributed with ASP.NET as an example of an ASP.NET web server written in C#.

The Cassini Web Server is an open-source lightweight web server distributed with ASP.NET as an example of an ASP.NET web server written in C#.

Cassini is used in various ASP.NET projects such as ScrewTurn Wiki.

229 questions
529
votes
52 answers

Visual Studio debugging/loading very slow

I'm at wit's end. Visual Studio is typically painfully slow to debug or just plain load ("start without debugging") my ASP.NET MVC sites. Not always: at first, the projects will load nice and fast, but once they load slow, they'll always load slowly…
52
votes
4 answers

Visual Studio ASP.NET MVC project: setting the start URL

Consider an ASP.NET MVC 2 project with VS 2010. The goal is to set the 'start URL' on run/debug using VS's built-in Cassini web server. Entering the URL as I want to be loaded, in the typical & valid format, controller/action, VS 2010 gives this…
p.campbell
  • 91,713
  • 61
  • 243
  • 314
52
votes
28 answers

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…
sebastiaan
  • 5,847
  • 5
  • 35
  • 64
32
votes
6 answers

Automatically stop/restart ASP.NET Development Server on Build

Is there a way to automatically stop the ASP.NET Development Server (Cassini) whenever I do a build/rebuild in VS2008 (and then obviously have it start again when required)? Maybe there's some hidden configuration setting somewhere? Or at least some…
Alconja
  • 14,662
  • 3
  • 58
  • 61
30
votes
5 answers

Is Visual Studio 2010 WebDev WebServer (Cassini) 64-bit compatible?

I'm now developing on Visual Studio 2008 on a 64-bit OS (Windows Server 2008 64-bit). While the apps I write are 64-bit capable, as is IIS7, the built-in ASP.NET Development Server (aka Cassini aka WebDev.Webserver.exe) runs as 32-bit. This brings…
David Boike
  • 17,986
  • 7
  • 55
  • 94
26
votes
11 answers

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…
Nick
  • 5,498
  • 9
  • 50
  • 72
23
votes
4 answers

Visual Studio Development Server not updating css and javascript?

I've recently returned to a web site project that has been on the backburner. Since recommencing work I've noticed css and javascript changes aren't being recognised by the application when it's running in Visual Studio Development Server. This…
Rob Gray
  • 3,111
  • 4
  • 31
  • 34
21
votes
3 answers

HttpModule not running with Visual Studio

I am using an HttpModule to do some URL shortening on my site. I am using Visual Studio 2008 and IIS 7, and .Net 3.5. When the module is specified in the system.webServer element of web.config, and the site is run in IIS, it works fine. The config…
Matt Sherman
  • 7,825
  • 4
  • 35
  • 55
19
votes
1 answer

What is the difference between ASP.NET dev server and IIS Express?

Visual Studio SP1 has a facility to run the Webmatrix aka "IIS Express" from Visual Studio instead of the VS development server. What is the difference between both? [ VS development server or IIS express]. Is there anything new and interesting for…
Steven Spielberg
18
votes
4 answers

How to enable Directory browsing by default on IIS Express

Cassini (Visual Studio development web server) by default enables directory browsing, how can I enable directory browsing on IIS Express by default? (I don't want to have a separate configuration for each project I have?
Ahmed Magdy
  • 5,256
  • 8
  • 36
  • 74
18
votes
3 answers

stop development server when i stop debugging

How can automatically I stop the development web server when I stop debugging in Visual Studio?
Hannoun Yassir
  • 18,630
  • 22
  • 74
  • 109
16
votes
3 answers

Why does Request["host"] == "dev.testhost.com:1234" whereas Request.Url.Host == "localhost"

Hi all, I seem to have found a discrepancy when testing ASP.NET applications locally on the built-in web server with Visual Studio 2008 (Cassini). I've set up a host on my local machine associating dev.testhost.com with 127.0.0.1, since I have an…
Sam Salisbury
  • 999
  • 9
  • 16
14
votes
4 answers

Android Emulator loopback to IIS Express does not work, but does work with Cassini

I am attempting to post data from an Android application running in the Android Emulator on my local machine to a web application running under IIS Express also running on my local machine. Unfortunately, when I post to 10.0.2.2 from the emulator I…
ahsteele
  • 25,470
  • 26
  • 131
  • 238
14
votes
7 answers

Alternative to HttpListener?

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…
Grokys
  • 15,832
  • 14
  • 66
  • 94
13
votes
3 answers

ASP.NET MVC on Cassini: How can I force the "content" directory to return 304s instead of 200s?

Scenario: I have an ASP.NET MVC application developed in Visual Studio 2008. There is a root folder named "Content" that stores images and stylesheets. When I run locally (using Cassini) and browse my application, every resource from the "Content"…
Portman
  • 30,925
  • 24
  • 79
  • 101
1
2 3
15 16