943,869 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 8221
  • ASP.NET RSS
Aug 27th, 2004
0

Error creating new ASP.Net project

Expand Post »
I am new to ASP.Net. I have Visual Studio.Net 2003 Professional running on Windows XP Professional. When I try to create a new Web Application in Visual Studio, I get an error message saying that a connection cannot be established with the server, "localhost" on my computer. However, when I was going to write this thread, I went to create a new project while I was online on the Internet, in order to get the exact message, and Visual Studio created the project successfully. I tried doing this with only Internet Explorer running, but not actually online, and that did not work. I cannot work and have to be on the Internet, since I am using a dial-up connection and would have no way of remaining online without being timed out. I haven't seen anything in any of the books about having to actually be logged onto the Internet while working on an ASP.Net project. What can I do to correct this problem?

Art
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Art0301 is offline Offline
5 posts
since Aug 2004
Aug 27th, 2004
0

Re: Error creating new ASP.Net project

Do you have IIS installed? Is the World Wide Web service? What does your event log look like? Try doing a repair install on VS.NET....
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Aug 27th, 2004
0

Re: Error creating new ASP.Net project

IIS and ASP.Net are both installed. When I look on the IIS console, the default web server is shown as running. I put a test aspx page on the localhost server and have run it from Internet Explorer. It displays todays date and looks like it is working properly. So, it looks like the localhost server is running properly, but Visual Studio keeps getting a message saying it isn't. I just reinstalled Visual Studio and get the same result. I only discovered that Visual Studio works when I am logged on to internet by mistake.

Art
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Art0301 is offline Offline
5 posts
since Aug 2004
Aug 28th, 2004
0

Re: Error creating new ASP.Net project

Have you enabled fronpage extensions? What's your hosts file look like?
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Aug 31st, 2004
0

Re: Error creating new ASP.Net project

As I said, I am really new to this, so I am not sure that I uderstand your questions. I right clicked on the Default Web Site icon and selected Properties. I selected the Server Extensions tab, which I believe shows the settings for the FrontPage Server Extensions. It shows the following settings:

The Enable Authoring box is checked

The Version Control is set at None
The Performance is set at Use custom settings
The Client Scripting is set at JavaScript

The box labeled Don't Inherit Security Settings is not checked

Does this answer the first question about FrontPage Server Extensions being enable?

I need more information about what host file you are refering to inorder to answer the second question.

Thank you for your help. I can't seem to find any answers in the books I have looked at.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Art0301 is offline Offline
5 posts
since Aug 2004
Sep 2nd, 2004
0

Re: Error creating new ASP.Net project

I just determined that I can work on a ASP.Net Web application without having to be logged on to the internet the whole time. I still need to be logged on to open an existing project, or create a new one, but I can then log off of the internet. After I logged off, I was able to add some text and an ASP.Net command to get the date and time to the form, and then run the application on the local server. So, the problem seems to only exist when creating a new web application or opening an existing one.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Art0301 is offline Offline
5 posts
since Aug 2004
Sep 2nd, 2004
0

Re: Error creating new ASP.Net project

Sounds like there is a weird DNS/Hosts file issue going on. In the command prompt, try pinging localhost. What IP does that return?

When creating a new project, try using http://127.0.0.1/ as the prefix to the project name (instead of the default http://localhost/).
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Sep 2nd, 2004
0

Re: Error creating new ASP.Net project

This is the output from the ping of localhost:

C:\Documents and Settings\Art>ping localhost

Pinging home-vh89xy4va3 [127.0.0.1] with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms


I tried to open a new project using 127.0.0.1 instead of localhost and got the same error message.

I am using Juno to connect to the Internet. Could the connection between the Juno software and Internet Explorer be causing the problem?

Is there some reason that Visual Studio would be trying to connect to some Internet site when it creates a new project or opens an existing one?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Art0301 is offline Offline
5 posts
since Aug 2004
Sep 10th, 2004
0

Re: Error creating new ASP.Net project

I didn't read all of your posts so I don't know if this will help or not, but I know I had to do all of these things before I could get anything to work.

Set up page extensions, the executable paths for each, and the verbs in iis
Extensions: .asax, .ascx, .ashx, .asmx, .aspx, .axd, .config, .cs, .csproj, .licx, .rem, .resources, .resx, .vb, .vbproj, .vsdisco, .webinfo
Executable Path: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
Verbs: GET,HEAD,POST,DEBUG

Also try: Start - Run - and paste this in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -r

After I did all of this I could actually see my work.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
DevDevil is offline Offline
2 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: socket creation
Next Thread in ASP.NET Forum Timeline: Photo Gallery Control





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC