Closed TannerReynolds closed 3 years ago
Fixed this.
For some reason, just using
#r "JobTrackerAPI5.dll"
works on my connection event, but not for the approvalSigned event. I had to create the reference using the entire file path. it is very odd that I have to use this method in one but not the other, similarly setup event.
I also got this error when embedding c # inline in js :
Unable to compile C# code.\n----> Errors when compiling as a CLR library:\nerror CS0006: 未能找到元数据文件“fedm-cs-net5.0.dll”\n----> Errors when compiling as a CLR async lambda expression
I also create a reference from the project root path,get dll:
references: [ '/src/dll/fedm-service-cs-net5.0.dll' ]
This is my error.
I currently have two event files listening for incoming requests, both of which reference this dll, but only one of them works. The first event fires right when the webserver fully boots, and it compiles the C# code correctly, referencing this dll without any issue, and returning the expected values. However, the 2nd event fires whenever a document is signed. Once a document is signed the server will communicate with JobTracker by use of this dll provided to interact with their API using C#. But once that event fires, I get the error above.
Here is the code for my "onConnection" event
And here is the code for my "onSignature" event
Connection is called right when the server boots
and the signature is called whenever we get a signature.