dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.31k stars 9.97k forks source link

On Raspberry Pi: System.InvalidOperationException. #853

Closed Miega closed 6 years ago

Miega commented 9 years ago

I'm using these instructions (with appropriate changes from k to dnx) to install asp.net on a Raspberry Pi.

After trying to run dnx . kestrel, I got the following error:

 System.InvalidOperationException: No service for type 'Microsoft.Dnx.Runtime.IApplicationEnvironment' has been registered.
  at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService (IServiceProvider provider, System.Type serviceType) [0x00000] in <filename unknown>:0
  at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService[IApplicationEnvironment] (IServiceProvider provider) [0x00000] in <filename unknown>:0
  at Microsoft.AspNet.Hosting.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0`

--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) [0x00000] in <filename unknown>:0
  at Microsoft.Framework.ApplicationHost.Program.ExecuteMain (Microsoft.Framework.Runtime.DefaultHost host, System.String applicationName, System.String[] args) [0x00000] in <filename unknown>:0
  at Microsoft.Framework.ApplicationHost.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

 --- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) [0x00000] in <filename unknown>:0
  at dnx.host.Bootstrapper.RunAsync (System.Collections.Generic.List`1 args, IRuntimeEnvironment env, System.Runtime.Versioning.FrameworkName targetFramework) [0x00000] in <filename unknown>:0 
davidfowl commented 9 years ago

What dnx version? What package version?

grahamehorner commented 9 years ago

I've seen this issue on my pcDuino 3b running Ubuntu 14.04 that had a corrupt package included in iso image that was release. try updating packages using sudo apt-get update the upgrade

aspnet-hello commented 6 years ago

This issue is being closed because it has not been updated in 3 months.

We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.

davidalpert commented 6 years ago

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a temporary error. The following address(es) deferred:

spinthemoose@gmail.com Domain spinthemoose.com has exceeded the max emails per hour (208/200 (104%)) allowed. Message will be reattempted later

