Compiler Error Message: CS0246: The type or namespace name could not be found (are you missing a usi

  • Thread starter Thread starter infinetinc
  • Start date Start date
I

infinetinc

I'm receiving the following error when this site is published to the
production environment:
Compiler Error Message: CS0246: The type or namespace name
'GridViewHelper' could not be found (are you missing a using directive
or an assembly reference?)

The error does not occur on my local machine. The GridViewHelper
function is defined in my APP_CODE folder and is in both locations.

I'm using MS Visual Web Developer 2005 Express.

Can anyone help me with this problem?
 
Thanks...but this didn't help.
Here is the error message:


Line 15: public partial class Sensor2 : System.Web.UI.Page
Line 16: {
Line 17: private GridViewHelper helper;
Line 18: private GridViewHelper helper2;
Line 19: protected void Page_Load(object sender, EventArgs e)



Any suggestions would be greatly appreciated!
 
I had the same issue. I fixed it by changing a line in the web.config
to read:

<authentication mode="Forms">

instead of Windows since I was using SQL to store the authentication.
I also went into IIS and created the site as an application, right
click on folder, Properties, Create, scripts and executables, saved
this and then is started working.
 
Back
Top