472,983 Members | 2,928 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

"Resolving" LocalHost ??

What is going on here...

I have my site running locally on my machine, and when I don't have an
internet connection (like when Im on the train) I get this error when
I try to open an asp.net project:

"The web server reported the following error when attempting to create
or open the web project located at the following URL:
'http://localhost'. The server name or address could not be
resolved."

What the heck is this?
pinging localhost returns 127.0.0.1 just like it should
browing to localhost brings up the site just fine!
Anyone have any ideas?
On a side note, why is working with ASP.NET projects such a giant
pain?!? I'm not even talking about this issue, but just the fact that
you can't just open a project and edit some files, it has to contact
the server. Half the time when setting up a project on someone elses
computer we get the error saying that you need to specify a path and
it offes http:/project_1 or whatever. Sometimes you get the error
that "a project already exists" or whatever... its so frustrating to
have the hardest thing about writing an site be getting the IDE to
load up the project.

Maybe there is a good reason for this, but if I have a site locally
and the vbproj file is at the root, why does it need to contact a
webserver before it lets me edit any files, or add new files to the
project?

I could write a book on how much of a pain VSS is too. One of my
coworkers can not check out anything from the IDE, even though he
installed VSS along with VS.NET 2003 EA (both off the same set of
CDs). Checking out from VSS works just fine, but not within the VS
IDE. Argh...
Ok, rant over. Felt good. :)
Anyone have an idea bout the localhost issue, that is the one I am
focusing on.
Nov 17 '05 #1
5 2084
When you are normally wired in, do you have any proxy settings in your
browser? If so - you need to disable that for offline access...

As far as the ASP stuff - there is no perfect solution... this method allows
no versioning problems, but you have to connect... with old-style, you can
do anything, but then you run into versioning problems.. there is no perfect
answer..

"Chris" <cm**@walshgroup.com> wrote in message
news:44**************************@posting.google.c om...
What is going on here...

I have my site running locally on my machine, and when I don't have an
internet connection (like when Im on the train) I get this error when
I try to open an asp.net project:

"The web server reported the following error when attempting to create
or open the web project located at the following URL:
'http://localhost'. The server name or address could not be
resolved."

What the heck is this?
pinging localhost returns 127.0.0.1 just like it should
browing to localhost brings up the site just fine!
Anyone have any ideas?
On a side note, why is working with ASP.NET projects such a giant
pain?!? I'm not even talking about this issue, but just the fact that
you can't just open a project and edit some files, it has to contact
the server. Half the time when setting up a project on someone elses
computer we get the error saying that you need to specify a path and
it offes http:/project_1 or whatever. Sometimes you get the error
that "a project already exists" or whatever... its so frustrating to
have the hardest thing about writing an site be getting the IDE to
load up the project.

Maybe there is a good reason for this, but if I have a site locally
and the vbproj file is at the root, why does it need to contact a
webserver before it lets me edit any files, or add new files to the
project?

I could write a book on how much of a pain VSS is too. One of my
coworkers can not check out anything from the IDE, even though he
installed VSS along with VS.NET 2003 EA (both off the same set of
CDs). Checking out from VSS works just fine, but not within the VS
IDE. Argh...
Ok, rant over. Felt good. :)
Anyone have an idea bout the localhost issue, that is the one I am
focusing on.

Nov 17 '05 #2
I use a work around as far as having to open the whole app and project is
concerned. It goes like this...I have about a half a dozen aspx pages that
require frequent updates. So rather than go through the whole iis bit i have
made 6 shortcuts to the files. These shortcuts remain on my desktop.
Whenever I need to make just a quick update I double click the shortcut,
VS.Net opens right up and only the file associated with the shortcut is
there ready for editing.....IIS is never started and the project is never
opened...just the aspx file. I then save it and use FTP to transfer the new
version to the Live Server. Hasn't failed me yet! Of course this may not be
effective in all instances but it works great for me in about 70% of my
editing situations.

