Help with parse error.

B

Brett Romero

I get this error when I try to run my ASP.NET app on our server:

Server Error in '/' 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 'myapp.Global'.

Source Error:

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

Source File: C:\FTP\user31\Htdocs\global.asax Line: 1

On my development machine, everything works fine. The path there is
c:\inetpub\wwwroot\myapp. Could that be affecting anything?

I have deleted the DLL and rebuilt then uploaded. No changes. I've moved
the global files into the bin folder and uploaded. No changes. I now have
the DLL and global files in both the root and bin folders. Still get the
error. Any suggestions?

Thanks,
Brett
 
K

Karl Seguin

Is the global class actually in the myapp namespace? You can see this by
going to your object browser window in VS.Net (rather than the solution
explorer)

Karl
 
B

Brett

Yes - I can see it object browser.

myapp
{}myapp
Global
Bases and Interfaces

Thanks,
Brett
 
B

Bruce Barker

the error means, after loading all the dll's in the bin folder, none of them
contained a definition of class myapp.Global if you are sure the dll is
there, then that dll probably fails to load because it depends on another
dll.

-- bruce (sqlwork.com)
 
B

Brett

There is only one DLL generated. It is myapp.dll. I use to have the
website in htdocs\myapp.com\. Now it is in htdocs\. Seems as though the
error started after the move. I can reference the site at
www.myapp.com/myapp.com and it works. www.myapp.com gives the error.

How can I figure out which other DLL is needed?

Thanks,
Brett
 
B

Brett Romero

Yes. At one point I also had it in the root folder. That didn't make any
difference.

Somewhere there is a path issue. I don't have Terminal Service access to
this machine. I use an interface provided by the hosting service. Is it
possible some type of permission needs to be applied for htdocs\bin to work?

Why does htdocs\myapp\bin work?

Thanks,
Brett
 
J

Juan T. Llibre

Hi, Brett.

re:
Is it possible some type of permission needs to be applied for htdocs\bin to work?

Sure.
htdocs needs to be mapped as an IIS Application root.

re:
Why does htdocs\myapp\bin work?

Because htdocs\myapp is mapped as an application root.

If you want htdocs to be the application's root, you'll need
to get rid of htdocs\myapp as an application root, and set
htdocs as the application's root.



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 
B

Brett

I've created a virtual application and directory on the root. It is called
/myapp. I typed myapp into the name field but it reads as /myapp. Does
that matter?

Now I get this error:

Server Error in '/' 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 'myapp.Index'.

Source Error:


Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="index.aspx.vb" Inherits="myapp.Index"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>


Source File: C:\FTP\user31\Htdocs\index.aspx Line: 1

Thanks,
Brett
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top