2
I was invited to solve a problem in a client’s system in Asp.net (Language in which I do not dominate). Without further ado...
My.aspx product file has the following directive
<%@ Import Namespace="Sitefeito.Mkraeprod" %>
some lines down I have this other:
Dim Component as new prod()
To which returns the following error:
BC30002: Type 'Prod' is not defined.
I don’t understand why, because at the same file level I have Vb/addproduto.Vb
containing:
Namespace Sitefeito.Mkraeprod
Public Class prod
As an attempt at solution:
In the web.config file (at the root of the project) I added
<pages>
<namespaces>
<add namespace="Sitefeito.Mkraeprod" />
</namespaces>
</pages>
As seen in this tutorial: http://www.devtrends.co.uk/blog/importing-namespaces-into-razor-views-in-asp.net-mvc-3
But to no avail
Tried to do so? Dim Component as new Sitefeito.Mkraeprod.Prod()
– PauloHDSousa
Yes, unfortunately nothing! The problem arose after I was forced to change the migration from Windows 2003 to Windows 2007. Given the lack of support of my resale.
– Iago Leão