473,657 Members | 2,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web application debugging

How can I debug, from Visual Studio .NET, a web application running on a web
server listening on TCP port 8080 rather than 80?

Thanks in advance.

Carlo
Nov 19 '05 #1
4 1846
Ok but the problem is changing an already created project on the default
port to the 8080 port. I've searched around the project settings without
success... any help ?

Thanks

"Juan T. Llibre" <no***********@ nowhere.com> ha scritto nel messaggio
news:ed******** ******@TK2MSFTN GP14.phx.gbl...
The same way you'd debug on port 80.

You need to have created an ASP.NET Application
on port 8080.

VS.NET has no problem opening
web sites on non-standard ports.

I have a test one on port 81.
VS.NET sees it fine, and debugging works fine.

See attached image.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Carlo" <c.****@tiscali .it> wrote in message
news:et******** *****@TK2MSFTNG P10.phx.gbl...
How can I debug, from Visual Studio .NET, a web application running on a
web
server listening on TCP port 8080 rather than 80?

Thanks in advance.

Carlo


Nov 19 '05 #2
You should have a [projectname].vbproj.webinfo file in the project directory
on the file system. try and edit that.

"Carlo" wrote:
Ok but the problem is changing an already created project on the default
port to the 8080 port. I've searched around the project settings without
success... any help ?

Thanks

"Juan T. Llibre" <no***********@ nowhere.com> ha scritto nel messaggio
news:ed******** ******@TK2MSFTN GP14.phx.gbl...
The same way you'd debug on port 80.

You need to have created an ASP.NET Application
on port 8080.

VS.NET has no problem opening
web sites on non-standard ports.

I have a test one on port 81.
VS.NET sees it fine, and debugging works fine.

See attached image.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Carlo" <c.****@tiscali .it> wrote in message
news:et******** *****@TK2MSFTNG P10.phx.gbl...
How can I debug, from Visual Studio .NET, a web application running on a
web
server listening on TCP port 8080 rather than 80?

Thanks in advance.

Carlo



Nov 19 '05 #3
I don't think that you can switch ports
for the application from within the IDE.

You could approach this in two ways but,
before you try either of them, make sure
you've backed up the project and application.

1. Edit the .sln file to reflect the port change.

You'll see lines like this one when you open the
..sln file in a plain-text text editor, like Notepad:

Project("{E24C6 5DC-7377-472B-9ABA-BC803B73C61A}") =
"http://pathtoYourApp/"

Debug.AspNetCom piler.VirtualPa th = "/pathtoYourApp"
Release.AspNetC ompiler.Virtual Path = "/pathtoYourApp"

Replace those references with : "/localhost:8080"
Release.AspNetC ompiler.Virtual Path = "//localhost:8080"

If you are using a web address ( www.yourserver.com ),
replace "localhost" with that.

Then, open the IIS Manager ( MMC ), and create an Application
on port 8080 which points to your physical application's directory.

VS.NET should be able to open the website in the new port.

If you're not too adventurous, you might try :

2. Eliminate the IIS Application ( in the MMC )
for the physical directory which hosts your application.

Create a new application on port 8080 which points
to your current application's physical directory.

Then, use VS.NET's "Open from Web" feature
to open the port 8080 application you just created.

Warning: you might need, if you have more than one version
of the .NET Framework installed, to create a new Application
Pool to house your new port 8080 app, in case IIS assigns the
new port 8080 app to a different ASP.NET version than the
one which is running in your DefaultAppPool.

Disclaimer: I am not responsible for any results
stemming from the use of either of these techniques.

I did, however, just use technique #2, to change an application
from port 80 to port 81. Changing it to port 8080 should work
the same way.

Good luck!

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Carlo" <c.****@tiscali .it> wrote in message
news:u4******** *******@TK2MSFT NGP15.phx.gbl.. .
Ok but the problem is changing an already created project on the default
port to the 8080 port. I've searched around the project settings without
success... any help ?

Thanks

"Juan T. Llibre" <no***********@ nowhere.com> ha scritto nel messaggio
news:ed******** ******@TK2MSFTN GP14.phx.gbl...
The same way you'd debug on port 80.

You need to have created an ASP.NET Application
on port 8080.

VS.NET has no problem opening
web sites on non-standard ports.

I have a test one on port 81.
VS.NET sees it fine, and debugging works fine.

See attached image.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Carlo" <c.****@tiscali .it> wrote in message
news:et******** *****@TK2MSFTNG P10.phx.gbl...
> How can I debug, from Visual Studio .NET, a web application running on
> a
> web
> server listening on TCP port 8080 rather than 80?
>
> Thanks in advance.
>
> Carlo
>
>



Nov 19 '05 #4
Thank you very much

"Juan T. Llibre" <no***********@ nowhere.com> ha scritto nel messaggio
news:#Q******** ******@TK2MSFTN GP14.phx.gbl...
I don't think that you can switch ports
for the application from within the IDE.

You could approach this in two ways but,
before you try either of them, make sure
you've backed up the project and application.

1. Edit the .sln file to reflect the port change.

You'll see lines like this one when you open the
.sln file in a plain-text text editor, like Notepad:

