Debugging HTTPS ASP.NET site in Visual Studio 2008? - asp.net

How do other people debug HTTPS sites from Visual Studio 2008? This link seems to indicate that Visual Studio's built in web server does not support HTTPS, but there must be some way to debug these sites, right? If not the integrated server, can IIS7 be set as the debugging web server?

Yes, you may set IIS as the debugging server by clicking Properties on the project, (waiting patiently while it slowly loads), then go to the Web tab and choose Use IIS Web server instead of Use Visual Studio Development Server.
-- Edit
More generally, to answer the question, I typically just disable SSL while debugging. It's rare that I need to test how I'm dealing with things via SSL, and depending on how I'm creating the SSL links, it can be modified pretty simply, with an #if DEBUG.

This article Using Visual Studio 2008 with IIS 7.0, gives an overview of using Visual Studio 2008 Web development features with IIS 7.

Related

Where are my Visual Studio programs/applications/websites hosted by default?

Where are my Visual Studio programs/applications/websites hosted by default (/during debugging)?
I mean, when I run my project in studio or just do a right click and 'view in browser' on a page... where is the page hosted?
Someone at work mentioned 'Visual Studio server'. And also that we can direct the studio to use the local IIS.
Can anyone shed more light on this, or point to a blog/article where I can find more info?
Thanks!
Edit: I am asking this question because my WCF service authentication settings behave differently (service doesn't work) when I run the service on my local vs. on the dev server. And I am trying to figure where to look for those local settings.
Edit: I am using VS 2010, and have IIS 7 installed on my local.
It depends on which version you have installed. In VS 2012, if you setup a web app, it uses IIS express by default, which gives it a http://localhost:<port> (such as 2122 or something like that). You have to add it as a virtual directory for it to be hosted under IIS. You can very easily do that from your project's properties, under Web tab.
Previous versions used Cassini as the local web server.

Visual Studio configures my local IIS website as an ASP.NET website

We are using Visual Studio 2008 on IIS 7, and on some machines we are having trouble getting Visual Studio to recognize our website as an IIS website. On most machines it is configured properly, displaying and running under http://localhost/websitename. But on a couple of machines - using the same solution file - it loads it as a directory/asp.net site: in VS it appears as c:...\foldername, and when running it, it comes up as http://localhost:randomportnumber/websitename.
We tried removing and then re-adding the site through the File-> Open Website-> Local IIS, but when we select the site it automatically changes it to a asp.net site.
Thanks in advance.
In the properties of the project, you can specify whether or not to use IIS or the built-in ASP.NET server.
When you debug a website and you see the odd port number after local, you are running the visual studio web server Cassini and not through IIS.
You can configure this when you go to property settings on your website.

asp.net applications running without IIS

I have been using windows XP. I installed visual studio 2008 and sql server 2005. It has been removed suddenly due to some system corruption. I installed it again the visual studio 2008, IIS is not enabled in control panel too, but my applications is running.. whats going behind?Is it possible to run asp.net applications without enabling the IIS?
Will this cause any problems while developing the application?
Yes, Visual Studio comes Built in web server for development purposes, you may be using it.

Can I host asp.net website?

If I develop a website in asp.net using visual studio trial version & I have my existing domain which supports asp.net hosting. Do i need to purchase a license copy of .net framework or visual studio in order to lunch my website?
Nope. You already have everything you need to launch the site.
The .NET Runtime doesn't require you to purchase anything. If the hosting provider has it installed on the server and offers ASP.NET hosting...you're good to go on that front.
The trial version of Visual Studio also doesn't limit you in this sense. You could've written your ASP.NET code with Notepad and compiled with the .NET SDK that Microsoft distributes freely. It's all the same when it gets served up.
The .NET framework does not require you to buy a license - it is free to download and install, and chances are that your host already has it setup.
As for Visual Studio, it is a development environment - you do not need to install it on the web server.
Once you have developed your site, you can use the built in Visual Studio publishing in order to push the site to your host.
All you need to do is publish the site then configure the site in IIS.

Unable to start debugging on the Web Server. Visual Studio 2008

I am running visual studio 2008 on vista business 64-bit. I am getting the following exception when I try to debug against IIS.
"Unable to start debugging on the web server. The object identifier does not represent a valid object".
IIS and Visual Studio are on the same box.
I've tried adding Windows Authentication but no luck (my app requires forms authentication, fyi).
Any thoughts? I have a binding on the Web Site. The IIS app is a Web SIte not a virtual directly.
Thanks!
You have switch on Windows Authentication in IIS
Is your pc and the webserver on the same Windows domain? If not, or there is a DMZ between your pc and the web server you could experience problems unless you've explicitly setup trust between the machines.
Go to IIS right click on your project go to Asp.Net tab change the version to your current verion you are using.
This problem comes when you are using a higher version and decided to switch to a lower version and vice versa changing to your version might solve the problem

Resources