Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Compiler Error Message: BC30002: Type 'XmlDatabase

Author  Topic 

hima
Starting Member

7 Posts

Posted - 2007-11-13 : 02:24:11
hi friends...
i got an error message as follows when i tried to call a class from an imported namespace ......

Server Error in '/Sample' Application.--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'XmlDatabase' is not defined.

Source Error:


Line 3: Partial Class check
Line 4: Inherits System.Web.UI.Page
Line 5: Public obj As New XmlDatabase
Line 6:
Line 7:



my code is as follows...

Imports MyConnection

Partial Class check
Inherits System.Web.UI.Page
Public obj As New XmlDatabase
.......................
......................

JBelthoff
Posting Yak Master

173 Posts

Posted - 2007-11-14 : 18:13:52
Try adding your namespace to your web.config file under <pages><namespaces>


<pages>
<namespaces>
<add namespace="System" />
<add namespace="System.Net" />
<add namespace="MyConnection" />
</namespaces>
</pages>


JBelthoff
• Hosts Station is a Professional Asp Hosting Provider
› As far as myself... I do this for fun!
Go to Top of Page

hima
Starting Member

7 Posts

Posted - 2007-11-15 : 05:08:23
hi ............
thanks for your valuable advice.
i added those namespaces.
but no way

please suggest me more ...
Go to Top of Page

JBelthoff
Posting Yak Master

173 Posts

Posted - 2007-11-17 : 09:34:04
Where is your class "MyConnection"?

JBelthoff
• Hosts Station is a Professional Asp Hosting Provider
› As far as myself... I do this for fun!
Go to Top of Page
   

- Advertisement -