Namespace does not work correctly / BC30002: Type 'prod' is not defined

2

I was asked to solve a system problem of a client in asp.net (Linguaguem in which I do not dominate). Without further ado ...

My Product.aspx file has the following directive

<%@ Import Namespace="Sitefeito.Mkraeprod" %>

Some lines below have this one:

Dim Component as new prod()

To which returns the following error:

  

BC30002: Type 'prod' is not defined.

I do not understand why, because at the same level of prod.aspx file I have vb / addproduto.vb

that contains:

Namespace Sitefeito.Mkraeprod
Public Class prod

As an attempt to resolve:

In the web.config file (in the project root) I added

<pages>
    <namespaces>
      <add namespace="Sitefeito.Mkraeprod" />
    </namespaces>
  </pages>

As seen in this tutorial: link

But unsuccessful

    
asked by anonymous 11.06.2015 / 03:30

1 answer

2

As the problem came up with the server version change, check out how the MVC build is in the project, what the framework is, and if the references to MVC are ok in the solution. What version of MVC?

If you comment on this page or delete it from the build, does the whole project work normally? Is it a timely problem?

If there are no references in the project the application will look in the server GAC and may not find the version you need.

    
02.05.2016 / 04:01