CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: Date Entered: 6/27/2007 9:34:30 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 38 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
"fuongnh" <>
NewsGroup User
Error when fill data into a class inherit form dataset class6/27/2007 9:34:30 AM

0

 I have TM_OTPLANData class inherit from dataset class. My TM_OTPLANData  class has fixed column.

In data access layer, I have Bind Method, which connect to database to extract data, i fill entire data into TM_OTPlanData object and return that object.(Number of Column Data extract from database different from number of column  in TM_OTPLanData)

In GUI Layer, i declared a instance of TM_OTPLANData class and initiate it with the Bind Method and error has occured. Error Message as below:

Value of type 'IVIS.IVISCommon.Collection.TM_OTPLANData' cannot be converted to 'IVIS.IVISCommon.Collection.TM_OTPLANData'. Type mismatch could be due to the mixing of a file reference with a project reference to assembly 'IVISCommon'. Try replacing the file reference to 'IVISCommon.dll' in project '2_Overtime_IVISOT303.ascx' with a project reference to 'IVISCommon'.

My program run normally as i expected.  Please explain for me to understand that problem. I don't like seeing that message when compile my website. Please help me.

My TM_OTPLANData  as follow:

Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Runtime.Serialization
Namespace IVIS.IVISCommon.Collection

Public Class TM_OTPLANData:Inherits DataSet

Public Const OTID As String = "OTID"
Public Const CREATORID As String = "CREATORID"
Public Const PROJECTID As String = "PROJECTID"
Public Const CREATEDDATE As String = "CREATEDDATE"
Public Const BEGINDATE As String = "BEGINDATE"
Public Const ENDDATE As String = "ENDDATE"
Public Const ISCOMPLETEPLANAPPROVAL As String = "ISCOMPLETEPLANAPPROVAL"
Public Const ISCOMPLETEDACTUALAPPROVAL As String = "ISCOMPLETEDACTUALAPPROVAL"
Public Const PLANNOTE As String = "PLANNOTE"
Public Const ISCANCELED As String = "ISCANCELED"
Public Sub New()

' Create the tables in the dataset

BuildDataTables()

End Sub

Private Sub BuildDataTables()
Dim table As DataTable = New DataTable(IVISConst.TBL_TM_OTPLAN)
With table.Columns
.Add(TM_OTPLANData.OTID,
GetType(System.Int64))
.Add(TM_OTPLANData.CREATORID,
GetType(System.String))
.Add(TM_OTPLANData.PROJECTID,
GetType(System.Int64))
.Add(TM_OTPLANData.CREATEDDATE,
GetType(System.DateTime))
.Add(TM_OTPLANData.BEGINDATE,
GetType(System.DateTime))
.Add(TM_OTPLANData.ENDDATE,
GetType(System.DateTime))
.Add(TM_OTPLANData.ISCOMPLETEPLANAPPROVAL,
GetType(System.Boolean))
.Add(TM_OTPLANData.ISCOMPLETEDACTUALAPPROVAL,
GetType(System.Boolean))
.Add(TM_OTPLANData.PLANNOTE,
GetType(System.String))
.Add(TM_OTPLANData.ISCANCELED,
GetType(System.Boolean))

End With

Me.Tables.Add(table)

End Sub
End Class
End
Namespace

 

Thanks and best regard

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:













unit testing web services

namespace for classes in app_code

page classnames may not be the name of a webcontrol

build action for web application classes

addin support

mask edit for web forms

visual studio development, slow experience!

day, month and year view in embedded google calendar?

datasets

web deployment project, user controls, and code behind

chose 2005 or 2003 project model

could not prepare '...' for refactoring

web application deployment

possible bug?

web application projects and vs2005 service pack 1 beta

costom role provider does not work in web app project.

asp.net configuration - add user password validation customization

trying to override initialize method in custom membership provider...

double clicking button creates javascript function, not c# function

pre processing bug?

online business directory

user control libraries

drag and drop from solution explorer onto web form doesn't drop object but drops file name instead

web references and 'msdiscocodegenerator' error

code behind problem

new item -> checkbox "select master page" gone?

remote debugging sometimes opens files from other projects

wap slow

want sample code(webprofile.cs) generated by webprofilegenerator add-in

application variable

upgrade to release build gives "the project type is not supported by this installation"

custom control assembly references not resolved correctly

web profile generator addin registration problems!!

wap question

installation problem

wap on vs2005 french version

why are event handlers wired up in the aspx/ascx page?

how do you change a profile?

"ambiguous match found" error in @page directive

automatic building

help me in this task

eaccessviolation error on my web application

debugging asp.net - virtualpath on vs2005 webserver

error installing web application project msi file

how to access a class function from global.asax on vs 2005 web application???

"the project-to-project reference with guid"?

vs2005 freezing when building a web app

code-behind no longer references tags in aspx

treeview bug?

install problem

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT