Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Visual Studio 2005 DataSet Visualizer

Posted on 2010-11-23
20
Medium Priority
?
775 Views
Last Modified: 2012-05-10
I have recently moved my development environment to a Windows 7 machine.  I have 4 or 5 solutions that are written in Visual Studio 2005.  All were working fine.  Then, this past week, when I run one of those solutions in debug and try to view datasets, the dataset visualizer no longer shows up....it shows as some sort of XMLDiffGram object.  I can open any of my other solutions and debug them and the dataset visualizer is there.  So, I cannot figure out how to get that back in my other solution.  I have tried many things I have seen on the internet and nothing has worked.

It seems that it has nothing to do with my Visual Studio installation since some solutions don't exhibit this problem.

Any help you could provide would be great.  I will be on vacation for a few days, but wanted to get this out there and will respond when I return.

0
Comment
Question by:ablesa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 7
  • 4
20 Comments
 
LVL 18

Expert Comment

by:carlnorrbom
ID: 34203010
Hi,

When you moved your development environment to W7, did you also upgrade VS to the newest version? Did you choose to run the VS conversion to upgrade the solutions to a later version of the framework?

/Carl.
0
 

Author Comment

by:ablesa
ID: 34229714
no, i did not upgrade the solution... it is still in VS 2005...  but so are many of my other solutions that still work fine...
0
 
LVL 18

Expert Comment

by:carlnorrbom
ID: 34230039
Hi,

Reason for me asking is there's sometimes issues with controls that change between the different version of the framework but it would seem this is not your case. I'm at a loss to be honest. What if you for testing purposes (please back up your solution first) were to copy the markup code for your dataset, delete it and create a new one in which you paste the copied code to re-create it?

/Carl.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ablesa
ID: 34230104
I'm not sure what you mean by copying markup code...  
0
 
LVL 18

Expert Comment

by:carlnorrbom
ID: 34230347
Hi,

Make backup copies of the dataset files (*.xsd/*.xss), then delete the dataset from the solution within VS. Add a new dataset the solution with the same name, open the backup files through explorer, for instance in Notepad and then replace the content of the dataset files in VS with the code from the backup copies. You can right click the dataset designer surface and choose "View code".

/Carl.
0
 

Author Comment

by:ablesa
ID: 34230479
There is no such thing...  This is just a datatable that is defined in the code...  Like this:

Dim dtUsers as datatable

When I debug, I should be able to see a "magnifying glass" icon when I hover over that datatable and I should be able to click that and see the contents of that datatable.

I'm not sure you understand my problem...
0
 
LVL 18

Expert Comment

by:carlnorrbom
ID: 34230572
Hi,

Ok, i misunderstood you then, I thought you where referring to strongly typed datasets. If you would have said datatable that is a completely different thing. In that case I am at a loss unfortunately.

/Carl.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34230638
0
 

Author Comment

by:ablesa
ID: 34232806
Yes, I saw that post, CodeCruiser...  It describes my problem to a "T", but unfortunately, nothing there helps.  Its just odd to me that it is only a problem in one solution.  I tried deleting my solution and pulling down again from source safe, but that doesn't help either...  Really odd...

Any other suggestions?
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34232912
Did you read this comment?

I was really bothered by the problem, so I turned to Microsoft support, and they solved my problem! The short solution is that apparently one of the DLL's in the My Documents\Visual Studio 2005\Visualizers folder was corrupted. I deleted all the contents of the folder, and the visualizer came back.
The long answer can be found in this post written by Faruk Celik - the person from Microsoft who solved my problem.
0
 

Author Comment

by:ablesa
ID: 34232930
yeah.... i tried that too...  AGain, it works in all of my solutions except one and I assume they would all be using the same folders and visualizer dll's...  so, its wierd why this one solution has a problem.

thanks...
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34232947
That to me means that the problem is with the configuration files of this project. Try deleting the SUO file (its hidden and do make a backup).
0
 

Author Comment

by:ablesa
ID: 34233521
well, i deleted it and opened solution and ran...  same thing....  I've attached a document that shows what it looks like in the problem solution and one that shows it correctly in another solution.
Visualizer-Problem.doc
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34233575
Are you sure its a datatable? Did you try this on some other variable?
0
 

Author Comment

by:ablesa
ID: 34234230
YEs...      Dim mUsersCache As System.Data.DataTable

Any variable in the "bad" solution looks wierd...not just datatables...

In my good solution, it shows the type and value of any variable I hover over like its supposed to....
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34237357
The only option left really is to create a new solution and add all the forms to it one by one.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34237360
You can use the immediate window by the way.
0
 

Accepted Solution

by:
ablesa earned 0 total points
ID: 34241273
Ok, I played with this some more and found the problem...  
The application was building for "any cpu" platform.  When I created a new configuration for the X86 platform and set that as the configuration for all of my projects, I now get the data visualizer and debugging works ALMOST like it should.  I still have an issue with my breakpoint not being recognized with the error "source code is different from the original version".  Haven't resolved that one yet, but I think I am on the right track now, at least.  Thanks for all your help CodeCruiser!
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34242658
Glad you got it sorted :-)
0
 

Author Closing Comment

by:ablesa
ID: 34276743
I found the answer myself but appreciate the thoughtful questions and tips from Code Cruiser.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question