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

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?
 
I

infinetinc

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!
 
W

willie55

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top