Click here to Skip to main content
15,887,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am trying to upload my application on remote server and its giving me hard

time. Application is working perfectly in DEV server, Also to be sure I uploaded

the Application on my IIS server (Windows XP) and it work's Great.

But as soon as i upload it on hosting server, gives me error

Error look like this

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 'WebApplication1._Default'.

Source Error: 


Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default"%>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 

Source File: /test/default.aspx    Line: 1 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 


Thanks in Advance.
Posted
Updated 2-May-12 5:29am
v2
Comments
R. Giskard Reventlov 2-May-12 11:55am    
Have you compiled the application and uploaded the contents of the bin folder? i.e., all of the assemblies required by the application?
Sandeep Mewara 2-May-12 12:11pm    
You selected correct .NET Framework?
prthpatel412 2-May-12 13:56pm    
yes i have 4.0 framework on both end, also yes i checked if dll is generating after i built the application and it is . I am telling you i uploaded the application on my local IIS server it is running flawlessly. Do you think there is any setting on hosting company server that needs to be corrected properly( beside framework version )
AmitGajjar 3-May-12 0:51am    
you need to contact your hosting provider. i doubt there is problem with dot net framework version. upload single page and check if it is working there.

-Amit
prthpatel412 3-May-12 9:05am    
ya i resolve it yesterday amit and you are right it was problem from their side. They didnt make the folder where i was publishing the app as " Application Folder" .
But thanks.

i think you have 2 controls or classes or ....... with the same names if ignoring case .
check them:
for example:
lstList1 and lstlist1

or 2 classes or every thing
 
Share this answer
 
v2
Comments
prthpatel412 2-May-12 14:07pm    
I checked there is only one code behind class webform1 and it has three methods page_load, button1_click and getuserid ( contain javascript ) which i am calling from button1_click.

About controls each of them has ID which is unique ( no as Label , label but
as Label1 , Label2.

Do you think i have make some setting in Web.config file .. ???
ya i resolve it yesterday amit and you are right it was problem from their side. They didnt make the folder where i was publishing the app as " Application Folder" . But thanks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900