-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
published application is missing assembly (missing runtime store associated ...) [2.0.0-preview2-005905] #8213
Comments
I can repro this as well. It looks like the one that is in the store has a mis-matched version than the one trying to be used. Error from the run:
Notice My store contains: |
The store has the no-timestamp versions, but the manifest seems to have timestamped versions. We need to be using the no-timestamp version of the Microsoft.AspNetCore.All version here \aspnetci\drops\Coherence-Signed\2.0.0-preview1\Latest\Signed\Packages-NoTimeStamp |
Have the templates not been updated? |
The cache being picked up has been converted to the timestamp versions since there is no feed with the preview1-final packages |
When are packages downloaded to the "store"? |
They are installed when you install the .NET Core SDK.
Yes, set
There's some work in progress: |
@livarcocc @mlorbetske - this still repos for me on
|
Which is the tip of dotnet/cli/release/2.0.0 right now |
Me and @mlorbetske have talked about this. We have a feed that we can use now and @mlorbetske will send a PR (soon) that will align the templates, the cache and the runtime store, which will fix this. @mlorbetske any idea when we can expect this PR? Anything I can help with? |
The PR is out dotnet/cli#6521 |
@eerhardt Thanks for explaining! After reading the docs, I think a more generic way of saying 'don't assume stored packages' is to specify a Where can I find the manifest file for ASP.NET projects? |
You can just set the msbuild property on the command line. |
@davidfowl I added |
The manifest is generated from the Microsoft.AspNetCore.All meta package https://github.com/aspnet/MetaPackages/tree/dev/src |
Does the cli build process generate it? Or fetch it from somewhere? |
There's a new
|
My daily cli doesn't have a We'd prefer to build the CLI and include the manifest file but not the packages themselves. This is to avoid shipping binary blobs we are not building. Is that feasible? |
Was cache renamed to store? |
Yes, /cc @JunTaoLuo who is working on the runtime store for ASP.NET to answer those questions |
Thanks @davidfowl , I'll check with him. |
This has been fixed now. Please, re-activate if you still run into issues. |
I am confused by this issue. I started to see it too:
I am using the docker image could you please advise if anything is required to fix this? |
@Jonathan34 you need to use the aspnetcore docker image @natemcmaster knows the exact version. |
@Jonathan34 The FROM microsoft/aspnetcore:2.0 or (2) disable runtime store trimming and bring ASP.NET Core into the <PropertyGroup>
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
</PropertyGroup> cc @glennc |
I had the same problem using and importing version (1) solved the problem and I'm not using the import anymore |
Ok thanks. I was using dotnet image to easily set my own port and ASPNETCORE_URLS.
will try to use |
Ok i actually have an issue with this change. Likely not related to cli though! When i run my app locally, i set the
This was good because I could control the port and http/https using environment variable only. How would you recommend i now handle this case using the aspnetcore 2.0 image. |
@Jonathan34 this has strayed off topic. Can you open a new issue on https://github.com/aspnet/KestrelHttpServer? |
doing it right now :) |
Hello, |
@livarcocc this issue still exists on dotnet core 2.0, please view my post https://github.com/dotnet/cli/issues/7680 |
Still having this issue. Mine is with application insights. Error: |
@faGH do you have the asp.net core runtime store installed in the machine where you are trying to run your app? That's is required because by default, ASP.NET Apps are published with a dependency on the runtime store. cc @JunTaoLuo |
@livarcocc how do I install the asp.net core runtime store? I followed these instructions to install the .net core 2.0.0 runtime on Ubuntu: https://www.microsoft.com/net/download/linux However I'm seeing this error when I run Error: I have another Ubuntu box where I've got the 2.0.0 SDK installed and the same code is working fine, but I'd prefer to not have the SDK installed here if possible...? |
@JunTaoLuo @leecow can you provide instructions on how to install the store separately? @wessiyad if possible, you can just install the SDK, which will bring the store with it. |
The aspnetcore-store-2.0.0 package should be available in all of the feeds (just confirmed the rpm and xenial feeds). |
You can install the runtime store by itself on ubuntu via However this isn't the expected mechanism for acquisition on Ubuntu. The runtime and runtime store are packaged into "Linux Server Hosting" installers with the package name |
Looks like an oversight on my part. Will need to add them to the release list. |
I encountered this issue when I published my app built for 2.0.3 onto a server with 2.0.0 only installed. Obviously it couldn't work and should fail but I believe error message could be a bit clearer.
And ideally as I was publishing the app via |
@evil-shrike same issue, found workaround without this?
In dockerfile:
|
@verysimplenick updating .net sdk to 2.0.3 solved the problem, but my comment was about the lack of diagnostic and bad dev experience. |
There are so many issues open/closed on this so please point me if I'm supposed to ask about this somewhere else: I have a fresh install centOS 7 box where I deployed our api. The API is targeting the latest sdk 2.1.101. As part of our deployment process via Octopus, we check if we need to install the sdk/runtime. Since we saw all these issues when installing only the runtime, we decided to go with installing the SDK instead. Oddly enough, when I ran a deploy for this new machine, it failed starting the service with:
So, listing the packages installed, I can see I don't have the Running
I'm confused now. I thought installing the SDK would also install the runtime store thus preventing this issues. Can someone clarify, please? |
@joaopgrassi if you are using dotnet packages that come with CentOS, those do not include the runtime store. For 2.0, the runtime store wasn't source buildable, so only Microsoft packages include the runtime store. In any case, you should be able to get your app running if you include the store packages with your app. This can be done by adding |
I see. But if I do that, then my artifact is way bigger.. which is not cool. But what I don't understand is we have several other linux vms and the |
Microsoft provides a feed which has these packages. Probably those vms use Microsoft packages. |
Ah I see your point now, was a little confused. Sure, as part of our deploy script we add the microsoft feed as explained here . Then we just do |
Steps to reproduce
Using latest cli (2.0.0-preview2-005905)
Expected behavior
Published application should run
Actual behavior
Environment data
The text was updated successfully, but these errors were encountered: