cassini

Web pages cannot be found when using Cassini

I have had trouble getting web pages to load within Cassini for about a week now. I'm able to open a telnet session to the server - assuming I'm hosting on port 8101, typing telnet localhost 8101 results in opening a connection. I can simply type GET and eventually get back a response: HTTP/1.1 400 Bad Request Server: ASP.NET Developm...

Difference between ClientCredentialType=Windows and =Ntlm

Can anyone give a clear explanation of the difference between using clientCredentialType=Windows and =Ntlm in a server-side Web.config when hosting a WCF service? I have a SOAP 1.1 (basicHttpBinding) service for interop with existing clients. It uses ASP.NET roles so needs clients to be authenticat...

Why does Application_Start run in Cassini but not in IIS7?

I have an ASP.NET 3.5 sp1 app that's in development in Cassini. The app includes a global.asax file that should run some code - it works fine in Cassini but in IIS the debugger never hits the function. Why doesn't that code run? ...

In Visual Studio (2008), can I start up a website debug session as the web root?

I have a website in my solution, let's assume it is in a folder called /Solution/Website1. When I debug it in Visual Studio, it will come up as http://localhost:someport/Website1. I want it to start as http://localhost:someport. Is this possible? ...

Why is my fully qualified domain name request url getting converted to an ip address request url by the Cassini web server?

I have a web application which depends on the browser client retaining the FQDN in order for it to work, but what is happening is that in multiple browsers I am seeing the url get converted into an ip address url (containing the correct IP address) which is getting changed by a redirect from the web server. The web server hosting the re...

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" directory is always downloaded. Using Firebug, I can verify that the web server returns an ...

How do you debug ASP.NET applications under IIS7 on Vista?

There is a post on IIS.net titled "Using Visual Studio 2008 with IIS 7.0", but I don't quite believe that's what people do. (Among other gems, it suggests publishing your web app after every change.) If you debug your ASP.NET applications in IIS7 instead of Cassini, I would love to hear your methods, tips, and tricks. Edit: I'm referr...

Visual Studio 2008 Development Web Server Problem.

Hi, 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 4004, the browser looks for port 4002. I will then have to manually change the port ...

Host ADO.NET Data Service on Cassini

We need to run ADO.NET Data services without using III. I see cassini is the right option but how to host a ADO.NET Data service in Cassini.. I couldn't find any example. ...

Porting a Web Application to Desktop Application

I have a web app in production that is used for typical data entry,retrieval, and reporting type functions. For reasons of mobility(field access required) I have been tasked with porting that Web App to a Desktop App. The structure of the existing app, which I did not design or code, is thus: 3 Individual Projects each with there ow...

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 way to do it as a post-build event maybe? For some background, the issue is that I'm usi...

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 dev environment to mirror that of production. Is this possible? ...

MVC App works in IIS 7, does not work in Cassini (IIS 7, too)

hi, i have a mixed app (asp.net webforms, later mvc added) and it runs in iis 7 on vista but does not run on cassini on the same box and with the exact same files in the webroot. actually, webforms work as expected but all mvc routes are 404. what can i do to diagnose this issue? ...

When exactly does Application_End get called and how can I manually cause this?

I know that the event handler for this event is called when the application pool is recycled by IIS, but when does that happen? What about if using the built-in Visual Studio server (Cassini)? If I kill the server process, would Application_End be fired? UPDATE: I know about web.config and BIN folder changes. I'm interested in the case ...

403 Forbidden with Built-In VS 2008 Web Server

I have an ASP.Net webapp where I wanted to test using a different local account. So I created the account, but then started getting 403 Forbidden when logging in with that account. This is using the VS 2008 built-in web server (Cassini). A coworker suggested giving that user account permissions on the project files which I did. I als...

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 looks like this: <system.webServer> <modules> <add name="MinimizeModule" type=...

Visual Studio: How to make Cassini listen on ::1?

Visual Studio's internal development web-server only listens for connections from the local computer. Unfortunatly, the web-server only binds to the IPv4 loopback address: 127.0.0.1 On machines with IPv6 enabled (i.e. Windows Vista, Window 7), it does not bind to the IPv6 loopback address: ::1 When you push play in Visual Studio, ...

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 server (which I am doing for license reasons with the SDK), it always gives me the 'Director...

Why doesn't URL routing work in Visual Studio?

Does anyone else have problems with running URL routing projects in Visual Studio? The Visual Studio Web server doesn't seem to want to play nice with URL routing. It doesn't invoke the engine at all in fact, which means you can't debug, and have to run the project out of IIS to get it work. Is there a workaround for this? Edit: By "...

How to speed up Visual Studio Webserver (Cassini)?

Hi, for my webapp the integrated Visual Studio Server (Cassini) ist much slower than IIS. How can I speed up Cassini so that i dont have to wait for 3s for every small page? ...