Visual Studio 2012 crashes while adding data source for view
I am trying to generate a rdlc report in vs 2012 final. the report worked fine on vs 2010. Now the problem is that Visual Studio crashed (closed) when I try to add a data source to the report viewer.
any suggestion to solve this problem. Is this a known bug in the 2012 version?
I was with the same error, then I removed the PdfSharp and MigraDoc libraries from the project.
No more mistakes.
EDIT:
Actually, the error was in the original control.
PdfSharp.Charting was removed, but the project was still referencing it.
Unfortunately this is a known issue in both Visual Studio 2012 and Visual Studio 2013 and is mentioned in this Microsoft Connect bug.
A workaround was posted on this MSDN blog.
I also had this problem. I was able to add reports to a new project, so I knew there was a problem with my project. After much trial and error, I decided that I have some unnecessary links that were carried over from an older project. The links were incorrect and some dependencies were missing. After removing these links, my problem was resolved.
I ran into this error after migrating a project from VS2010 to VS2012 recently.
The fix that worked for me was to open the .rdlc in a text editor and look for tags that contain the path to the dataset used in the report. They looked like this:
<rd:SchemaPath>.......some path.....</rd:SchemaPath>
In my case, the path was the old path to where the source was previously saved when I was working in VS2010. I changed the project location on my PC and this path is no longer valid.
So I updated the path to the correct location, saved the RDLC and everything works fine.
I am debugging and found that loading VS-Command resolved the issue.