473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Compiler Error Message: CS0246: The type or namespace name could not be found (are you missing a using directive or an assembly reference?)

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?

Nov 30 '06 #1
4 23820
You can find a solution here...

http://groups.google.com/group/micro...2269b18f8c0955

Brennan Stehling
http://brennan.offwhite.net/blog/
in********@gmail.com wrote:
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?
Nov 30 '06 #2
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!

Nov 30 '06 #3
I was able to resolve the problem by 1st seperating my c# code from vb
code following this article:
http://www.dotnetbips.com/articles/d...le.aspx?id=512

Then I had to copy the App_Code folder (and sub folders) into the
directory that I was calling the page from...

Hope this helps someone.

Nov 30 '06 #4
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.

in********@gmail.com wrote:
I was able to resolve the problem by 1st seperating my c# code from vb
code following this article:
http://www.dotnetbips.com/articles/d...le.aspx?id=512

Then I had to copy the App_Code folder (and sub folders) into the
directory that I was calling the page from...

Hope this helps someone.
Dec 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nuve | last post by:
I followed the instructions on the Microsoft article (http://support.microsoft.com/default.aspx?scid=kb;en- us;326340) on HOW TO: Authenticate against the Active Directory by Using Forms...
4
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
8
by: Jon Paal | last post by:
Compiler Error Message: BC30002: Type 'System.Management.ManagementObjectCollection' is not defined. Source Error: Imports System.Management .... Line 40: Dim moColl As...
1
by: Kumar Bhogaraju | last post by:
We developed an application in 2.0; but our new hosting provider supports only 1.1. Can anyone point me to a link where we can migrate the application easily without rewriting the code? When we...
0
by: WebDev2 | last post by:
I can't get AJAX.NET Pro to work. I keep getting a Compiler Error Message: CS0246: The type or namespace name 'AjaxPro' could not be found (are you missing a using directive or an assembly...
3
by: Jon Paal | last post by:
how do I "define" 'MSXML.XMLHTTPRequest' type ? Compiler Error Message: BC30002: Type 'MSXML.XMLHTTPRequest' is not defined. Source Error: Line 82: Dim XMLReq As New...
3
by: Mariano | last post by:
Greetings, I'm developing a web site in asp.net 2.0. I have class files in App_Code and they are used in aspx. Example: * App_Code ( i have users.cs containing users class, data.cs is DAL) *...
1
by: rhea06car | last post by:
i got an error massage cs0246: The type or namespace name 'StringCollection' could not be found (are you missing a using directive or an assembly reference?) heres my code: public static...
0
by: =?Utf-8?B?amFzbGVndW1l?= | last post by:
The error Compiler Error Message: BC30002: Type 'CUNAMutual.CorporateComponents.PageTemplate' is not defined. I have some corporate components that are used as styles for page uniformity. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.