•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,742 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,400 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 337 | Replies: 2 | Solved
![]() |
I have a data layer class built with the dataset designer that I have added as a reference (compiled dll) in a project. When I run the app locally from Visual Studio, it runs just fine. However when I move it to the hosted server, I get "Type 'H2C2DataLayer.h2c2DataSet.topicsDataTable' is not defined."
Here's some code:
For some reason, it errors out on line 2, even though it's inside a try/catch. Can't figure that one out either. The exception should be caught and dumped to the diagnostics label.
Here's some code from the class:
There's obviously more to the class, but it doesn't matter because whatever function I call, I get the same error.
Here's some code:
VB.NET Syntax (Toggle Plain Text)
Try Dim adp_hotTopic As H2C2DataLayer.h2c2DataSet.topicsDataTable = GetTopics() rptNav.DataSource = adp_hotTopic rptNav.DataBind() Catch ex As Exception lblDiagnostics.Text = ex.Message & "<br />" & ex.StackTrace End Try
For some reason, it errors out on line 2, even though it's inside a try/catch. Can't figure that one out either. The exception should be caught and dumped to the diagnostics label.
Here's some code from the class:
VB.NET Syntax (Toggle Plain Text)
Public Class Data Public Shared Function GetTopics() As h2c2DataSet.topicsDataTable Dim dt As New h2c2DataSet.topicsDataTable Dim taTopics As New h2c2DataSetTableAdapters.topicsTableAdapter dt = taTopics.GetData() Return dt End Function End Class
There's obviously more to the class, but it doesn't matter because whatever function I call, I get the same error.
First i would try using standard DataTables as it is possible that the server has not got the prerequisites installed for H2C2DataLayer.h2c2DataSet.topicsDataTable
Try
Try
Dim SQLTable as new DataTable
Last edited by ptaylor965 : Apr 16th, 2008 at 6:30 pm.
Thanks for the feedback. It turns out that it was actually a problem on the server. I talked to the person in charge of our hosting servers and he said that the folder was configured as an app under the virtual directory, but not the virtual host. Once he changed that, it worked perfectly.
I never realized there was a difference. Not that it matters because I don't have control over that anyway and would have never known.
I never realized there was a difference. Not that it matters because I don't have control over that anyway and would have never known.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access advertising advice architecture backup business code combo crash daniweb data data protection database development doubleclick drive dropdownlist encryption enterprise europe forensic forensics google hard hardware help internet linux mail microsoft mmorpg module net news open privacy qmail red hat reuse rhel security server smtp software source storage terabyte web wikipedia windows
- Previous Thread: how to create a media player
- Next Thread: how to add header and footer in my web page


Linear Mode