Azure Web App上的URL重写提供程序 [英] Url Rewrite Provider on Azure Web App

查看:162
本文介绍了Azure Web App上的URL重写提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用 URL重写可扩展性示例,用于允许我们的重写规则使用db值.我正在尝试将此网站移至Azure Web App.部署到Windows Azure Web App后,出现此错误:

We use the DbProvider from the URL Rewrite Extensibility Samples for allow our rewrite rules to use db values. I'm trying to move this website to an Azure Web App. After deploying to a Windows Azure Web App, I'm getting this error:

HTTP Error 500.50 - URL Rewrite Module Error.
System.IO.FileNotFoundException: Could not load file or assembly
 'Microsoft.Web.Iis.Rewrite.Providers, Version=7.1.761.0, Culture=neutral, PublicKeyToken=0545b0627da60a5f' 
or one of its dependencies. The system cannot find the file specified. 
File name: 'Microsoft.Web.Iis.Rewrite.Providers, Version=7.1.761.0, Culture=neutral, PublicKeyToken=0545b0627da60a5f'

我如何在Azure Web App上安装必要的工具以使其正常工作,因为我无法直接安装URL重写扩展性示例,也不想这样做.

How do I install what's necessary on the Azure Web App to allow this to work since I can't install the URL Rewrite Extensibility Samples directly, nor would I want to.

推荐答案

它可能很容易破解,但是您可以尝试将DLL及其依赖关系拉入BIN文件夹并进行部署.您没有很好的UI来管理,但是值得一试.

It may be hacky, but you could try pulling the DLL and its depencies into your BIN folder and deploy. You don't get the nice UI to manage, but worth a shot.

这篇关于Azure Web App上的URL重写提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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