------- This is a copy of the message, including all the headers. ------ Received: from github-smtp2-ext3.iad.github.net ([192.30.252.194]:53391 helo=github-smtp2b-ext-cp1-prd.iad.github.net) by cp1164.blacksun.ca with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from noreply@github.com) id 1eVkGe-0001Fa-M9 for david@spinthemoose.com; Sun, 31 Dec 2017 14:31:36 -0600 Date: Sun, 31 Dec 2017 12:31:16 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1514752276; bh=LvAXfEkl9y+kFg89oumeBbaf+IaFFPnxfIlBt2yeikg=; h=From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=KCSmnNYUtLOptJ10dJH2vld68RGTMf3Mv5JyAI2uHaGXJqOh7u+7D3ZUVgKn1bSGD 4nBYCCya8btNTzT1AGDcse9/7oDuRaRTtQbWXkSsh0dNJ53ahg+6E1gcB/TnkHxyS7 zs+pF1TAAHmOQtaGHS8uwV1kCSzHX36wi0M8wO0E= From: "ASP.NET Hello Bot" notifications@github.com Reply-To: aspnet/Home reply@reply.github.com To: aspnet/Home Home@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Message-ID: aspnet/Home/issues/853/354622539@github.com In-Reply-To: aspnet/Home/issues/853@github.com References: aspnet/Home/issues/853@github.com Subject: Re: [aspnet/Home] On Raspberry Pi: System.InvalidOperationException. (#853) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5a49491459415_20513fcebbd0ef345231ef"; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: list X-GitHub-Sender: aspnet-hello X-GitHub-Recipient: davidalpert X-GitHub-Reason: subscribed List-ID: aspnet/Home List-Archive: https://github.com/aspnet/Home List-Post: mailto:reply@reply.github.com List-Unsubscribe: mailto:unsub+0000a944a39ab43b09d68dc28f35432136873bcfde32573192cf0000000116610b1492a169ce06143be6@reply.github.com, https://github.com/notifications/unsubscribe/AACpROCKcc3qeBgcSAtSVwG_Zi69oxDgks5tF-8UgaJpZM4Fupac X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: david@spinthemoose.com

----==_mimepart_5a49491459415_20513fcebbd0ef345231ef Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit

This issue is being closed because it has not been updated in 3 months.

We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/aspnet/Home/issues/853#issuecomment-354622539 ----==_mimepart_5a49491459415_20513fcebbd0ef345231ef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

This issue is being closed because it has not been updated in 3 months= .

We apologize if this causes any inconvenience. We ask that if you are = still encountering this issue, please log a new issue with updated inform= ation and we will investigate.

<p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&m= dash;
You are receiving this because you are subscribed to this thre= ad.
Reply to this email directly, <a href=3D"https://github.com/aspn= et/Home/issues/853#issuecomment-354622539">view it on GitHub, or <a h= ref=3D"https://github.com/notifications/unsubscribe-auth/AACpRO-9MJf_EJe_= 34JjySeJQ2ITZTPtks5tF-8UgaJpZM4Fupac">mute the thread.<img alt=3D"" h= eight=3D"1" src=3D"https://github.com/notifications/beacon/AACpRLGqqiCjtt= QzOBP2DQTB3YWdDKV0ks5tF-8UgaJpZM4Fupac.gif" width=3D"1" />

<div itemscope itemtype=3D"http://schema.org/EmailMessage"> <div itemprop=3D"action" itemscope itemtype=3D"http://schema.org/ViewActi= on"> <link itemprop=3D"url" href=3D"https://github.com/aspnet/Home/issues/85= 3#issuecomment-354622539"> <meta itemprop=3D"name" content=3D"View Issue">
<meta itemprop=3D"description" content=3D"View this Issue on GitHub"></me= ta>

<script type=3D"application/json" data-scope=3D"inboxmarkup">{"api_versio= n":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name"= :"GitHub"},"entity":{"external_key":"github/aspnet/Home","title":"aspnet/= Home","subtitle":"GitHub repository","main_image_url":"https://cloud.gith= ubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c= 7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/= 143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name= ":"Open in GitHub","url":"https://github.com/aspnet/Home"}},"updates":{"s= nippets":[{"icon":"PERSON","message":"@aspnet-hello in #853: This issue i= s being closed because it has not been updated in 3 months.\r\n\r\nWe apo= logize if this causes any inconvenience. We ask that if you are still enc= ountering this issue, please log a new issue with updated information and= we will investigate.\r\n"}],"action":{"name":"View Issue","url":"https:/= /github.com/aspnet/Home/issues/853#issuecomment-354622539"}}}=

----==_mimepart_5a49491459415_20513fcebbd0ef345231ef--

davidalpert commented 6 years ago

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a temporary error. The following address(es) deferred:

spinthemoose@gmail.com Domain spinthemoose.com has exceeded the max emails per hour (209/200 (104%)) allowed. Message will be reattempted later

------- This is a copy of the message, including all the headers. ------ Received: from o6.sgmail.github.com ([192.254.113.101]:2635) by cp1164.blacksun.ca with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from bounces+848413-6f87-david=spinthemoose.com@sgmail.github.com) id 1eVkGf-0001Fl-NY for david@spinthemoose.com; Sun, 31 Dec 2017 14:31:37 -0600 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=Ntv30/zgNdRVU8Yp1FfJjeEP7vA=; b=iuYiIodYqMQ+if5T zAm+NWRkl6Wug4fRGz16JAAZMOol2fo1I8yM1r9i07wPm1egB3FIlx55ZHM/ouOZ wk5hqozrNr4SBW04bmOhQwypaEI/ahU2HROfAucFFxAaSs0JdECpnCQznZ8QjgjJ x9rt0rvloicuTRyFqamtDtrpR3w= Received: by filter0128p1las1.sendgrid.net with SMTP id filter0128p1las1-29962-5A494914-26 2017-12-31 20:31:16.546053716 +0000 UTC Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2a-ext-cp1-prd.iad.github.net [192.30.253.16]) by ismtpd0009p1iad2.sendgrid.net (SG) with ESMTP id 4Y3MAMw7SveCul-lSfqZJQ for david@spinthemoose.com; Sun, 31 Dec 2017 20:31:16.588 +0000 (UTC) Date: Sun, 31 Dec 2017 20:31:16 +0000 (UTC) From: "ASP.NET Hello Bot" notifications@github.com Reply-To: aspnet/Home reply@reply.github.com To: aspnet/Home Home@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Message-ID: aspnet/Home/issue/853/issue_event/1405408483@github.com In-Reply-To: aspnet/Home/issues/853@github.com References: aspnet/Home/issues/853@github.com Subject: Re: [aspnet/Home] On Raspberry Pi: System.InvalidOperationException. (#853) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5a49491471702_71963f7fe2b04f2c152532e"; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: list X-GitHub-Sender: aspnet-hello X-GitHub-Recipient: davidalpert X-GitHub-Reason: subscribed List-ID: aspnet/Home List-Archive: https://github.com/aspnet/Home List-Post: mailto:reply@reply.github.com List-Unsubscribe: mailto:unsub+0000a944a39ab43b09d68dc28f35432136873bcfde32573192cf0000000116610b1492a169ce06143be6@reply.github.com, https://github.com/notifications/unsubscribe/AACpROCKcc3qeBgcSAtSVwG_Zi69oxDgks5tF-8UgaJpZM4Fupac X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: david@spinthemoose.com X-SG-EID: rlj3t9ahcX0BZUzAOlajQ3VmBXo43xFJc4M1ImIDJhFzFOkihVXTO7RmODgiRxRtGQF+vHkhnaky2C iIo7FW0QjRKOgtSMtYPRvy9yNXgQtbmNvVcoxIRkTrcW62ngcG3rXFpcEt+sdHDlG6lSF9eeibaSkU RNd1ap3Cxf0YKsVkKhdjyuhQgdzr4/t6pwQ/ckKV88wQW0ZfQvdAmyaHZRW3tAtbCT55nqRsbgNUPs o=

----==_mimepart_5a49491471702_71963f7fe2b04f2c152532e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit

Closed #853.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/aspnet/Home/issues/853#event-1405408483 ----==_mimepart_5a49491471702_71963f7fe2b04f2c152532e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Closed #853.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_5a49491471702_71963f7fe2b04f2c152532e--