SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
Hello to all,
today morning my SmartConnector Framework interface seems that it does not work correctly. W
<Error> <Message>An error has occurred.</Message> <ExceptionMessage> Eccezione generata dalla destinazione di una chiamata. </ExceptionMessage> <ExceptionType>System.Reflection.TargetInvocationException</ExceptionType> <StackTrace> in System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) in System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) in System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in Mongoose.Service.Portal.ViewEngine.View.WriteToStream(Stream stream) in Mongoose.Service.Portal.Formatters.ViewEngineFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext) in System.Net.Http.ObjectContent.SerializeToStreamAsync(Stream stream, TransportContext context) in System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize) in System.Web.Http.Owin.HttpMessageHandlerAdapter.<BufferResponseContentAsync>d__13.MoveNext() </StackTrace> <InnerException> <Message>An error has occurred.</Message> <ExceptionMessage> Non è stato possibile caricare il file o l'assembly 'System.Web.Razor.resources, Version=3.0.0.0, Culture=it-IT, PublicKeyToken=31bf3856ad364e35' o una delle relative dipendenze. Impossibile trovare il file specificato. </ExceptionMessage> <ExceptionType>System.IO.FileNotFoundException</ExceptionType> <StackTrace> in System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) in System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean throwOnFileNotFound, StackCrawlMark& stackMark) in System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark) in System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark) in System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark) in System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) in System.Resources.ResourceManager.GetString(String name, CultureInfo culture) in System.Web.Razor.Resources.RazorResources.get_ParseError_InheritsKeyword_Must_Be_Followed_By_TypeName() in System.Web.Razor.Parser.CSharpCodeParser.InheritsDirectiveCore() in RazorEngine.Compilation.CSharp.CSharpCodeParser.InheritsDirective() in System.Web.Razor.Parser.CSharpCodeParser.AfterTransition() in System.Web.Razor.Parser.CSharpCodeParser.AtTransition(CSharpSymbol current) in System.Web.Razor.Parser.CSharpCodeParser.ParseBlock() in System.Web.Razor.Parser.HtmlMarkupParser.OtherParserBlock() in System.Web.Razor.Parser.HtmlMarkupParser.SkipToAndParseCode(Func`2 condition) in System.Web.Razor.Parser.HtmlMarkupParser.SkipToAndParseCode(HtmlSymbolType type) in System.Web.Razor.Parser.HtmlMarkupParser.ParseDocument() in System.Web.Razor.Parser.RazorParser.ParseCore(ITextDocument input) in System.Web.Razor.Parser.RazorParser.Parse(ITextDocument input) in System.Web.Razor.RazorTemplateEngine.GenerateCodeCore(ITextDocument input, String className, String rootNamespace, String sourceFileName, Nullable`1 cancelToken) in System.Web.Razor.RazorTemplateEngine.GenerateCode(TextReader input) in RazorEngine.Compilation.CompilerServiceBase.GetGeneratorResult(RazorEngineHost host, String template) in RazorEngine.Compilation.CompilerServiceBase.GetCodeCompileUnit(String className, String template, ISet`1 namespaceImports, Type templateType, Type modelType) in RazorEngine.Compilation.DirectCompilerServiceBase.Compile(TypeContext context) in RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context) in RazorEngine.Templating.TemplateService.CreateTemplateType(String razorTemplate, Type modelType) in RazorEngine.Templating.TemplateService.Compile(String razorTemplate, Type modelType, String cacheName) in RazorEngine.Razor.Compile(String razorTemplate, String cacheName) in Mongoose.Service.Portal.ViewEngine.RazorViewEngine.RenderTo[T](T model, Stream templateStream, Stream outputStream, String templateName) </StackTrace> <InnerException> <Message>An error has occurred.</Message> <ExceptionMessage> Non è stato possibile caricare il file o l'assembly 'file:///C:\WINDOWS\system32\System.Web.Razor.resources, Version=3.0.0.0, Culture=it-IT, PublicKeyToken=31bf3856ad364e35' o una delle relative dipendenze. Impossibile trovare il file specificato. </ExceptionMessage> <ExceptionType>System.IO.FileNotFoundException</ExceptionType> <StackTrace> in System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) in System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) in System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) in System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark) in System.Reflection.Assembly.LoadFrom(String assemblyFile) in Mongoose.Csp.CspObjectManager.AssemblyResolver(Object sender, ResolveEventArgs e) in System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName) </StackTrace> </InnerException> </InnerException> </Error>
Until last week the framework was working correctly. I have tried to repair the installation but without any success. Do you know why this could be happening?
Thank you
Link copied. Please paste this link to share this article on your social media post.
Hi Sotirios,
I have never seen this error for this .dll, but the error seems to indicate there was a problem loading the Razor (this is the web rendering) .dll. Its possible that this file somehow got corrupted, and the uninstall/reinstall refreshed this .dll.
Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Hello again,
after uninstalling and re-installing the same version it is now working correctly. However I would like to know from your experience why this could have happened.
One more info: I am working on a native Schneider Electric laptop. Potentialy our antivirus could have deleted a crucial file.
Best regards
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Hello Jeff,
after doing the re-installation it has worked for a day, but then the same problem re-appeared. I assume that it is related with the restart of my pc. I will upgrade all my processors and move to a higher version 2.4.***
Thank you
Link copied. Please paste this link to share this article on your social media post.
Hello Jeff,
only for closing the topic, I want to mention that it is very possible that the specific problem is related to my pc only because other problems arrive, related to .net and other services of the pc. So I am closing this issue by re-installing all software in my pc.
Best regards
Sotiris
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.