I am developing a web application (C# VS 2008). App works fine locally. To publish to my host, I publish locally (using File System to a local directory). Then, I manually FTP files to my web host.
When I try to run the page, I'm getting 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: CS0433: The type 'Core' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\11dc5a36\51e0badc\App_Code.okyxvrfm.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\11dc5a36\51e0badc\assembly\dl3\02b50bd1\76c9bdf0_a182cb01\App_Code.DLL'
Source Error:
Line 20:
Line 21:
Line 22: SqlConnection connection = new SqlConnection(Core.CONNECTION_STRING);
Line 23: SqlCommand cmd = new SqlCommand();
Line 24: SqlDataReader myReader = null;
The Core.CONNECTION_STRING holds my db connection string.
This only occurs when I run the app on my web host. Any ideas?