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

  • Thread starter Thread starter CdnRebel via DotNetMonster.com
  • Start date Start date
C

CdnRebel via DotNetMonster.com

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!!!
 
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 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
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
[quoted text clipped - 16 lines]
Thanks!!!
 

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

Back
Top