"Drebin" <tR*************@hotmail.com> wrote in message
news:kq**********************@newssvr28.news.prodi gy.com...
When you are normally wired in, do you have any proxy settings in your
browser? If so - you need to disable that for offline access...

As far as the ASP stuff - there is no perfect solution... this method allows no versioning problems, but you have to connect... with old-style, you can
do anything, but then you run into versioning problems.. there is no perfect answer..

"Chris" <cm**@walshgroup.com> wrote in message
news:44**************************@posting.google.c om...
What is going on here...

I have my site running locally on my machine, and when I don't have an
internet connection (like when Im on the train) I get this error when
I try to open an asp.net project:

"The web server reported the following error when attempting to create
or open the web project located at the following URL:
'http://localhost'. The server name or address could not be
resolved."

What the heck is this?
pinging localhost returns 127.0.0.1 just like it should
browing to localhost brings up the site just fine!
Anyone have any ideas?
On a side note, why is working with ASP.NET projects such a giant
pain?!? I'm not even talking about this issue, but just the fact that
you can't just open a project and edit some files, it has to contact
the server. Half the time when setting up a project on someone elses
computer we get the error saying that you need to specify a path and
it offes http:/project_1 or whatever. Sometimes you get the error
that "a project already exists" or whatever... its so frustrating to
have the hardest thing about writing an site be getting the IDE to
load up the project.

Maybe there is a good reason for this, but if I have a site locally
and the vbproj file is at the root, why does it need to contact a
webserver before it lets me edit any files, or add new files to the
project?

I could write a book on how much of a pain VSS is too. One of my
coworkers can not check out anything from the IDE, even though he
installed VSS along with VS.NET 2003 EA (both off the same set of
CDs). Checking out from VSS works just fine, but not within the VS
IDE. Argh...
Ok, rant over. Felt good. :)
Anyone have an idea bout the localhost issue, that is the one I am
focusing on.


Nov 17 '05 #3
Drebin,

No proxy here, I have a direct connection both at work and home.

I deleted and recreated the solution file (blank solution) and this
morning I was able to edit the local stuff on the train.. go figure.
I understand that no solution is perfect, but you have to admit, that
for someone like me that followed MSs suggested setup for VSS and
ASP.NET projects (isolated development mode) it's kinda stupid that I
can have all the project and source files on my local machine, but
can't build or edit the project unless it can connect to IIS. The
connection to IIS is totally necessary if it were running on another
computer, but seeing as how it is only on my local machine, it seems
kinda silly to have to go through IIS to get back to the same folder
as the vbproj file is already in.


"Drebin" <tR*************@hotmail.com> wrote in message news:<kq**********************@newssvr28.news.prod igy.com>...
When you are normally wired in, do you have any proxy settings in your
browser? If so - you need to disable that for offline access...

As far as the ASP stuff - there is no perfect solution... this method allows
no versioning problems, but you have to connect... with old-style, you can
do anything, but then you run into versioning problems.. there is no perfect
answer..

"Chris" <cm**@walshgroup.com> wrote in message
news:44**************************@posting.google.c om...
What is going on here...

I have my site running locally on my machine, and when I don't have an
internet connection (like when Im on the train) I get this error when
I try to open an asp.net project:

"The web server reported the following error when attempting to create
or open the web project located at the following URL:
'http://localhost'. The server name or address could not be
resolved."

What the heck is this?
pinging localhost returns 127.0.0.1 just like it should
browing to localhost brings up the site just fine!
Anyone have any ideas?
On a side note, why is working with ASP.NET projects such a giant
pain?!? I'm not even talking about this issue, but just the fact that
you can't just open a project and edit some files, it has to contact
the server. Half the time when setting up a project on someone elses
computer we get the error saying that you need to specify a path and
it offes http:/project_1 or whatever. Sometimes you get the error
that "a project already exists" or whatever... its so frustrating to
have the hardest thing about writing an site be getting the IDE to
load up the project.

Maybe there is a good reason for this, but if I have a site locally
and the vbproj file is at the root, why does it need to contact a
webserver before it lets me edit any files, or add new files to the
project?

