-
Notifications
You must be signed in to change notification settings - Fork 10.3k
ASP.NET 5 Beta 6 on Azure Websites #809
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
Comments
@kichalla can you help take a look? |
I should also note that the app was working fine with Beta4 ( we skipped the beta5 step ) I also tested it now locally on the full IIS and it seems to work fine there too. ( using the dnu publish version that we also uploaded to azure websites ) |
I am unable to repro this issue (in my case i had to test with 32-bit dnx-clr though). Can you share how your web.config file content looks like? |
I have beta6 web site and some webjobs running just fine inside Azure. Only issue I had was with the AspNet.Loader being locked so had to delete files manually from site first and then deploy. I'm using VSO vNext build engine to build and deploy using msdeploy. |
Hm we did a clean deploy ( empty directories ) as we do on all deployments ... web.config:
|
The web.config file looks fine to me (although not sure how we figure out the bitness of the clr...as you used the 64 bit runtime clr when deploying)...at this point I am out of ideas...is it possible to share a simple repro project? |
Is your Azure web site set up to the same bitness as your app? |
The azure websites is also 64 bit of course (we had that error once, and that leads fo a completly different exception btw. ) I am not sure how to write a small repro case for this, since i don't know whats causing this ( and the appication is quite large ) What I could do is give some measure of access to our environment/application though. |
Have you checked if the missing package files actually exist on server approot/packages directory? What happens if you omit the no-source argument? |
That its just a build error and the package missing was my initial avenue of debugging. But its there at the exact path dnx is searching for it. Will try now with no-source omitted. |
One more simple thing to try if you didn't already. Restart the Azure Web
app.
|
We restarted serveral times.. :-) The whole deployment process is automated ( did it myself ) First it stops the azure webapp We did that before because we had frequent issues with locked files otherwise and could not update cleanly. |
Ok now it gets really weird, i tried yoru suggestions to drop no-source and we have a different error now. It seems now it can locate ( obviously by rebuilding it ) our own packages in the src directory ( clear since now its a source build ) but does not find ANY of the third party packages be it from MS or anyone else. Whats even more fun is that the packages folder is not included in the search locations anymore .... The command line to generate the files was: Here is the full error: Failed to resolve the following dependencies for target framework 'DNX,Version=v4.5.1': Searched Locations: Try running 'dnu restore'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Failed to resolve the following dependencies for target framework 'DNX,Version=v4.5.1': Searched Locations: Try running 'dnu restore'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Failed to resolve the following dependencies for target framework 'DNX,Version=v4.5.1': Searched Locations: Try running 'dnu restore'. [TargetInvocationException: Exception has been thrown by the target of an invocation.] [HttpException (0x80004005): Exception has been thrown by the target of an invocation.] |
@BernhardGlueck Can you share how the output of your dnu command looks like? |
Our plan uses msbuild to publish the application. The cmd from build logs msbuild publish executes to publish the web site
Can you pack your application in similar fashion? Maybe the problem is with using the publish instead of pack. |
Dnu publish log: |
@pekkah I will try your suggestion for alternate building command now.. However i am skeptical, because all files are THERE on the server... it should be able to find it..... so I assume its not actually a publish problem.. but a runtime host problem where search paths are not correctly looked up ... |
Fixed it ! The problem was that the dnvm use 1.0.0-beta6 -arch x64 never took on the build server permanently for the build user ... for some reason So it was packaging everything with the 1.0.0-beta4 tools but still including the beta 6 runtime .... Thanks all you guys for your help |
Cool. You can use the
|
thanks, we stuck to setting it in our build script, since the build agents build several projects that are not yet all upgraded to beta 6 |
I'm experiencing a very similar issue. This also worked fine in Beta4 but doesn't now in Beta6 (I also skipped Beta5). Event code: 3005 <> Exception information: <> Failed to resolve the following dependencies for target framework 'DNX,Version=v4.5.1': <> Try running 'dnu restore'. I tried everything recommended in this post but I'm out of ideas. Anything else I can look at? |
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. |
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:
[email protected]
Domain spinthemoose.com has exceeded the max emails per hour (236/200 (118%)) allowed. Message will be reattempted later
…------- This is a copy of the message, including all the headers. ------
Received: from o3.sgmail.github.com ([192.254.112.98]:32984)
by cp1164.blacksun.ca with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128)
(Exim 4.89_1)
(envelope-from <[email protected]>)
id 1eVkI0-0001Qh-OW
for [email protected]; Sun, 31 Dec 2017 14:33:00 -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=9xEyfkk3f72hEHXaDFAAod8GA1g=; b=ThL8lb2xuQjIGbTx
sRI5hrsnXPwqsBFfnvOSf6Dqq6Tf94UsGAseINzHdkHlOuToJqUwQBZqlc+njQy5
+4yUIwiQj+/kLblmki8VY1+5AbyJ+jdixxfyTwDQz6X67Yvyns3aRXp0orwzv2mi
d6qtaX6aP9EaSvp57ovSURXf7go=
Received: by filter0149p1las1.sendgrid.net with SMTP id filter0149p1las1-30698-5A494967-1B
2017-12-31 20:32:40.058484221 +0000 UTC
Received: from github-smtp2b-ext-cp1-prd.iad.github.net (github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17])
by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id S54b_KFeTjm2jIjcSSMSmg
for <[email protected]>; Sun, 31 Dec 2017 20:32:39.992 +0000 (UTC)
Date: Sun, 31 Dec 2017 20:32:40 +0000 (UTC)
From: "ASP.NET Hello Bot" <[email protected]>
Reply-To: aspnet/Home <[email protected]>
To: aspnet/Home <[email protected]>
Cc: Subscribed <[email protected]>
Message-ID: <aspnet/Home/issues/809/[email protected]>
In-Reply-To: <aspnet/Home/issues/[email protected]>
References: <aspnet/Home/issues/[email protected]>
Subject: Re: [aspnet/Home] ASP.NET 5 Beta 6 on Azure Websites (#809)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_5a494967cade0_4853ff717e04f2c30485e";
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 <Home.aspnet.github.com>
List-Archive: https://github.com/aspnet/Home
List-Post: <mailto:[email protected]>
List-Unsubscribe: <mailto:unsub+0000a94411169b4bd345ae12a0b99f2c198ea9eb6e2b25bc92cf0000000116610b6792a169ce05ef1272@reply.github.com>,
<https://github.com/notifications/unsubscribe/AACpRI7NJvMX2w_AyZ6SGsuL3cF3PRJ-ks5tF-9ngaJpZM4FnQT2>
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: [email protected]
X-SG-EID: rlj3t9ahcX0BZUzAOlajQ3VmBXo43xFJc4M1ImIDJhFXmpJ2DiO6Yc7SFEbzWRr63/tqx8vrJSGIEv
OQXDmn+iAllYirGiSyFuGp2FOPpWmle2ULsOb1Pmz+raNbIKjNL/Hm41ooPhdouixy3jkOTvSbYcFM
Z4q97qDlIhsDmJ9T6o35LQhxzh7yOy0HwIaFyucDpF8gqeJ3qhOJgs71CMjXwtjnXWyREI8eEqMtmJ
c=
----==_mimepart_5a494967cade0_4853ff717e04f2c30485e
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:
#809 (comment)
----==_mimepart_5a494967cade0_4853ff717e04f2c30485e
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<p>This issue is being closed because it has not been updated in 3 months.<=
/p>
<p>We apologize if this causes any inconvenience. We ask that if you are st=
ill encountering this issue, please log a new issue with updated informatio=
n and we will investigate.</p>
<p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&mda=
sh;<br />You are receiving this because you are subscribed to this thread.<=
br />Reply to this email directly, <a href=3D"https://github.com/aspnet/Hom=
e/issues/809#issuecomment-354622635">view it on GitHub</a>, or <a href=3D"h=
ttps://github.com/notifications/unsubscribe-auth/AACpRLcIO8kkTgvVCxJST4XUN_=
Iwx4fHks5tF-9ngaJpZM4FnQT2">mute the thread</a>.<img alt=3D"" height=3D"1" =
src=3D"https://github.com/notifications/beacon/AACpRFUrrk6fdbLLq397fnV5HK1Y=
DMYaks5tF-9ngaJpZM4FnQT2.gif" width=3D"1" /></p>
<div itemscope itemtype=3D"http://schema.org/EmailMessage">
<div itemprop=3D"action" itemscope itemtype=3D"http://schema.org/ViewAction=
">
<link itemprop=3D"url" href=3D"#809
issuecomment-354622635"></link>
<meta itemprop=3D"name" content=3D"View Issue"></meta>
</div>
<meta itemprop=3D"description" content=3D"View this Issue on GitHub"></meta>
</div>
<script type=3D"application/json" data-scope=3D"inboxmarkup">{"api_version"=
:"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"Gi=
tHub"},"entity":{"external_key":"github/aspnet/Home","title":"aspnet/Home",=
"subtitle":"GitHub repository","main_image_url":"https://cloud.githubuserco=
ntent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png",=
"avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842=
166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in Git=
Hub","url":"https://github.com/aspnet/Home"}},"updates":{"snippets":[{"icon=
":"PERSON","message":"@aspnet-hello in #809: This issue is being closed bec=
ause it has not been updated in 3 months.\r\n\r\nWe apologize if this cause=
s any inconvenience. We ask that if you are still encountering 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/is=
sues/809#issuecomment-354622635"}}}</script>=
----==_mimepart_5a494967cade0_4853ff717e04f2c30485e--
|
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:
[email protected]
Domain spinthemoose.com has exceeded the max emails per hour (237/200 (118%)) 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]:11226)
by cp1164.blacksun.ca with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128)
(Exim 4.89_1)
(envelope-from <[email protected]>)
id 1eVkI1-0001Qi-22
for [email protected]; Sun, 31 Dec 2017 14:33:01 -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=btirk8q/qDtpTOxc9jS9H5UBMCU=; b=g8XrDwgkNDztLhSE
plVFggigrGpH7zq45LSFdcAOY9qxt5zHg5RK9V57XSj3l7cR8JymMzeJAeJvzjRo
fu8cwnQGU6lEggf/sqnmz5F+qal7QsRT/FHLNuRdxfIiKob2HloLYYrim4bI0lAJ
2g0N13FdRYxPQ07SxJuxHEJjj3M=
Received: by filter0935p1mdw1.sendgrid.net with SMTP id filter0935p1mdw1-7030-5A494968-5
2017-12-31 20:32:40.127504838 +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 ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id CKNdN_S_S1CWEw1Tb9iEnQ
for <[email protected]>; Sun, 31 Dec 2017 20:32:40.097 +0000 (UTC)
Date: Sun, 31 Dec 2017 20:32:40 +0000 (UTC)
From: "ASP.NET Hello Bot" <[email protected]>
Reply-To: aspnet/Home <[email protected]>
To: aspnet/Home <[email protected]>
Cc: Subscribed <[email protected]>
Message-ID: <aspnet/Home/issue/809/issue_event/[email protected]>
In-Reply-To: <aspnet/Home/issues/[email protected]>
References: <aspnet/Home/issues/[email protected]>
Subject: Re: [aspnet/Home] ASP.NET 5 Beta 6 on Azure Websites (#809)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_5a4949681e11_1f913fc381302f30598242";
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 <Home.aspnet.github.com>
List-Archive: https://github.com/aspnet/Home
List-Post: <mailto:[email protected]>
List-Unsubscribe: <mailto:unsub+0000a94411169b4bd345ae12a0b99f2c198ea9eb6e2b25bc92cf0000000116610b6792a169ce05ef1272@reply.github.com>,
<https://github.com/notifications/unsubscribe/AACpRI7NJvMX2w_AyZ6SGsuL3cF3PRJ-ks5tF-9ngaJpZM4FnQT2>
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: [email protected]
X-SG-EID: rlj3t9ahcX0BZUzAOlajQ3VmBXo43xFJc4M1ImIDJhG8Nj6du1RZUXiTuQWJ29Fdc5m6RQhalt3bcv
zaYtnQV3SktAbsRc5sI31lYg7FOzsgREY5Wha6PRj4KLUOAykM7fj8sWE2BHEvRrSikhS7Mr0/gTHK
gkTAyywzPlX/DxHBDf9RMIwtS2b4TTcEcqmgNzBYkjYrovWvPte3djGTqaFHn2bmgMMnUYStkF/F4X
w=
----==_mimepart_5a4949681e11_1f913fc381302f30598242
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Closed #809.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#809 (comment)
----==_mimepart_5a4949681e11_1f913fc381302f30598242
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
<p>Closed <a href="#809" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="99553906" data-permission-text="Issue title is private" data-url="#809>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="#809 (comment) it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AACpRLcctds_6AYjvJ7pNvtbTrO9xBkDks5tF-9ogaJpZM4FnQT2">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AACpRKENVtc_Nx9_XCw_VQs6P_a7XsHlks5tF-9ogaJpZM4FnQT2.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="#809 (comment)>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"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.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.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":{"snippets":[{"icon":"DESCRIPTION","message":"Closed #809."}],"action":{"name":"View Issue","url":"#809 (comment)>
----==_mimepart_5a4949681e11_1f913fc381302f30598242--
|
…master [automated] Merge branch 'release/2.2' => 'master'
Hi !
Are ASP.NET 5 Beta6 Applications supposed to work on Azure Websites ?
I have migrated my code to Beta6 and locally everything works fine.
Also when i run
dnu publish --no-source --out d:\SomeWhere --runtime dnx-clr-win-x64.1.0.0-beta6
I can run my app fine from d:\SomeWhere via web.cmd or kestrel.cmd..
The App also works in IIS Express
However when i publish to Azure Websites ( Clean publish via FTP )
I Get the following exception:
Cannot find package "xxx.Server.Web"
This is very strange since the package is actually there at the searched location on the server...
So my question is is this me doing something wrong ? Or is it a bug in Beta 6 ? Or does azure websites not support Beta6 (yet) ?
Here is the full exception:
Failed to resolve the following dependencies for target framework 'DNX,Version=v4.5.1':
xxx.Server.Web 1.0.0
Searched Locations:
D:\home\site\approot\packages\xxx.Server.Web\1.0.0{name}\project.json
D:\home\site\approot\src/framework{name}\project.json
D:\home\site\approot\src/server{name}\project.json
D:\home\site\approot\test/framework{name}\project.json
D:\home\site\approot\test/server{name}\project.json
D:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.1{name}.dll
D:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.1\Facades{name}.dll
D:\Windows\Microsoft.NET\assembly\GAC_32{name}{version}{name}.dll
D:\Windows\Microsoft.NET\assembly\GAC_64{name}{version}{name}.dll
D:\Windows\Microsoft.NET\assembly\GAC_MSIL{name}{version}{name}.dll
Try running 'dnu restore'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Failed to resolve the following dependencies for target framework 'DNX,Version=v4.5.1':
xxx.Server.Web 1.0.0
Searched Locations:
D:\home\site\approot\packages\xxx.Server.Web\1.0.0{name}\project.json
D:\home\site\approot\src/framework{name}\project.json
D:\home\site\approot\src/server{name}\project.json
D:\home\site\approot\test/framework{name}\project.json
D:\home\site\approot\test/server{name}\project.json
D:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.1{name}.dll
D:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.1\Facades{name}.dll
D:\Windows\Microsoft.NET\assembly\GAC_32{name}{version}{name}.dll
D:\Windows\Microsoft.NET\assembly\GAC_64{name}{version}{name}.dll
D:\Windows\Microsoft.NET\assembly\GAC_MSIL{name}{version}{name}.dll
Try running 'dnu restore'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Failed to resolve the following dependencies for target framework 'DNX,Version=v4.5.1':
xxx.Server.Web 1.0.0
Searched Locations:
D:\home\site\approot\packages\xxx.Server.Web\1.0.0{name}\project.json
D:\home\site\approot\src/framework{name}\project.json
D:\home\site\approot\src/server{name}\project.json
D:\home\site\approot\test/framework{name}\project.json
D:\home\site\approot\test/server{name}\project.json
D:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.1{name}.dll
D:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.1\Facades{name}.dll
D:\Windows\Microsoft.NET\assembly\GAC_32{name}{version}{name}.dll
D:\Windows\Microsoft.NET\assembly\GAC_64{name}{version}{name}.dll
D:\Windows\Microsoft.NET\assembly\GAC_MSIL{name}{version}{name}.dll
Try running 'dnu restore'.
]
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +361
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +120
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712
The text was updated successfully, but these errors were encountered: