xarzu — 2013-07-16T13:25:57-04:00 — #1
How does localhost get its ID number in asp.net?
I have a question about ASP.NET and running test web sites locally.
I have written two asp.net web sites for testing purposes. One works and the other one fails. The one that fails does not give any useful diagnostic information.
Can you tell me how these id’s are generated that are alongside the localhost: url?
mittineague — 2013-07-16T14:22:21-04:00 — #2
Are you sure those are IDs and not port numbers?
wwb_99 — 2013-07-16T15:54:49-04:00 — #3
They are port numbers, and they are randomly generated. In any case, install and use IIS express -- the built-in web server is a holdover from a bygone era.
cpradio — 2013-07-16T18:44:37-04:00 — #4
I need to look it up, but I think if you right click on the web project, go to the Web section, you might be able to set the port number (in case you need a specific port number).
You can also tell it to use IIS instead of the Cassini web server
wwb_99 — 2013-07-17T15:20:16-04:00 — #5
Yup, that would be the proper place to tweak that.
nightstalker — 2013-07-18T00:47:37-04:00 — #6
Yes, you can. But you must be running VS as an administrator in order for it to be able to edit the IIS metabase
wwb_99 — 2013-07-18T15:50:58-04:00 — #7
Not with IIS express . . .