Skip to content

ASP.NET 5 Beta 6 on Azure Websites #809

Closed
@BernhardGlueck

Description

@BernhardGlueck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions