Web Application vs Web Site

Is creating asp.net web application in vs.net 2003 is similar to creating website in vs.net 2005?
I'm not sure if you're asking this but...
VS.NET 2005 with service pack 1 has the capabilities to support the same project, build and compilation semantics as the VS 2003 web project model. This means that among other things, all code files within the project are compiled into a single assembly that is built and persisted in the \bin directory on each compile. So yes, it can be similar. One main difference is that VS.NET 2003 uses .NET Framework V1.1 while VS.NET 2005 uses .NET Framework V2.

The port would be set using the web server, generally IIS. Most web servers are configured to use port 80 which is the default. Since 80 is the default, when you don't specify a port, the browser knows to use port 80.

Why would you want to use port 2020?
 
It pretty much depends on how you create the site and the tools you use.

The URL you mentions is what typically used by Visual Web Developer Express (file system based site) in which it appends the port number to the hostname. This is often done when an IIS server is not available or not specified at the time the site is created.

You can create site and manually assign port number to it in IIS MMC, bring up the site properties, click on Advanced button and then click Add button. This is where you can also set Host Head Name so you can host multiple web sites using a single IP address.

See attached picture.
 

Attachments

  • Port.gif
    Port.gif
    17.3 KB · Views: 43
Im in a new job and have been assigned to do some modification in MS CRM; where i have to add a button in 1 of the forms and on click of the button it should launch url link. i already test the code over vpc image where i use vs.net 05 n the issue is, the real server is running in SQL Server 2000 and vs.net 03. thats why is asked is it similar...n the 2020 port...i use it in vs.net 05 in vpc img for testing purpose.

anyway thanx guys.
 
Visual Web Developer 2005 Express (VWD) does the same thing, it just picks an empty local port when it starts the integrated debugging web server. IIS and all public web servers use port 80 by default as said, IE and other browsers use this port when not specified. The option to configure different public sites on one web server with different ports is nice to know.
 
Back
Top