473,387 Members | 1,876 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.

The type or namespace name 'AddNewProduct' could not be found (are you missing a

Hi,

For my own peace of mind, I am trying to finish off a website which uses ASP.
Net and C# and I am trying to get the C# programs to compile with Visual
Studio 2005. I think the errors are related to the conversion from an older
version of ASP.Net. I am new to everything and I am getting the above
message. The complete message is: "The type or namespace name
'AddNewProduct' could not be found (are you missing a using directive or an
assembly reference?)" and it is complaining about the following code:

namespace Furniture
{
/// <summary>
/// Summary description for AddNewProduct.
/// </summary>
public partial class Migrated_AddNewProduct : AddNewProduct

Would anyone have any ideas about this?

Thanks!!!

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200707/1

Jul 25 '07 #1
2 2945
I have seen this before where the converter engine supplies a new class
"Migrated_XXX" to cover inconsistencies in behavior of old classes (duplicate
class defs, etc.)
Your new class derives from the one you are looking for, it's really just a
typesafe wrapper over the old. So instead, try using the new one.

Peter
--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com

"CdnRebel via DotNetMonster.com" wrote:
Hi,

For my own peace of mind, I am trying to finish off a website which uses ASP.
Net and C# and I am trying to get the C# programs to compile with Visual
Studio 2005. I think the errors are related to the conversion from an older
version of ASP.Net. I am new to everything and I am getting the above
message. The complete message is: "The type or namespace name
'AddNewProduct' could not be found (are you missing a using directive or an
assembly reference?)" and it is complaining about the following code:

namespace Furniture
{
/// <summary>
/// Summary description for AddNewProduct.
/// </summary>
public partial class Migrated_AddNewProduct : AddNewProduct

Would anyone have any ideas about this?

Thanks!!!

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200707/1

Jul 25 '07 #2
Hi Peter,

I'm not sure where you mean. The .aspx version of that .cs file was changed
by the converter engine as well:

<%@ Page language="c#" Inherits="Furniture.Migrated_AddNewProduct"
CodeFile="App_Code/AddNewProduct.aspx.cs" %>

Thanks,
Mary

Peter Bromberg [C# MVP] wrote:
>I have seen this before where the converter engine supplies a new class
"Migrated_XXX" to cover inconsistencies in behavior of old classes (duplicate
class defs, etc.)
Your new class derives from the one you are looking for, it's really just a
typesafe wrapper over the old. So instead, try using the new one.

Peter
>Hi,
[quoted text clipped - 16 lines]
>>
Thanks!!!
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200707/1

Jul 25 '07 #3

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

Similar topics

2
by: Matthew Louden | last post by:
using System.Data; using System.Data.SqlClient; //etc... SqlConnection conn = new SqlConnection(connString); SQLDataSetCommand myCmd = new SQLDataSetCommand("select * from Test;", conn);...
3
by: Joe DeAngelo | last post by:
When I try to compile a source code which should normally run I got this error message error CS0246: The type or namespace name 'XmlSchemaSet' could not be found (are you missing a using...
4
by: carqs123 | last post by:
What is the procedure for using a class defined in the same solution but in another project? The language I am using is c-sharp. I have a solution with two projects in it. A c-sharp program in...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
7
by: Harris | last post by:
Dear all, I have the following codes: ====== public enum Enum_Value { Value0 = 0, Value1 = 10,
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...
6
by: antonyliu2002 | last post by:
Hi, guys, I am using Visual Web Developer Express 2005 for my web application. I wrote a simple class called MyTestClass.cs and put it in the App_Code folder. I compiled it to library from...
2
by: Andrus | last post by:
I'm trying to compile myGeneration PropertyCollectionAll.cs file with VCS Express 2005 bot got error Error 1 The type or namespace name 'Collection' could not be found (are you missing a using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.