Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Cannot implicitly convert type 'PocketVision.DataSetTasks' to 'PocketVision.DataAccess.DataSetTasks'
 

Cannot implicitly convert type 'PocketVision.DataSetTasks' to 'PocketVision.DataAccess.DataSetTasks'

I'm using VS 2005 to compile the c# version of PocketVision.Clean install and compileit works fine. Any change like editing the url in the Web References causes a whole heap of similar errors like:

Cannot implicitly convert type 'PocketVision.DataSetTasks' to 'PocketVision.DataAccess.DataSetTasks'.

Error6The best overloaded method match for 'System.Data.UniqueConstraint.UniqueConstraint(string, string[], bool)' has some invalid arguments

Error13Argument '2': cannot convert from 'System.Data.DataColumn[]' to 'string[]'

I don't understand what has happened to the namespaces it's really wierd.

Any help appreciated

James

JasMR  Friday, July 21, 2006 12:55 PM
I think Ryan Farley's post at the URL below answers your question, if I'm understanding your question correctly:

http://ryanfarley.com/blog/archive/2004/05/26/737.aspx

To me, it's not a very satisfying answer, though (it seems like there should be a way to get this to work without having to manually edit References.cs), but I haven't been able to find a better answer.


Shannon Wagner  Monday, July 31, 2006 7:22 PM
I think Ryan Farley's post at the URL below answers your question, if I'm understanding your question correctly:

http://ryanfarley.com/blog/archive/2004/05/26/737.aspx

To me, it's not a very satisfying answer, though (it seems like there should be a way to get this to work without having to manually edit References.cs), but I haven't been able to find a better answer.


Shannon Wagner  Monday, July 31, 2006 7:22 PM

Yep, thanks that is useful.

After I posted this, I read in the Pocket Vision documentation that one had to edit the References.cs but I couldn't understand what was going on... this clarifies it somewhat but I agree with you -whyhave a half baked Add Web reference? Either do it properly or document the manual tool well and let folks do it that way - or better still have a decent error message that heads you in the right direction :-)

JasMR  Tuesday, August 01, 2006 4:42 AM

You can use google to search for other answers

Custom Search

More Threads

• Terrarium Client Options
• Install Error
• Auto-Updating DataBindings
• VS 2005 Pro - How do I make my own control show move not resize handles?
• Thumbnails & screen shots
• Cannot access a disposed object named "MainForm"
• Blogs?
• Please post here if you are running a Terrarium server.
• Hebrew localization
• Another Source Installation Issue