We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon
Starting in 2019, the Reporting control is no longer included in Essential Studio. If you're experiencing issues with the Syncfusion Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion and appreciate your understanding.

ReportViewer - report with embedded VB script

Hi
 
I have a report with embedded VB script.  The entire project compiles, but once I navigate to the webpage with the ReportViewer component the following error occurs which I have captured using Fiddler:
 

Server Error in '/' Application.
--------------------------------------------------------------------------------

 C:\Program Files (x86)\IIS Express> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe" /t:library /utf8output /R:"system.dll" /R:"system.data.dll" /R:"system.xml.dll" /R:"syncfusion.reportcontrols.wpf.dll" /out:"C:\Users\#####\AppData\Local\Temp\xwiz5exw.dll" /debug-  "C:\Users\#####\AppData\Local\Temp\xwiz5exw.0.vb"

Microsoft (R) Visual Basic Compiler version 11.0.50938.18408
Copyright (c) Microsoft Corporation.  All rights reserved.
vbc : Command line error BC2017 : could not find library 'syncfusion.reportcontrols.wpf.dll'
vbc : Fatal error BC2000 : compiler initialization failed unexpectedly: 0x80070002
0: vbc : Command line (0,0) : error BC2017: could not find library 'syncfusion.reportcontrols.wpf.dll'
1: vbc : Fatal (0,0) : error BC2000: compiler initialization failed unexpectedly: 0x80070002
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: C:\Program Files (x86)\IIS Express> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe" /t:library /utf8output /R:"system.dll" /R:"system.data.dll" /R:"system.xml.dll" /R:"syncfusion.reportcontrols.wpf.dll" /out:"C:\Users\#####\AppData\Local\Temp\xwiz5exw.dll" /debug-  "C:\Users\#####\AppData\Local\Temp\xwiz5exw.0.vb"

Microsoft (R) Visual Basic Compiler version 11.0.50938.18408
Copyright (c) Microsoft Corporation.  All rights reserved.
vbc : Command line error BC2017 : could not find library 'syncfusion.reportcontrols.wpf.dll'
vbc : Fatal error BC2000 : compiler initialization failed unexpectedly: 0x80070002
0: vbc : Command line (0,0) : error BC2017: could not find library 'syncfusion.reportcontrols.wpf.dll'
1: vbc : Fatal (0,0) : error BC2000: compiler initialization failed unexpectedly: 0x80070002

Source Error:
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
 
 
[Exception: C:\Program Files (x86)\IIS Express> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe" /t:library /utf8output /R:"system.dll" /R:"system.data.dll" /R:"system.xml.dll" /R:"syncfusion.reportcontrols.wpf.dll" /out:"C:\Users\#####\AppData\Local\Temp\xwiz5exw.dll" /debug-  "C:\Users\#####\AppData\Local\Temp\xwiz5exw.0.vb"

Microsoft (R) Visual Basic Compiler version 11.0.50938.18408
Copyright (c) Microsoft Corporation.  All rights reserved.
vbc : Command line error BC2017 : could not find library 'syncfusion.reportcontrols.wpf.dll'
vbc : Fatal error BC2000 : compiler initialization failed unexpectedly: 0x80070002
0: vbc : Command line (0,0) : error BC2017: could not find library 'syncfusion.reportcontrols.wpf.dll'
1: vbc : Fatal (0,0) : error BC2000: compiler initialization failed unexpectedly: 0x80070002
]
   Syncfusion.RDL.Data.ReportModel.ProcessReport() +738
   Syncfusion.ReportViewer.Mvc.ReportViewerLayoutModel.LoadReport() +826
   Syncfusion.ReportViewer.Mvc.ReportViewerHtmlActionResult.ExecuteResult(ControllerContext context) +1472
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +39
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +116
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +529
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +106
   System.Web.Mvc.Async.<>c__DisplayClass28.<BeginInvokeAction>b__19() +321
   System.Web.Mvc.Async.<>c__DisplayClass1e.<BeginInvokeAction>b__1b(IAsyncResult asyncResult) +185
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +133
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +40
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +34
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +139
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +44
   System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +39
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +62
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +139
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__4(IAsyncResult asyncResult, ProcessRequestState innerState) +39
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +139
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +40
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9514812
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
 
