Problems using localhost

  • Thread starter Thread starter Luther Hert
  • Start date Start date
L

Luther Hert

While trying to work through textbook lessons for Vb.net
Step by Step,Version 2003, Chapter 22, the first step is
to create a new Web application Project,using the ASP.Net
Application icon in the Visual Basic Projects folder.

When I select the ASP.Net Application icon and type in
http://localhost/MyWebCalculator, I recieve an error in a
dialogue box stating:
MS Development Environment Dialogue Box error message:

"The Webserver reported the following error when
attempting to create or open the Web project located at
the following
URL:'http://localhost/WebCalculator'. 'Aconnectionwith
the server could not be established'.

I am able to browse localstart.asp and iisstart.asp as
well as webpages located in the virtual directory of the
WebCalculator virual directory, using localhost in my
browser.

My problem is that I cannot get VB.Net 2003 to open any
Asp project, including WebCalculator, for development.

Below is an example of an error notice recieved when I
attempted to browse the Source File:
C:\Inetpub\wwwroot\WebCalculator\global.asax, using
Internet Explorer 6.0 in an attempt to determine what is
causing my problem.


Server Error in '/WebCalculator' Application.
----------------------------------------------------------
----------------------

Parser Error
Description: An error occurred during the parsing of a
resource required to service this request. Please review
the following specific parse error details and modify
your source file appropriately.

Parser Error Message: Could not load
type 'WebCalculator.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="WebCalculator.Global" %>



Source File:
C:\Inetpub\wwwroot\WebCalculator\global.asax Line: 1


----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

IIstart.Asp and localstart.asp as well as other webpages
work well with localhost. This is only happening with
Visual Basic.Net 2003. Can anyone help me with this
problem? Your efforts are appreciated.
 
I cannot get the project to open in Visual Basic. After I
type in 'http://localhost/My WebCalculator', the project
fails to open in Visual Basic.Net. So, running the Build
Command is not an option.
 
Luther,

Do the files,

global.aspx
global.aspx.resx
global.aspx.vb

exist in your projects virtual directory?
 
I have in my virual directory:
global.asax
global.asax.resx
global.asax.vb

The .aspx files are:
WebForm1.aspx
WebForm1.aspx.resx
Web1.aspx.vb
 
Did you have any .vbproj file in the folder? If so, you may double click it
and compile the project.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Yes, I have the project file in my folder and I have
tried double clicking it to open the project. When I
double click it, VB.Net 2003 opens and attempts to start.
Then I get the error: 'The Web Server reported the
following error when attempting to create or open the Web
project at the following
URL:'http://Localhost/:/WebCalculator'. 'Aconnection with
the server could not be established.'

Last night, I re-installed NetFramework1.1 and the SDK,
checked IIS6.0, and ran Aspnet_regiis -i. I still cannot
get VB.Net to develop or open an Asp.Net Application.

I have checked the knowledge base. I discovered some bugs
in version 2002 VB.Net that were similar. I beleive those
were corrected in NetFRamework1.1. Is anyone else
reporting a similar problem? If so, how are they working
around the problem? After checking and re-installing the
software to make sure that the installation steps are
correct, I do not know what else I can do.
 
Hi Luther,

Is you an administrator on the server? Also, you can open IIS Manager, and
select "Web Service Extensions", is ASP.NET and ProntPage Extension enabled
in the right panel?

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Sorry Luther, I should've clarified that the SECOND error message (about not
being able to load the Global type) is because the project needs to be first
time compiled... and I shouldn't have sent off a reply so fast...

as for VS not loading the project, not sure about that... can you create
other web projects? like using a standard http://localhost/webproject1 or
something?
 
Yes, I am the administrator. Yes, I have checked IIS and
the Web Extensions and all is well. I tested the
localstart.asp and hello.asp (a MS Download to test Asp
pages). Things work for everything except VB.Net 2003
when I am trying to start development of an Aspnet Web
Application.
 
You may try to execute aspnet_regiis on the server to see if this will fix
the problem:

1. On the task bar, click "Start", point to "Programs", point to "Microsoft
Visual Studio .NET", point to "Visual Studio .NET Tools" and then click
"Visual Studio .NET Command Prompt".
2. On the command prompt type the following command:
aspnet_regiis.exe -i

3. Press "ENTER" (without the quotation marks).


Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
I thanks everyone who responded to help me. I solved my
problem using localhost by using your recommendations,
studying the Knowledge Base, and refering to Jim Buyen's
book, " Microsoft Office FrontPage 2003, Inside and Out."
there is a thorough discussion regarding configuring web
servers and the use of FrontPage with the Visual.Net
development environment, which pushed me over the top for
now. Thanks again.

Luther Hert
 
Back
Top