IntelliSense AssemblyReferences

Hi,
I want to use the EditControl for C# scripting with IntelliSense.
For this I have to add the "System" and children namespaces to get these types also.
How can I add these?
I tried it with:

            Assembly assembly = Assembly.GetAssembly(typeof(System.Int16));
            string path = assembly.Location;
            uriList.Add(new Uri(path));

It doesn't work and I get an Exception:

FileLoadException: Could not load file or assembly 'System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

So how can I add the assembly for using it?

Best regards,
Jürgen



9 Replies

TB Thirupathi Bala Krishnan Syncfusion Team November 24, 2021 03:02 PM UTC

Hi Jürgen, 
 
Thanks for contacting Syncfusion support. 
 
We checked your reported query "FileLoadException thrown when adding the "System" and children namespaces in EditControl" in your version 19.3.0.53. However, we encountered no errors while adding the system-related references. We suspect that the reported problem is caused by the folder restriction. Could you please double-check and confirm that the reported folder has been restricted on your end? It only causes the problem mentioned above. Because we load the assembly based on the given path location. 
 
Please refer the following screenshot for your reference. 
 
 



























                                     
 
 
Please refer the attached videos from the following location. 
 
 
Could you please check the issue in the above sample and let me know whether or not the reported issue has been resolved? Please let us know if you need any further assistance. 
 
Regards, 
Thirupathi B. 



JS Jürgen Schildmann November 24, 2021 07:54 PM UTC

Hi,
I forgot, that I use .Net5 instead of .Net Framework 4.x.
I tried it with both and got the same result:

If using .Net Framework - it works
If using .Net5 - The exeption occurs

Attached is the sample for both Frameworks I tried.


Best regards,
Jürgen


Attachment: Intellisense_Test_30c5aa68.zip


TB Thirupathi Bala Krishnan Syncfusion Team November 25, 2021 03:47 PM UTC

Hi Jürgen, 

Thanks for the update. 

We were able to reproduce the reported issue "FileLoadException thrown while loading the assembly name" in the NET50 sample. We would like to inform you that the reported scenario is not under our control. The reported issue occurs when the LoadAssembly method is called. Since we have called the Assembly.LoadFile method in our source level based on the given assembly path. We can reproduce the reported issue in the simple sample without using our EditControl. We created the simple sample by obtaining the assembly name via Assembly.GetAssembly method in the Button click and then load the by invoking the Assembly.LoadFile is a method that loads a file. After clicking the button, the reported exception was thrown. 


Hence we have reported the behavior in MSDN developer community. We’ll let you know once we got any update from the developer community. We’ll provide the solution based on the update. We appreciate your patience until then.  

Please refer the community link below.    

Regards,
Thirupathi B. 



JS Jürgen Schildmann December 6, 2021 01:09 PM UTC

Hi again,
Isn't it possible to provide a property of used Assemblies directly instead of the list of URIs?
In that case I can use


typeof(int).Assembly

instead of trying to load the assembly.

Best regards,
Jürgen



EM Elakkiya Muthukumarasamy Syncfusion Team December 7, 2021 01:29 PM UTC

Hi Jürgen, 
  
Thanks for your update. 
  
We are checking the reported query and we will update the further details on or before 9th December 2021.We appreciate your patience until then. 
  
Regards, 
Elakkiya 



TB Thirupathi Bala Krishnan Syncfusion Team December 9, 2021 04:55 PM UTC

Hi Jürgen,  

Thanks for your patience. 

Your reported query "FileLoadException thrown during loading the assembly name in NET50" has been validated. We got the ideas from the MSDN forum. We proposed the implementation based on the MetadataLoadContext in our source project right now. Based on the supplied remedies, we partially fixed the reported issue. However, we must test all possible test cases at our end. So we’ll provide the patch details on 13th December, 2021. We appreciate your patience until then. 

Please refer the community link below. 

Regards, 
Thirupathi B. 



TB Thirupathi Bala Krishnan Syncfusion Team December 13, 2021 04:51 PM UTC

Hi Jürgen, 
  
Sorry for the inconvenience caused.   
  
We partially completed the reported issue “FileLoadException thrown during loading the assembly name in NET50“. The code changes are currently undergoing final testing. We need to confirm the possible automations on our end. As a result, we will be unable to provide the patch details that we promised. We’ll provide the patch details on December 16, 2021, once the testing phase is completed. We appreciate your patience until then.   
  
Regards, 
Thirupathi B. 



TB Thirupathi Bala Krishnan Syncfusion Team December 16, 2021 06:21 PM UTC

Hi Jürgen,

Thanks for your patience.

We fixed the reported issue “FileLoadException thrown during loading the assembly name in NET50”. We are currently experiencing an issue with our patch portal. So, we will be unable to provide the patch details that we promised. We’ll provide the patch details on December 17, 2021. We appreciate your patience until then.

Regards,
Thirupathi B.


TB Thirupathi Bala Krishnan Syncfusion Team December 18, 2021 03:11 PM UTC

Hi Jürgen, 
 
Thanks for your patience. 
   
We have fixed the reported issue - “FileLoadException thrown during loading the assembly name in NET50”. Please find the patch file from the following location: 

V19.3.0.53
 
Recommended approach – exe will perform automatic configuration                   
Please find the patch setup here:                                         
                       
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                                    
Please find the patch assemblies alone from:                    
                 
Please find the Nugets from the below location:                   
                  
 
NOTE:         
You can change how you receive bug fixes by navigating to the following link and updating your preferences.        
                 
Disclaimer:                                  
Please note that we have created this patch for the version 19.3.0.53 specifically to resolve the issues reported in this forum #170660. If you have received other patches for the same version for other products. This fix will be included in our Volume 4 SP1 release which will be available in January 2022. 
   
Please let us know if you need any further assistance.   
   
Regards,
Thirupathi B.
 


Loader.
Up arrow icon