cassini

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

六眼飞鱼酱① 提交于 2019-12-03 16:47:05
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 referring specifically to local debugging. I simply attach Visual Studio to the IIS worker process, if you have multiple app pools then you can run "issapp" to get the appropriate PID. I never debug by clicking "Start Debugging". This has a nice advantage of working

Cassini/WebServer.WebDev, NUnit and AppDomainUnloadedException

梦想与她 提交于 2019-12-03 06:24:20
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() { if (_server != null) { _server.Stop(); _server = null; } } } [TestFixture] public void TestFixture{ [Test] public void Test(){ using(WebService webService = new WebService()){ webService.Start(); // actual test invoking the webservice } } } , but when I run it using nunit

How to enable Directory browsing by default on IIS Express

时光怂恿深爱的人放手 提交于 2019-12-03 05:06:22
问题 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? 回答1: You should be able to use AppCmd.exe to manage IIS Express. Try this: appcmd set config /section:directoryBrowse /enabled:true More info on AppCmd.exe here: http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe 回答2: Go to Web.config file of your project. Add

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

自作多情 提交于 2019-12-03 01:52:54
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 application that needs to change its appearance depending on the host header used to call it. However, when I request my test application using http://dev.testhost.com:1234/index.aspx , the value of Request.Url.Host is always "localhost" . Whereas the value of Request.Headers["host"] is "dev.testhost.com:1234" (as I would expect them both to be). I'm

VS 2008 debugger: How does it decide what Cassini port to run a web service under?

两盒软妹~` 提交于 2019-12-02 11:34:45
问题 I have a VS 2008 solution that includes a web site and a web service. I'm developing both at once, and it's helpful to be able to debug from one into the other. It occasionally can't find the web service. If I look in the web.config, I find the port number it's looking at is not the port number it auto-runs the service in when I use the debugger. For example, the web.config reference says something like: add key="mynamespace.mywebservice" value="http://localhost:55765/mywebservice.asmx" When

VS 2008 debugger: How does it decide what Cassini port to run a web service under?

对着背影说爱祢 提交于 2019-12-02 06:20:10
I have a VS 2008 solution that includes a web site and a web service. I'm developing both at once, and it's helpful to be able to debug from one into the other. It occasionally can't find the web service. If I look in the web.config, I find the port number it's looking at is not the port number it auto-runs the service in when I use the debugger. For example, the web.config reference says something like: add key="mynamespace.mywebservice" value="http://localhost:55765/mywebservice.asmx" When I hover over the Cassini port icon, I find that the web service is running in port 55382 (or some other

Disable Visual Studio Web Server Directory Browsing

你。 提交于 2019-12-01 23:16:06
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 'Directory Listing' view of my site. Does anyone know how to configure this web server to not allow the directory listing/browsing? Additional Information: This problme only seems to effect the root of the visual studion web server (i'll call it cassini from here on in).

Disable Visual Studio Web Server Directory Browsing

☆樱花仙子☆ 提交于 2019-12-01 22:38:26
问题 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 'Directory Listing' view of my site. Does anyone know how to configure this web server to not allow the directory listing/browsing? Additional Information: This problme

How do I use Fiddler to listen to the asp.net development server (i.e. cassini)?

六眼飞鱼酱① 提交于 2019-12-01 18:30:20
问题 I am attempting to debug a (RESTful) WCF app using Fiddler. I run my project via VS IDE - which launches my app in the ASP.NET Development Server aka Cassini. I then launch Fiddler and in the Request Builder tab enter the following: "http://localhost:1066/GeneralService/sections/summary" with GET as the http method. Fiddler responds with "[Fiddler] Connection to localhost failed. Exception Text: No connection could be made because the target machine actively refused it ::1:1066 " Is there

How do I use Fiddler to listen to the asp.net development server (i.e. cassini)?

时光怂恿深爱的人放手 提交于 2019-12-01 18:18:41
I am attempting to debug a (RESTful) WCF app using Fiddler. I run my project via VS IDE - which launches my app in the ASP.NET Development Server aka Cassini. I then launch Fiddler and in the Request Builder tab enter the following: " http://localhost:1066/GeneralService/sections/summary " with GET as the http method. Fiddler responds with "[Fiddler] Connection to localhost failed. Exception Text: No connection could be made because the target machine actively refused it ::1:1066 " Is there some way for me to debug an app running on Cassini? Thanks, Steve Change the url to http://ipv4.fiddler