473,230 Members | 1,930 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,230 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 23802
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.