Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Publishing site - missing classes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Publishing site - missing classes

 Post Reply Post Reply
Author
RCorr View Drop Down
Groupie
Groupie


Joined: 21 January 2003
Status: Offline
Points: 126
Post Options Post Options   Thanks (0) Thanks(0)   Quote RCorr Quote  Post ReplyReply Direct Link To This Post Topic: Publishing site - missing classes
    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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.