I could write a book on how much of a pain VSS is too. One of my
coworkers can not check out anything from the IDE, even though he
installed VSS along with VS.NET 2003 EA (both off the same set of
CDs). Checking out from VSS works just fine, but not within the VS
IDE. Argh...
Ok, rant over. Felt good. :)
Anyone have an idea bout the localhost issue, that is the one I am
focusing on.

Nov 17 '05 #4
Jason,

This is true, and in fact I might try something like it.

However, if you change the codebehind page, then you need to rebuild
the project. Maybe there is a command line method for doing this
because if you can't open the project in the IDE you can't tell it to
build.
"Jason \(MFT1\)" <us****@newsgroup.pls> wrote in message news:<ey**************@TK2MSFTNGP10.phx.gbl>...
I use a work around as far as having to open the whole app and project is
concerned. It goes like this...I have about a half a dozen aspx pages that
require frequent updates. So rather than go through the whole iis bit i have
made 6 shortcuts to the files. These shortcuts remain on my desktop.
Whenever I need to make just a quick update I double click the shortcut,
VS.Net opens right up and only the file associated with the shortcut is
there ready for editing.....IIS is never started and the project is never
opened...just the aspx file. I then save it and use FTP to transfer the new
version to the Live Server. Hasn't failed me yet! Of course this may not be
effective in all instances but it works great for me in about 70% of my
editing situations.

"Drebin" <tR*************@hotmail.com> wrote in message
news:kq**********************@newssvr28.news.prodi gy.com...
When you are normally wired in, do you have any proxy settings in your
browser? If so - you need to disable that for offline access...

As far as the ASP stuff - there is no perfect solution... this method

allows
no versioning problems, but you have to connect... with old-style, you can
do anything, but then you run into versioning problems.. there is no

perfect
answer..

"Chris" <cm**@walshgroup.com> wrote in message
news:44**************************@posting.google.c om...
What is going on here...

I have my site running locally on my machine, and when I don't have an
internet connection (like when Im on the train) I get this error when
I try to open an asp.net project:

"The web server reported the following error when attempting to create
or open the web project located at the following URL:
'http://localhost'. The server name or address could not be
resolved."

What the heck is this?
pinging localhost returns 127.0.0.1 just like it should
browing to localhost brings up the site just fine!
Anyone have any ideas?
On a side note, why is working with ASP.NET projects such a giant
pain?!? I'm not even talking about this issue, but just the fact that
you can't just open a project and edit some files, it has to contact
the server. Half the time when setting up a project on someone elses
computer we get the error saying that you need to specify a path and
it offes http:/project_1 or whatever. Sometimes you get the error
that "a project already exists" or whatever... its so frustrating to
have the hardest thing about writing an site be getting the IDE to
load up the project.

Maybe there is a good reason for this, but if I have a site locally
and the vbproj file is at the root, why does it need to contact a
webserver before it lets me edit any files, or add new files to the
project?

I could write a book on how much of a pain VSS is too. One of my
coworkers can not check out anything from the IDE, even though he
installed VSS along with VS.NET 2003 EA (both off the same set of
CDs). Checking out from VSS works just fine, but not within the VS
IDE. Argh...
Ok, rant over. Felt good. :)
Anyone have an idea bout the localhost issue, that is the one I am
focusing on.


Nov 17 '05 #5
Well as previously stated in here...you Don't as long as you edit the FILES
and not the project. You don't need to have the project open to edit the
pages....for that matter you don't need VS.Net to do your editing. However
if you are insistent on asking VS.Net to open the project from the start
page of the IDE only then does it require that IIS be started. As a matter
of fact the Project file is editable as well without having to open IIS.


"Chris" <cm**@walshgroup.com> wrote in message
news:44**************************@posting.google.c om...
Drebin,

No proxy here, I have a direct connection both at work and home.

