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
2
votes
1 answer

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…
annakata
  • 74,572
  • 17
  • 113
  • 180
2
votes
4 answers

Creating a standalone ASP.NET MVC application for Windows XP

Is there a way to create an installable (ideally XCopy installable) version of an ASP.NET MVC application that will run in a standalone fashion on a Windows XP machine? I don't mind installing SQL Server Express for this purpose, so I guess the…
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
2
votes
1 answer

Multiple asp.net development server ports

I've got a few projects and websites in my solution. When I debug a website, ports are opened for all the websites. I'm thinking this slows down my debugging. How do I switch off these extra ports rather than excluding the websites from the…
insanepaul
  • 187
  • 2
  • 5
  • 17
2
votes
2 answers

Debugging ASP.NET on a built-in web server suddenly stops

I have Windows Server 2008 (64-bit), VS 2008 with its built-in webserver and an ASP.NET MVC 1.0 webapp. All I'm trying to do is to debug said app. I have a bunch of breakpoints, but they behave in a very strange way. When I fist start a debugging…
Anton Gogolev
  • 113,561
  • 39
  • 200
  • 288
2
votes
3 answers

Override mime type with VS Web Dev Server

I would like to serve xbaps from the VS web dev server (cassini) to Firefox, but when served from the dev server, Firefox offers to download this file. As far as I can tell, this is because the dev server is serving the xbap file with a mime type of…
Douglas
  • 36,802
  • 9
  • 76
  • 89
2
votes
6 answers

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…
Kibbee
  • 65,369
  • 27
  • 142
  • 182
2
votes
3 answers

Add http headers to Cassini via config

Our asp.net web site is currently deployed to an IIS7 server. We are setting some http headers via the config file such as this:
JoshBerke
  • 66,142
  • 25
  • 126
  • 164
2
votes
1 answer

C# ASP X-CONTENT-TYPE-OPTIONS - Internet Explorer not displaying PNG files

In an attempt to better secure our website application after running OWASP ZAP it has been advised to set the header X-CONTENT-TYPE-OPTIONS to NOSNIFF, which I've done. Since doing that though, any locally hosted PNG files are no longer being…
VorTechS
  • 473
  • 5
  • 12
2
votes
6 answers

How would you compare IIS & Cassini as production servers?

I have an ASP.NET website which is running currently on IIS. Now I want to move that site to run on Cassini. What are the advantages of Cassini over IIS? What are its disadvantages? What are your experiences using Cassini as a production web-server?
ACP
  • 34,682
  • 100
  • 231
  • 371
2
votes
2 answers

How to register an HttpModule suitable for VS2012 Cassini and IIS7?

i have a simple IHttpModule: using System; using System.Web; namespace DummyPlaceholder { class PerformanceHttpModule : IHttpModule { public void Init(HttpApplication application) { } public void Dispose() …
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
2
votes
1 answer

Cassini much slower than IIS for MVC RenderPartial

I have an MVC view with a partial view recursive call that displays hierarchical data. The complete tree typically includes in the order of 500 or so items. The data is all included in the model, and the model's a trivial record class - nothing in…
Keith
  • 150,284
  • 78
  • 298
  • 434
2
votes
1 answer

Is there a way to read from Response Headers without getting a PlatformNotSupportedException?

I am working on an Filter Attribute for ASP.Net MVC that will return a 304 response when the content has not been modified. It would be handy to be able to read the Last-Modified header value set in the Controller in order to accomplish this...…
2
votes
0 answers

IIS 7.5 Application in Production is MUCH slower than when running in CASSINI (VS 2010)

I have an application (MVC3 + EF5) up and running on IIS 7.5 web server in production. It's Windows Server 2008 + SQL SERVER 2008 R2. Now, most of the time, production app is significantly faster than when i run it in Visual Studio (serving pages,…
Milos Mijatovic
  • 955
  • 1
  • 17
  • 34
2
votes
2 answers

Cassini with Windows 7 XP Mode

Is there a way to access the Cassini local web server from Windows 7's XP mode? I'm developing on the Windows 7 host machine using Cassini, but would like to test in IE6 running inside the Windows XP guest.
Douglas
  • 36,802
  • 9
  • 76
  • 89
2
votes
1 answer

Why is performance is slow when 2010 Cassini serves static files?

When running a site in debug mode on 2010 I get incredible slow performance when cassini serves static files. According to Firebug it takes about 1 seconds for each request to resolve on 20 2kb images. I haven't changed any settings, just have…
John Farrell
  • 24,673
  • 10
  • 77
  • 110