Print Page | Close Window

Publishing site - missing classes

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=30795
Printed Date: 28 March 2026 at 10:32pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Publishing site - missing classes
Posted By: RCorr
Subject: Publishing site - missing classes
Date Posted: 10 July 2013 at 9:00pm
Hello,

I created a website in Visual Studio (VS) and it runs well within its own web server. When I published the site to a web hosting  I received the following error:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0103: The name 'cmMaintenance' does not exist in the current context

Source Error:


Line 70: 
Line 71:             //remove user from list that s/he desires
Line 72:             cmMaintenance.UpdateUser(txtName.Text, txtEmail.Text, ddlProvince.SelectedItem.Text, cblUnselectedPreferences, "Remove");
Line 73: 
Line 74:             cmMaintenance.UpdateUser(txtName.Text, txtEmail.Text, ddlProvince.SelectedItem.Text, cblSelectedPreferences, "Add");
 

I understand that this error is asking for the UpdateUser function that I've created in the cmMaintence class, but I don't understand what wasn't uploaded to the public server.

From my readings, the App_Code directory in VS generates an App_Code.dll file located in the bin directory.  I have checked the remote server and this file is present.
By the way, the bin directory within the project directory  or should it be at the root?

If anyone can shed some light on this, I will really appreciate it.

RCorr




Replies:
Posted By: WebWiz-Bruce
Date Posted: 11 July 2013 at 2:16pm
If you are placing your app in to a sub folder on a website have you converted the sub folder in to an application root?

To do this with many web hosts you need to convert the sub folder in to a Virtual Directory.

The sub folder is then it's own application root and can have it's own bin folder.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net