I deleted and recreated the solution file (blank solution) and this
morning I was able to edit the local stuff on the train.. go figure.
I understand that no solution is perfect, but you have to admit, that
for someone like me that followed MSs suggested setup for VSS and
ASP.NET projects (isolated development mode) it's kinda stupid that I
can have all the project and source files on my local machine, but
can't build or edit the project unless it can connect to IIS. The
connection to IIS is totally necessary if it were running on another
computer, but seeing as how it is only on my local machine, it seems
kinda silly to have to go through IIS to get back to the same folder
as the vbproj file is already in.


"Drebin" <tR*************@hotmail.com> wrote in message

news:<kq**********************@newssvr28.news.prod igy.com>...
When you are normally wired in, do you have any proxy settings in your
browser? If so - you need to disable that for offline access...

As far as the ASP stuff - there is no perfect solution... this method allows no versioning problems, but you have to connect... with old-style, you can do anything, but then you run into versioning problems.. there is no perfect answer..

"Chris" <cm**@walshgroup.com> wrote in message
news:44**************************@posting.google.c om...
What is going on here...

I have my site running locally on my machine, and when I don't have an
internet connection (like when Im on the train) I get this error when
I try to open an asp.net project:

"The web server reported the following error when attempting to create
or open the web project located at the following URL:
'http://localhost'. The server name or address could not be
resolved."

What the heck is this?
pinging localhost returns 127.0.0.1 just like it should
browing to localhost brings up the site just fine!
Anyone have any ideas?
On a side note, why is working with ASP.NET projects such a giant
pain?!? I'm not even talking about this issue, but just the fact that
you can't just open a project and edit some files, it has to contact
the server. Half the time when setting up a project on someone elses
computer we get the error saying that you need to specify a path and
it offes http:/project_1 or whatever. Sometimes you get the error
that "a project already exists" or whatever... its so frustrating to
have the hardest thing about writing an site be getting the IDE to
load up the project.

Maybe there is a good reason for this, but if I have a site locally
and the vbproj file is at the root, why does it need to contact a
webserver before it lets me edit any files, or add new files to the
project?

I could write a book on how much of a pain VSS is too. One of my
coworkers can not check out anything from the IDE, even though he
installed VSS along with VS.NET 2003 EA (both off the same set of
CDs). Checking out from VSS works just fine, but not within the VS
IDE. Argh...
Ok, rant over. Felt good. :)
Anyone have an idea bout the localhost issue, that is the one I am
focusing on.

Nov 17 '05 #6

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

Similar topics

43
by: steve | last post by:
I am quite frustrated with php’s include, as I have spent a ton of time on it already... anyone can tell me why it was designed like this (or something I don’t get)? The path in include is...
5
by: Paul Miller | last post by:
We've run into minidom's inabilty to handle large (20+MB) XML files, and need a replacement that can handle it. Unfortunately, we're pretty dependent on a DOM, so a pulldom or SAX replacement is...
2
by: Pavel | last post by:
Greetings to all - I'm having a problem processing xml with relative dtd URI specified using XSLT: <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE mydoc SYSTEM "my.dtd"> <mydoc> .......
5
by: Jeremy Langworthy | last post by:
Hi I have two "totals" inputs whose values are dynamically calculated. For obvious reasons I don't want users to be able to edit the information in these. However, I do want this total passed to...
24
by: sinister | last post by:
After doing a websearch, it appears that it's OK to omit the "http:" to form a relative URL. Are there any pitfalls to this? For example, if there is a page http://www.domain1.com/page1.html...
3
by: dice | last post by:
I have built a .NET based service that uses a number of related 3rd party dlls. If I compile my code into a dll and use this in a test app all is well - however if I compile my code as a service...
2
by: Bill N. | last post by:
Using VB .Net 2003 Standard Edition. This simple form has a "File in Use" problem while the executable is running. Created this simple program to make sure that I hadn't done something in my...
10
by: LaEisem | last post by:
On-the-job, I have "inherited" a lot of old C language software. A question or two about when "casting" of null pointer constants is needed has occurred during behind-the-scenes cleanup of some...
13
by: eman1000 | last post by:
I was recently looking at the prototype library (http://prototype.conio.net/) and I noticed the author used the following syntax: Object.extend(MyObj.prototype, { my_meth1: function(){},...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.