Visual Studio Eror Messages
30 juni 2015 2021-10-13 9:23Visual Studio Eror Messages
Visual Studio Eror Messages
Yes, that typo was intended.
Remember when I said this?
[Using Google to find a solution to] Error messages? Be sure to include the exact message - "in quotes"
Recently I encountered a occasion where this helped especially well. A colleague emailed me with the question why his VS2010 install didn't load his SSRS Preview correctly. The 'Run' functionality worked, but the 'preview' didn't. The error message was this:
=================================== An error prevented the view from loading. (Microsoft Visual Studio) =================================== An error occured while attempting to start the report preview worker process. (Microsoft.Reportingservices.Designer) ------------------------------ Program Location: at Microsoft.ReportDesigner.Design.ProcessingHostProcess.StartProcess() at Microsoft.ReportDesigner.Design.ProcessingHostProcess.GetProcessingClient(IPreviewProcessingCallback callback) at Microsoft.ReportDesigner.Design.WCFProcessingHost..ctor(ProcessingHostProcess hostProcess, ILocalCatalog catalog) at Microsoft.ReportDesigner.Design.PreviewFrame.<>c__DisplayClass1.<CreateLocalReport>b__0() at Microsoft.Reporting.WinForms.LocalReport..ctor(Func`1 getNewProcessingHostInstance) at Microsoft.ReportDesigner.Design.PreviewFrame.CreateLocalReport() at Microsoft.Reporting.WinForms.ReportViewer.Reset() at Microsoft.ReportDesigner.Design.PreviewFrame.Initialize(ProjectReportDesigner designer) at Microsoft.ReportDesigner.Design.ProjectReportDesigner.CreatePreviewFrame(VsStyleToolBar pageViewToolBar) at Microsoft.DataWarehouse.Design.EditorWindow.EnsureViewIsLoaded(EditorView view) =================================== CreateProcess failed with Error Code: 5 (Microsoft.Reportingservices.Designer) ------------------------------ Program Location: at Microsoft.ReportDesigner.Design.DependentProcessMonitor.TraceAndThrowLastError(String functionName) at Microsoft.ReportDesigner.Design.DependentProcessMonitor.CreateDependentProcess(String exePath, String commandLineArgs) at Microsoft.ReportDesigner.Design.ProcessingHostProcess.StartProcess()
In this case, it was quite easy to find the solution. All I needed to do was one Google search on the exact error message "An error occured while attempting to start the report preview worker process. (Microsoft.Reportingservices.Designer)". The first hit already contained the problem description and (kind of) solution.
In short: it's a rights issue on Windows. But that's not the point of this post (although it might help you as well)
The error message seems pretty common, but it is not. If you don't see why immediately, Google will offer you a hint why you're seeing such specific results while searching for such a generic error message ;-).
The bottom line? Google your error messages. Copy-paste them (so you don't miss any subtleties) and use quotes.
Comments (2)
Jesse
Be sure to leave out specific names, unique to your solution 😉
Koos van Strien
.. Before searching in Google. Yes!
Comments are closed.