I have included this DLL in my project and even had it "Copy Locally" but still get the error.
 
Can you please assist me in resolving this?
 
Cheers
 
Paul

7 Replies

SR Soundara Rajan S Syncfusion Team February 19, 2014 05:47 AM UTC

Hi Paul,

 

Sorry about inconvenience caused.  

 

We have already fixed this issue, in order for you to get a solution for this behaviour. Please contact us at Syncfusion Support or you may also open a support ticket by login in to direct trac account and mention this forum link for reference.

 

Please let us know, if you have any concerns.

 

Regards,

Soundara Rajan S

 



DI Douglas Irwin March 5, 2014 05:01 AM UTC

How was this resolved? I am having a similar issue


PJ paul jilek March 5, 2014 05:59 AM UTC

Hi Douglas
 
I was emailed a link with a patch EXE from Syncfusion which solved the majotrity of the issues, but you have to be careful what is embeded in the report.  It will not work if you have "Globals".
 
Cheers
 
Paul


DI Douglas Irwin March 5, 2014 06:14 AM UTC

Work-around: I was able to set copy local on my reference to Syncfusion.ReportControls.WPF.dll which helped me get past the issue. It looks like it won't grab it out of the GAC. I am currently using the 3.5 version of the dlls and that could be why I needed to have it copy local. This was a very difficult to debug as the only symptom I had was the report loading indefinitely. It looks like this error is swallowed somewhere within SyncFusion. Perhaps creating a log file for exceptions would help others diagnosis issues like this quicker.


AS Anandakumar S Syncfusion Team March 6, 2014 05:49 PM UTC

Hi Douglas,

We have used ReportControls dll in our Code logic to execute the code function, during execution of the application dll referred from IIS GAC so we have to set copy local true. We will consider your concerns for Report Processing errors generation in our ReportViewer improvements.

Please let us know if you any questions.

Regards,

Anandakumar S



MA Marcleo Alves January 8, 2016 12:56 PM UTC

I have a similar problem, can you help me:

C:\Program Files (x86)\IIS Express> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Users\Marcelo\AppData\Local\Temp\Temporary ASP.NET Files\root\7f9b2191\f83b2467\assembly\dl3\9ba0bbef\f25f916c_124ad101\EnsinadorBootstrap.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"C:\Users\Marcelo\AppData\Local\Temp\Temporary ASP.NET Files\root\7f9b2191\f83b2467\App_Web_menu.aspx.cdcab7d2.mcbgo0if.dll" /D:DEBUG=1 /debug+ /nowarn:41008,40000,40008 /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Collections.Specialized,System.ComponentModel.DataAnnotations,System.Configuration,System.Linq,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.DynamicData,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls,System.Xml.Linq /warnaserror- /optionInfer+  "C:\Users\Marcelo\AppData\Local\Temp\Temporary ASP.NET Files\root\7f9b2191\f83b2467\App_Web_menu.aspx.cdcab7d2.mcbgo0if.0.vb" "C:\Users\Marcelo\AppData\Local\Temp\Temporary ASP.NET Files\root\7f9b2191\f83b2467\App_Web_menu.aspx.cdcab7d2.mcbgo0if.1.vb"



SR Soundara Rajan S Syncfusion Team January 11, 2016 05:19 AM UTC

Hi Marcleo,

Thanks for contacting Syncfusion support.

The mentioned error might have occurred due to Framework version assembly conflict in your machine. So, please refer to the below MSDN KB article to resolve this issue,
https://support.microsoft.com/en-us/kb/3118750  

If the issue still persist with our control, then please confirm the used Syncfusion controls in the page, OS information, Framework version to validate this compilation error.

We have prepared a working VB sample and it can be downloaded from the below location,
http://www.syncfusion.com/downloads/support/directtrac/149410/ze/ReportViewerVB-1983299515.zip 

Regards,
Soundara Rajan S.

Loader.
Live Chat Icon For mobile
Up arrow icon