I have created a new Umbraco instance on the host and copied across the App_Code folder and the partial view.
However, when I run this, I get
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 'owCore' does not exist in the current context
Source Error:
Line 640: if(rtn=="mediaUrl"){
Line 641: int mediaId = Int32.Parse(pValue);
Line 642: pValue = owCore.getMediaUrl(mediaId);
I thought APP_code would be automatically compiled and included in any sites.
Am I missing something, do I need to reference App_code in the config somewhere?
(I may have done this in the original instance, but this was created 3 years ago and I can't recall!
App_Code code not being recognised
I am using Umbraco 7 on a hosting service and on one instance have some code in file owCore.cshtml file in App_Code.
In this instance, I have a partial view which uses this code...
and it works fine.
I have created a new Umbraco instance on the host and copied across the App_Code folder and the partial view.
However, when I run this, I get
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.
I thought APP_code would be automatically compiled and included in any sites.
Am I missing something, do I need to reference App_code in the config somewhere?
(I may have done this in the original instance, but this was created 3 years ago and I can't recall!
How many hours have I stared at the code, and debugged it ... before finally spotting I had copied the App_Code folder to the wrong install.
Aaagh!!
is working on a reply...