Solved

Visual Studio 2005 DataSet Visualizer

Posted on 2010-11-23
20
749 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
  • 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now