Azure的 - 不重定向到默认页面,并显示"无法加载文件或程序集“DotNetOpenAuth.Core'"错误 [英] Azure - Not Redirecting to Default Page and showing "Could not load file or assembly 'DotNetOpenAuth.Core'" Error

查看:502
本文介绍了Azure的 - 不重定向到默认页面,并显示"无法加载文件或程序集“DotNetOpenAuth.Core'"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在与它分为以下项目:
(1)客户端应用程序(HTML5,CSS3,JS / AngularJS)和
(2)的WebAPI。

I have been working with a Project which is split into the following: (1) Client Application (HTML5, CSS3, JS / AngularJS) and (2) WebAPI.

它工作正常,本地,当我运行的应用程序,但是,当我部署应用程序Azure和我试图访问客户端应用程序,我得到以下错误:

It works fine locally, when I run the application, however, when I deployed the application to Azure and I attempt to access the client application, I get the below error:

无法加载文件或程序集DotNetOpenAuth.Core,版本= 4.0.0.0,文化=中性公钥= 2780ccd10d57b246'或它的一个依赖。找到的程序集清单定义不匹配程序集引用。 (异常来自HRESULT:0x80131040)

Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

当我在浏览器中键入/index.html,默认页面,然后加载正确的,但是,我想那重定向自动发生,而不显示错误。

When I type /index.html within the browser, the default page then loads correctly, however, I would like that the redirection happens automatically, without showing the error.

我已经设置了重定向在IIS默认页面为好,但它默认情况下不重定向。

I have set the redirection to the default page in IIS as well, but it is not redirecting by default.

我读了一些类似这样的错误的其他问题,但是,我甚至不有,因为我有客户端应用程序packages.config文件,主要是一个HTML5 / CSS和JS应用。

I was reading some of the other questions similar to this error, however, I do not even have a packages.config file since the Client application I have, is mostly a HTML5 / CSS and JS application.

推荐答案

我发现从微软Azure支持代理解决方案。与该选项时,重新部署该网站目的地删除其他文件,这是现在的工作。

I have found the solution from a Microsoft Azure support agent. When re-deploying the site with the the option "Remove additional files at destination", this is now working.

这可能是因为一些默认的code天青网站的试图为默认页面运行,因此通过检查该选项,任何previous code被替换。

This may be because of some default code Azure Websites is trying to run as a default page, so by checking that option, any previous code is replaced.

这篇关于Azure的 - 不重定向到默认页面,并显示"无法加载文件或程序集“DotNetOpenAuth.Core'"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