Comments (12)
I realized the issue was, BuildOutput was copied to the /app folder in the container, but .dll files are not in the right place. Inside the BuildAndRun.cmd file .dlls are trying to access directly inside the /app folder. But the correct folder is /app/bin/ so as a quick fix I manually copy-paste all the .dll files in the bin folder to the parent folder BuildOutput. However, it fixes the old issue but now I am facing a new issue
Since it's not working, I decided to change the paths in the BuildAndRun.cmd appropriately to access the .dlls. without moving them manually.
I change /app/Station.dll to /app/bin/Station.dll
However, now I'm getting an error like this.
Any thoughts about this?
from manufacturingontologies.
Let me try to repro on a clean machine.
from manufacturingontologies.
Can you send me the output of the dotnet --info command, please? Also, the build of the container should create a .\BuildOutput directory with the DLLs in there, not in /bin. ./Buildoutput is then mapped to /app within the container. Did you run the script from the .\FactorySimulation folder?
from manufacturingontologies.
Sorry for the late reply.
This is the output of dotnet --info command
Yes, I run the script inside the .\FactorySimulation.
When building the project it is not building the DLLs inside the BuildOutput folder. It is created inside ./Buildoutput/bin
Because of this, I manually move the DLLs from the bin folder but still, it's not working.
Thank you very much for your support
from manufacturingontologies.
Thanks for the detailed steps. I managed to reproduce it and fixed it. Please try it out.
from manufacturingontologies.
Fixed with checkin 86f14d3
from manufacturingontologies.
I will check this and let you know about it.
Thanks again for your support
from manufacturingontologies.
I am still getting this error. Any thoughts?
When I stop the running containers, I see these containers are not attached to the network error. I am not sure whether it's related to this issue or because containers have not started correctly. Hope this helps too.
from manufacturingontologies.
The container not connected to network is simply a follow-on issue since they containers did not start. The assembly not found error appears to be a known issue with dotnetcore 2.1, see here: https://stackoverflow.com/questions/52028310/could-not-load-file-or-assembly-microsoft-aspnetcore-connections-abstractions. Upgrading to 2.1.5 appears to be fixing it. Can you try?
from manufacturingontologies.
Can you please explain to me how can I do that?
because in the .csproj file .NetCore is 3.1.0
Thanks in advance
from manufacturingontologies.
Sorry man, I just realized that you had 3.1 already installed. I had another look and it turns out there was a conflict between the assemblies generated from the Azure Function "Pressure Relief" and the MES/Station project, even though they all use DotNetCore 3.1. I have moved the Pressure Relief project into its own solution (and folder) and now it is working for me. Please sync and try again. Sorry for taking so long to fix this.
from manufacturingontologies.
Thank you very much for your kind support. Now it's working.
The moving Pressure Relief function did the trick.
I also sent you an email.
Thanks again
from manufacturingontologies.
Related Issues (20)
- No data showing in OPC UA Client HOT 2
- Azure Function vs Documentation HOT 1
- USERNAME Function config is invalid HOT 2
- Anyone interested in a managed Grafana integration? HOT 4
- Deployment AKS VM HOT 1
- Docker containers will not run on Windows Server 2019 in Azure HOT 1
- Data not processed by the UA-Cloud-Twin HOT 3
- FinTech
- Healthcare & Life Sciences
- Joint DTC-IIC Interop
- Manufacturing
- Mobility & Transportation
- Natural Resources
- Telecommunications
- Academia & Research
- Problem with the installation HOT 2
- AAS Repo not configured after deployment HOT 2
- ADT HOT 4
- getting error while running BuildAndRunSimulation HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manufacturingontologies.