473,566 Members | 3,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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 2113
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**@walshgrou p.com> wrote in message
news:44******** *************** ***@posting.goo gle.com...
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. prodigy.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**@walshgrou p.com> wrote in message
news:44******** *************** ***@posting.goo gle.com...
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 .prodigy.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**@walshgrou p.com> wrote in message
news:44******** *************** ***@posting.goo gle.com...
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****@newsgro up.pls> wrote in message news:<ey******* *******@TK2MSFT NGP10.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. prodigy.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**@walshgrou p.com> wrote in message
news:44******** *************** ***@posting.goo gle.com...
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**@walshgrou p.com> wrote in message
news:44******** *************** ***@posting.goo gle.com...
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 .prodigy.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**@walshgrou p.com> wrote in message
news:44******** *************** ***@posting.goo gle.com...
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
5059
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 relative NOT to the immediate script that is including it, but is relative to the top-level calling script. In practice, this means that you have to...
5
2500
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 likely out of the question for now. Has someone done a more efficient minidom replacement module that we can just drop in? Preferrably written in C?
2
9392
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> .... </mydoc>
5
2590
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 the next page so I can store it. When I set the input to "disabled" it does not pass it's value. Is there another way I can do this? I was...
24
4466
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 with a link to http://www.domain2.com/page2.html you can abbreviate the second link as //www.domain2.com/page2.html
3
2213
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 and try to run the service I get the following exception: System.IO.FileNotFoundException: The specified module could not be found. at...
2
12379
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 code in the "real" project. In the "real" project, One part of the program saves multiple images and another part of the program moves the images...
10
2596
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 of that software. That subject seems not to be addressed, at least not directly, in the C FAQ where FAQ 5.2 seems most relevant. References: * C...
13
2543
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(){}, my_meth2: function(){} }); to define new methods on the MyObj prototype object. Object.extend
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7893
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. ...
0
8109
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7953
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...
0
6263
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...
0
5213
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...
0
3643
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2085
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.