Parsing problem

A

Arsalan Ahmad

Hi,

I have recently uploaded a file in a webserver. When i try to access it via
browser, I get following error:
This is working fine in my local copy. Any idea what could be wrong.
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 'MyWebsite.dynamic.Global'.

Source Error:

Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="MyWebsite.dynamic.Global" %>


Source File: E:\webroot\xxxxx\MyWebsite\MyWebsite.com\www\global.asax
Line: 1


----------------------------------------------------------------------------
----


Thanks,

Arsalan
 
R

Rutger Smit

Arsalan said:
Hi,

I have recently uploaded a file in a webserver. When i try to access it via
browser, I get following error:
This is working fine in my local copy. Any idea what could be wrong.
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 'MyWebsite.dynamic.Global'.

Source Error:

Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="MyWebsite.dynamic.Global" %>


Source File: E:\webroot\xxxxx\MyWebsite\MyWebsite.com\www\global.asax
Line: 1


----------------------------------------------------------------------------
----


Thanks,

Arsalan


Has the directory where your app runs in a Application (can be done in IIS).

//Rutger
 
R

Rutger Smit

Rutger said:
Has the directory where your app runs in a Application (can be done in
IIS).

//Rutger


The directory where you global.asax is, must be the root website, a
Virtual Directory or a a directory with a Application.

I assume that the url of your website is just www.mywebsite.com without
a subdirectory. If so: did you upload all the required dll files? If you
use some third party components the don't forget to upload them too.

//Rutger
www.RutgerSmit.com
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top