This is a migrated thread and some comments may be shown as answers.

Unable to move Web Application to shared host

1 Answer 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Russell
Top achievements
Rank 1
David Russell asked on 22 May 2010, 10:48 AM

Hi,

Usually I simple create an ASP.NET web site in Visual Studio. This time I created a Telerik C Sharp Web Application and cannot successfully move it to my shared host. 

I see a difference is that in the Web Application, all classes are surrounded by a namespace where regular web sites are not, for example.

Thus I have:

<%@ Page Title="" Language="C#" MasterPageFile="~/SiteV1.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="preTOPS.Home" %> 

Rather than:

<%@ Page Title="" Language="C#" MasterPageFile="~/SiteV1.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="Home" %> 
Attempting to run the site on the shared host produces:

Parser Error Message: Could not load type 'preTOPS.SiteV1'.  
 
Source Error:   
 
Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="SiteV1.master.cs" Inherits="preTOPS.SiteV1" %>  
Line 2:    
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
I'm on a tight deadline - can you help quickly?

Thank you

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 25 May 2010, 11:14 AM
Hello,

From the code you showed it seems that the page classes in your web application are compiled (built) into an assembly called preTOPS.dll. See if this file is deployed to your hosting in the bin folder of the application. If not, then make sure the file is built in your web application (e.g. there are no compilation errors when you build your solution locally).

Greetings,
Lini
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
David Russell
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or