VB Sample Code Not Working in VS 2019

Hi,

I downloaded the VB Sample Code / Projects from another thread here.
None of the sample Projects run in VB.
Please Help. Thanks

Some Examples of the errors are reproduced below:

**************************
One Example
**************************

Severity    Code    Description    Project    File    Line    Suppression State
Warning        The primary reference "Syncfusion.Grid.Base" could not be resolved because it has an indirect dependency on the assembly "Syncfusion.Shared.Base, Version=18.4460.0.39, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" which was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    Workbook_2010           
Warning        The primary reference "Syncfusion.Grid.Windows" could not be resolved because it has an indirect dependency on the assembly "Syncfusion.Shared.Base, Version=18.4460.0.39, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" which was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    Workbook_2010           
Warning        The primary reference "Syncfusion.Shared.Windows" could not be resolved because it was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    Workbook_2010           
Warning        The primary reference "Syncfusion.Grid.Windows" could not be resolved because it was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    Workbook_2010           
Warning        The primary reference "Syncfusion.Shared.Base" could not be resolved because it was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    Workbook_2010           
Warning        The primary reference "Syncfusion.Grid.Base" could not be resolved because it was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    Workbook_2010           
Warning        The referenced component 'Syncfusion.Core' could not be found.    Workbook_2010           
Warning        The primary reference "Syncfusion.Shared.Windows" could not be resolved because it has an indirect dependency on the assembly "Syncfusion.Shared.Base, Version=18.4460.0.39, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" which was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    Workbook_2010           
Warning        Could not resolve this reference. Could not locate the assembly "Syncfusion.Core". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.    Workbook_2010           
Warning        The primary reference "Syncfusion.Grid.Windows" could not be resolved because it has an indirect dependency on the assembly "Syncfusion.Shared.Windows, Version=18.4460.0.39, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" which was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    Workbook_2010           

*************************
**************************
Second Example
*****Instances of this error (1) 
 
1.   PdfViewerDemo_2010 Form1.Designer.vb Line:54 Column:1   Hide Call Stack
 
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.CreateVariableKindUnknownException(XmlElementData xmlElement, String name)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.CreateNameReferenceExpression(XmlElementData xmlElement)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.XmlElementData.get_CodeDomElement()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.EndElement(String prefix, String name, String urn)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.Parse(XmlReader reader)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.ParseXml(String xmlStream, CodeStatementCollection statementCollection, String fileName, String methodName)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e)
at System.CodeDom.CodeMemberMethod.get_Statements()
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)  

 
 *********************
From the Same Attempt
*********************



5 Replies

BT Balamurugan Thirumalaikumar Syncfusion Team March 29, 2021 07:25 AM UTC

Hi Ashutosh, 

Thank you for using Syncfusion products. 

We have checked the reported issue in our end, we found the assemblies which referred only the 4.6 version. This error occurred due to the mismatching of frame work version and Syncfusion assembly reference version. For this we suggest you to change the version of the application frame work in project file to 4.0 or use assembly reference as 18.4400.0.39. Otherwise you have to refer the dll’s that are installed in the system and the assembly details can be found from the following installed location.  
  
“<Installed Location>\Syncfusion\Essential Studio\ 18.4.0.39 \precompiledassemblies”  
  
You can refer the below KB link to avoid the assembly conflicts,  
  
  
Also you can refer the below forum which provides more details about the same issue which you are faced.  

Please let us know if you would require any other assistance on this.  

Regards, 
Balamurugan Thirumalaikumar


BT Balamurugan Thirumalaikumar Syncfusion Team March 30, 2021 06:18 AM UTC

Hi Ashutosh,  
  
Please find the below details for Windows Forms PdfViewer issue.  
  
We tried to reproduce the reported issue in our end with 18.4.0.39 version, but we could not reproduce the issue in our end. Please download the sample which we used to reproduce the issue from the below link,  
  
Please let us know if the above sample is helpful to solve your issue or please provide the below details.   
  
1.      Visual Studio version  
2.      .Net Framework Version  
3.      Syncfusion Product version  

Regards 
Balamurugan.Thirumalaikumar 



AS Ashutosh March 30, 2021 10:43 AM UTC

Hi,

The problem continues.

I am attaching a screenshot of the error as well as all the information as required by you.

Thanks

Regards
Ashutosh


Attachment: PDFVIEWER_ERROR_1e36ad81.zip


AS Ashutosh March 30, 2021 11:10 AM UTC

Hi,

After some additional investigation, I opened up the NuGet Package Manager For the PDFViewer solution.
I noticed an error for missing references to 3 or 4 packages and used the 'restore' option to fix that.
The solution had 'Syncfusion.Core' referenced in the solution explorer.
There was no NuGet Package for this. Either it does not exist now, is redundant and removed, or was not needed in the solution.
I deleted the reference from the solution explorer and the solution now started.
while it appears that the problem has been solved, do let me know what the above means.
Was it a problem with my installation of Syncfusion? Are any Syncfusion components missing?

Thanks
Regards
Ashutosh



DD Divya Dhayalan Syncfusion Team March 31, 2021 05:27 PM UTC

Hi Ashutosh, 
 
Sorry for the inconvenience caused. 
 
We have removed the Syncfusion.Core dependency from the WinForms PDF Viewer control few releases ago, and the PDF Viewer control will now work without the Syncfuion.Core dependency. We will remove this dependency from our VB samples in our upcoming release. 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Divya 


Loader.
Up arrow icon