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
3
votes
4 answers

Disable Visual Studio Web Server Directory Browsing

I'm using Visual Studio's built in web server to test and EPiServer applicaiton. When I have the app running in IIS, if I hit the root of the virtual directory, EPiServer will take over and server the defaul page to me. Using the Visual Studion…
mnield
  • 1,859
  • 1
  • 20
  • 34
2
votes
3 answers

How to do IIS style compression with Cassini?

I have http compression turned on in my production IIS box. Is there a way to turn it on in the Cassini web server (that comes with VS200x)? The reason for this is that I am getting slanted performance results and would like the bandwidth in my…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
2
votes
1 answer

How do you change an ASP.NET website to use Cassini server?

I am working on an ASP.NET web site that for some reason does not use the Visual Studio "Cassini" mini-server but requires that IIS be installed and set up. It runs as "http://localhost". I would like to change this, but can't find information as to…
Cynthia
  • 2,100
  • 5
  • 34
  • 48
2
votes
4 answers

Visual Studio 2008 Development Web Server Problem

I'm having a visual studio 2008 solution with asp.net 2.0/C# website. When I press F5 to debug, cassini - the development webserver starts properly and hooks it self in the system tray. But there's a problem after this. If cassini starts at say port…
this. __curious_geek
  • 42,787
  • 22
  • 113
  • 137
2
votes
1 answer

Is Visual Studio Asp.Net Development Server Really Multi-Threaded?

I'm debugging a WebProject in VS2010 that runs in the local dev server (cassini?). One of the aspx pages calls a ManualResetEvent.WaitOne() and another Page aspx page calls the ManualResetEvent.Set() (on the same Global object) to release the first…
MandoMando
  • 5,215
  • 4
  • 28
  • 35
2
votes
2 answers

Why RewritePath changes the Browser Url?

I have an ASP.NET 4 HttpModule (see code below). When the url path starts with "/1.0" I want Cassini/IIS to go to MyService.svc. However, I don't want to show "MyService.svc" to the user (i.e. no update to the url in the browser). I want the user to…
Martin
  • 39,309
  • 62
  • 192
  • 278
2
votes
2 answers

"System.FormatException: Input string was not in a correct format" thrown when filling a dataset through IIS 7 but no error in Cassini?

Visual Studio 2010 Express, ASP.NET MVC3, C# with an ODBC data connection on Windows Server 2008 R2. This code runs as expected when using Visual Studio's built-in web server, but fails with a "System.FormatException" when run through…
Garth
  • 31
  • 1
  • 5
2
votes
2 answers

ASP.NET MVC - Quickest way to preview changes to page in MVC app using VS web server

I'm an ASP.NET Web Forms developer who has recently switched over to an MVC web app. I'm having difficulty working out the quickest way to preview code changes when running the MVC web app through the integrated Visual Studio web browser. In web…
David
  • 15,750
  • 22
  • 90
  • 150
2
votes
1 answer

Casting to an interface from a COM library fails on the 16th managed thread within IIS (InvalidCastException, WinRT originate error 0x80040155)

I'm posting this mostly for anyone else that hits this weird issue, and if anyone can shed a light on why IIS/Cassini is being a devil. For the most part, we can successfully cast a Dispatch object defined in ODL as [ uuid(GUID_FOO) ] dispinterface…
GilesDMiddleton
  • 2,279
  • 22
  • 31
2
votes
4 answers

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…
Mark J Miller
  • 4,751
  • 5
  • 44
  • 74
2
votes
1 answer

Cassini (VS WebDev) executing BeginRequest and EndRequest on different threads

I'm debugging an ASP.NET MVC 2 application running on .NET 4.0 (Windows 7), currently inside of Cassini, the Visual Studio Debugging Web Server. All was running well, when I suddenly was having exceptions in my Application.EndRequest handler. After…
Jonas Sourlier
  • 13,684
  • 16
  • 77
  • 148
2
votes
1 answer

Cassini / Google Chrome TypeScript debugging issues

When debugging a .NET 4.6.1 web application using Cassini (Visual Studio 2015 version 14, update 3), I'm getting this error on a page that uses TypeScript: Refused to execute script from 'http://localhost:53049/Scripts/app.ts' because its MIME type…
Ben Osborne
  • 1,412
  • 13
  • 20
2
votes
2 answers

How to test SSL switching using VS2010 on Win7

I developed a large web application with VS2008 installed on an old Win2k3 server. I now have Visual Studio 2010 installed on Win7 Pro and work on the application fine. Parts of my web application need to switch into and out of SSL which they did…
Craig
  • 1,704
  • 1
  • 18
  • 36
2
votes
2 answers

Run ASP.NET Development Server "virtual path" as an application

I want to run my new web application with forms authentication under the ASP.NET Development WebServer (Cassini), but not at site root "/" (rather, at the path it will reside in production; "/New"). However, the build process gives the error: "It…
Shannon
  • 241
  • 4
  • 9
2
votes
2 answers

Installer App Asp.net 4.0 Cassini SQL Express

We have built an ASP.NET application in 4.0 (we can change it to 3.5 if necessary) with a SQL Server database. I am looking to create an installation package (exe or msi) so that I can provide this file to my clients and they can install it on all…