943,809 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2243
  • ASP.NET RSS
Dec 22nd, 2007
0

Error Running Web Application

Expand Post »
I've installed VS2005 in WinXp SP2.

When i'm trying to run asp.net web application in my local machine i'm getting the following error:-

"Unable to connect to visual studio's localhost web server."

same type of thing is happening when i'm trying to open a windows form application. this time the error is :-

"The application is failed to initialize properly. Click on OK to terminate the application."

What is the cause and remedies for the above error?
Similar Threads
Reputation Points: 30
Solved Threads: 49
Posting Pro
choudhuryshouvi is offline Offline
553 posts
since May 2007
Dec 23rd, 2007
0

Re: Error Running Web Application

Do you have XP Pro? - Home doesnt have IIS so theres some fiddling required. Also you must be logged in as an administrator and be a member of the Debuggers group and have opened the necessary ports in your firewall
Last edited by jbennet; Dec 23rd, 2007 at 9:58 am.
Moderator
Featured Poster
Reputation Points: 1764
Solved Threads: 574
Moderator
jbennet is offline Offline
16,507 posts
since Apr 2005
Dec 23rd, 2007
0

Re: Error Running Web Application

Click to Expand / Collapse  Quote originally posted by jbennet ...
Do you have XP Pro? - Home doesnt have IIS so theres some fiddling required. Also you must be logged in as an administrator and be a member of the Debuggers group and have opened the necessary ports in your firewall
VS ships with it's own web server so that developers can test their websites without having IIS installed on the local machine

@choudhuryshouvi: since this happens for web apps and winforms apps, it almost sounds like your .NET runtime is messing up. Is it possible for you to post your web app, and I can try running it on my machine?
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Dec 23rd, 2007
0

Re: Error Running Web Application

Quote ...
VS ships with it's own web server so that developers can test their websites without having IIS installed on the local machine
Oh right, i didnt know that. Maybe its a 2005+ thing because my copy of VS2003 doesnt work on Home for web development.
Moderator
Featured Poster
Reputation Points: 1764
Solved Threads: 574
Moderator
jbennet is offline Offline
16,507 posts
since Apr 2005
Dec 24th, 2007
0

Re: Error Running Web Application

Click to Expand / Collapse  Quote originally posted by Infarction ...
@choudhuryshouvi: since this happens for web apps and winforms apps, it almost sounds like your .NET runtime is messing up. Is it possible for you to post your web app, and I can try running it on my machine?
its a simple application which only has a textbox,a label and a button. the program is i'll write some text into the textbox and clicking the button will display the same as the label's text. for this i've written the following code:-(using my code behind page in vb.net)

ASP.NET Syntax (Toggle Plain Text)
  1. on button_click()
  2. if trim(textbox1.text)<>"" then
  3. label1.text=textbox1.text
  4. textbox1.text=""
  5. textbox1.focus
  6. else
  7. msgbox("plz input some text.")
  8. textbox1.focus
  9. endif

that's all. i was just testing my local web server whether its working or not but i couldn't.

i don't how will it help you in solving my prob. let's see what happens???
Last edited by choudhuryshouvi; Dec 24th, 2007 at 12:37 am.
Reputation Points: 30
Solved Threads: 49
Posting Pro
choudhuryshouvi is offline Offline
553 posts
since May 2007
Dec 24th, 2007
0

Re: Error Running Web Application

hm... I don't see any reason why that wouldn't work. As much as I hate the idea, have you tried uninstalling and reinstalling .NET and VS?
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Dec 24th, 2007
0

Re: Error Running Web Application

yes, i've already been advised that. though i know that this is the only option i've left but i was wondering whether there is any other way to solve this problem?

one thing i should tell you. before installing vs2005 i'd installed iis5.1. is that affecting? i mean to say is there any kind of version confliction problem occuring between IIS5.1 and VS2005's webdev.webserver.exe. i'm asking you because one of my office colleague has told me about that and also told me that i shouldn't install IIS on my local machine.

Could u plz tell me is that correct or not? because i've already searched microsoft knowledge base where microsoft said that both the IIS and VS2005's webserver can run in the same local machine.
Reputation Points: 30
Solved Threads: 49
Posting Pro
choudhuryshouvi is offline Offline
553 posts
since May 2007
Dec 24th, 2007
0

Re: Error Running Web Application

Installing IIS should be fine. The VS webserver will allow to to run an ASP.NET website from your local machine, but only when you start it through VS. When you debug a website this way, VS fires up the webdev.webserver.exe and attaches the debugger to it.

If you wanted to host your website from a machine, you need IIS. To create this website, you would create an IIS hosted website in VS, work on it, and then hit run or debug. When you hit debug this way, VS attaches the debugger to IIS and IIS is what actually serves the site.

So, having IIS should not be a problem. And as unhelpful as it sounds, I can say that it "works on my machine."
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Dec 26th, 2007
0

Re: Error Running Web Application

Sounds well but not really helpful to me in case of solving my problem as it couldn't in my machine.

So what would be the summery?
What are you suggesting me to do? is there any way or i've to do the dirty work???

One more thing, is only uninstalling IIS can fix this problem? i'm not sure. asking for your suggestion.
Last edited by choudhuryshouvi; Dec 26th, 2007 at 7:02 am.
Reputation Points: 30
Solved Threads: 49
Posting Pro
choudhuryshouvi is offline Offline
553 posts
since May 2007

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: Sms Advise
Next Thread in ASP.NET Forum Timeline: How to access controls from code behind file





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


Follow us on Twitter


© 2011 DaniWeb® LLC