Project("{E24C6 5DC-7377-472B-9ABA-BC803B73C61A}") =
"http://pathtoYourApp/"

Debug.AspNetCom piler.VirtualPa th = "/pathtoYourApp"
Release.AspNetC ompiler.Virtual Path = "/pathtoYourApp"

Replace those references with : "/localhost:8080"
Release.AspNetC ompiler.Virtual Path = "//localhost:8080"

If you are using a web address ( www.yourserver.com ),
replace "localhost" with that.

Then, open the IIS Manager ( MMC ), and create an Application
on port 8080 which points to your physical application's directory.

VS.NET should be able to open the website in the new port.

If you're not too adventurous, you might try :

2. Eliminate the IIS Application ( in the MMC )
for the physical directory which hosts your application.

Create a new application on port 8080 which points
to your current application's physical directory.

Then, use VS.NET's "Open from Web" feature
to open the port 8080 application you just created.

Warning: you might need, if you have more than one version
of the .NET Framework installed, to create a new Application
Pool to house your new port 8080 app, in case IIS assigns the
new port 8080 app to a different ASP.NET version than the
one which is running in your DefaultAppPool.

Disclaimer: I am not responsible for any results
stemming from the use of either of these techniques.

I did, however, just use technique #2, to change an application
from port 80 to port 81. Changing it to port 8080 should work
the same way.

Good luck!

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Carlo" <c.****@tiscali .it> wrote in message
news:u4******** *******@TK2MSFT NGP15.phx.gbl.. .
Ok but the problem is changing an already created project on the default
port to the 8080 port. I've searched around the project settings without
success... any help ?

Thanks

"Juan T. Llibre" <no***********@ nowhere.com> ha scritto nel messaggio
news:ed******** ******@TK2MSFTN GP14.phx.gbl...
The same way you'd debug on port 80.

You need to have created an ASP.NET Application
on port 8080.

VS.NET has no problem opening
web sites on non-standard ports.

I have a test one on port 81.
VS.NET sees it fine, and debugging works fine.

See attached image.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Carlo" <c.****@tiscali .it> wrote in message
news:et******** *****@TK2MSFTNG P10.phx.gbl...
> How can I debug, from Visual Studio .NET, a web application running on > a
> web
> server listening on TCP port 8080 rather than 80?
>
> Thanks in advance.
>
> Carlo
>
>



Nov 19 '05 #5

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

Similar topics

3
1525
by: Keith | last post by:
I am using the built-in setup installer which comes with VS 2003. I am always having problems running the application on other machines other than my development machines with VS. It seems like most of the time it is a security/privilege problem. One time I succeeded to run the app by making the user a local administrator of the computer. My app only uses the standard 1.1 system assemblies. The other proprietary assemblies(COM interop...
6
2291
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or reinstallation, or possibly even something that happened in IIS before .NET was installed. Here is a way to prove or disprove my theory:
2
1829
by: mark | last post by:
Can't figure this one out. I appears to not be code related. After surfing my asp.net web app for a while 5 - 10 min. it fails to open any further connections to my access 2000 database. There seems to be no set drop off point either that would point to a specific code problem. I went through and made sure that I explicitly closed all my connections when done and even called the dispose method after each one. I noticed that asp.net...
1
1854
by: Matt | last post by:
When I try to run the ASP.NET application, it has the following error messages: Error while trying to run project: unable to start debugging on the web server. The project is not configured to be debugged
4
5386
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the custom-errors-tag ="off" but nothing happens.... what is my failure????
3
375
by: Sean | last post by:
HI There, I am having trouble deploying my .aspx pages to a remote server, I have made changes to the config file and it still returns an error. I have also contacted the server administrator to create an application in IIS, what other checks can I make? Sean !-- error mesage
7
6683
by: Ralf Gedrat | last post by:
Hello! I have some Vb.Net applications, which are terminated at indefinite times without message. If I call in the program regulated system.GC.Collect, then the program is terminated here sporadically without message. It's not possible to debug in visual studio, i get no exceptions (application is terminated unexpectedly without message).
0
1842
by: Pheasant Plucker® | last post by:
Hi there, Not sure if this is the correct ng and I am not a programmer so excuse me but here goes...:-) We have a custom application that has a hook or calls either the Outlook calendar or looks in the Inbox for a specific email and acts upon it if found. This has worked great for over a year but when I updated using the usual
2
1912
by: KUTTAN | last post by:
My .net web application became very slow on debugging (it was working fine) I have installed the exe described in the post http://weblogs.asp.net/scottgu/archive/2007/08/21/public-hotfix-patch-available-for-vs-2005-f5-debugging-performance-issue-with-asp-net.aspx But it did not help me, what can I do?
7
6499
by: =?Utf-8?B?VG9kZCBKYXNwZXJz?= | last post by:
Hey Guys, I'm totally flipping out. I developed an application which makes use of the built in Visual Studio 2005 Crystal Reports components. I have references on my solution which state: CrystalDecisions.CrystalReports.Engine CrystalDecisions.Enterprise.Framework CrystalDecisions.Enterprise.Infostore CrystalDecisions.ReportSource
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8508
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8608
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6172
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4164
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.