Help with parsing error?

B

Brett

I uploaded an ASP.NET website from my developer machine to a remote server.
The paths differ slightly as follows:

Local Path: C:\Inetpub\wwwroot\mysite
Server Path: C:\Inetpub\mysite.com\

I get the following error on the 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 'mysite.Global'.

Source Error:

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

Source File: C:\Inetpub\mysite.com\global.asax Line: 1



Does the above error have anything to do with the difference in paths? Any
suggestions on how I fix the error?

Thanks,
Brett
 
J

Juan T. Llibre

re:
Local Path: C:\Inetpub\wwwroot\mysite
Server Path: C:\Inetpub\mysite.com\

I get the following error on the server:

Hi, Brett.

Unless a lot of care has been taken to setup c:\inetpub
as the root directory of the web server, that route is more
likely to be C:\Inetpub\wwwroot\mysite.com\

Physically, that will be : C:\Inetpub\wwwroot\YourAppDirectory\
It's only in DNS that mysite.com is configured.

If your directory is actually named mysite.com, I'd suggest
you change it because that will introduce ambiguity in
your file references.

Try uploading your application's files to the server into :
C:\Inetpub\wwwroot\YourAppDirectory\
 
B

Brett

Thanks. I've changed the directory in IIS to wwwroot\mysite. I get this
vague error now:

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

Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>


I do have customerrors = off. Any idea what that is not working?

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

Similar Threads

Help with parse error. 8
Parser Error Help 1
Parser error 0
Parser error 2
Configuration Error Message 8
newbie error 6
Help: How to fix this error? 3
Parsing problem 3

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top