473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Debugging ASP.NET Web Pages That Require SSL

have an ASP.NET web application on a virtual directory that is set to require SSL. After making the settings in IIS I try to debug from VS.NET and I get a message that the project is not configured to debug. However, the project has all the settings and I can debug it if I remove the SSL requirement. How can I debug a project that where the virtual directory is set to require SSL

Nov 18 '05 #1
4 1886
Production environment use SSL and do not debug.
Development environment, no SSL usage and debug in this environment.

The answer to your question is to create a development environment.

--
Peter O'Reilly
Nov 18 '05 #2
You need to change the URLs that VS.NET uses to reach the project files and
web application. While neither your solution or project are loaded in
VS.NET, make the following edits in notepad:

1. In the solution (.sln) file, edit the URL to the .csproj file for the
web application. The original line might look something like this:

Project("{<GUID>}") = "projectname",
"http://someserver/projectname/projectname.csproj", "{<another GUID>}"

You need to change it to something like the following (i.e.: use https
instead of http):

Project("{<GUID>}") = "projectname",
"https://someserver/projectname/projectname.csproj", "{<another GUID>}"

2. In the webinfo file (.webinfo) for the web application, edit the URLPath
attribute of the Web element to use https. e.g.:

<Web URLPath = "http://server/projectname/projectname.csproj" />

would become

<Web URLPath = "https://server/projectname/projectname.csproj" />

HTH,
Nicole
"Ea******@HighFlyingBirds.com" <an*******@discussions.microsoft.com> wrote
in message news:B9**********************************@microsof t.com...
have an ASP.NET web application on a virtual directory that is set to
require SSL. After making the settings in IIS I try to debug from VS.NET
and I get a message that the project is not configured to debug. However,
the project has all the settings and I can debug it if I remove the SSL
requirement. How can I debug a project that where the virtual directory
is set to require SSL?

Nov 18 '05 #3
The change in the .sln file worked until I specified client cert. required or accepted. Is it possible to debug a secure page in VS.NET with a client certificate?
Nov 18 '05 #4
Unfortunately, it doesn't look like VS.NET is set up to use client
certificates with web projects. However, it is still possible to debug with
client certificates--it's just a wee bit of a PITA:

1. In the IIS admin console, set your application to _not_ require client
certificates.
2. Load your solution/project in VS.NET.
3. Start debugging the project by running it from VS.NET.
4. While it's already debugging (started in step 3), use the the IIS admin
console to set your application to require client certificates.
5. Continue your debugging run. You should be able to see the client
certificate in the requests for the remainder of the debugging session.

HTH,
Nicole

"Ea******@HighFlyingBirds.com" <an*******@discussions.microsoft.com> wrote
in message news:E2**********************************@microsof t.com...
The change in the .sln file worked until I specified client cert.
required or accepted. Is it possible to debug a secure page in VS.NET
with a client certificate?

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve Anderson | last post by:
Please excuse my ignorance as I'm fairly new to ASP. We have IIS running on Win2000 and serving out an ASP application. I installed the script debugger tonight. IE6 on the machine has Disable...
16
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
23
by: keyser_Soze | last post by:
I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on this machine and I am trying to debug some existing code which has both ASP and ASP.NET components. When I try and launch...
6
by: KevinGPO | last post by:
I am currently developing a website in ASP (VBScript) using MS Visual C#.NET IDE. I just create a new "ASP.NET Web Application" and point to my local webserver (IIS) of my website address. Then I...
7
by: | last post by:
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running locally on my laptop, but the web app is running on a remote server. My laptop is not in the domain. I do have a domain account....
5
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
3
by: Rick | last post by:
We have a web site that was built as an ASP.Net Web Site, I am unable to remote debug, when build ing the web site there is not a dll or PDB file generated. I can debug on my local machine but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.