Web配置错误:无法识别的属性'的xmlns:XDT“。请注意,属性名称是区分大小写 [英] web config error: Unrecognized attribute 'xmlns:xdt'. Note that attribute names are case-sensitive

查看:3620
本文介绍了Web配置错误:无法识别的属性'的xmlns:XDT“。请注意,属性名称是区分大小写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将应用程序部署到AppHarbor,并跟着他们如何修改我的web.config的指令,所以它使用它们的实例AUF的SQL Server。

I am trying to deploy an application to AppHarbor and followed their instructions on how to modify my web.config, so it uses their instance auf Sql server.

运行后我收到的话题中提到的错误解决方法:

Upon running the solution I am getting the error mentioned in the topic:

Unrecognized attribute 'xmlns:xdt'. Note that attribute names are case-sensitive.

我发现这个问题的唯一线索是<一个href=\"http://stackoverflow.com/questions/12737984/web-config-transformation-unrecognized-attribute-xmlnsxdt-note-that-attribu\">this 之一。但加入pre构建线条和删除文件夹OBJ和重建并没有带来任何解决方案。它一直运行到这个异常的行:

The only thread i found about this problem was this one. But adding the pre build lines and deleting the obj folder and rebuilding did not bring any solution. It keeps running into this exception at the line:

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">

感谢您提前。

推荐答案

我会检查,你有你转换文件的顶部内以下行。

I would check that you have the following line within the top of your transform file.

<?xml version="1.0"?>

如果您确认是存在的,我还要检查以下是不是你的实际转化的web.config中。

If you confirm that is there, I would also check that the following is not within your actual transformed web.config.

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">

我已经找到了网络要领延长宝贵的我在部署之前解决这样的错误。

I have found the web essentials extension invaluable for resolving errors like this before I deploy.

您可以简单地右键单击转换文件,并从Visual Studio中选择preVIEW,如果您遇到任何问题,你可以调查/本地修复。

You can simply right-click your transform file and select preview from Visual Studio and if you encounter any problems you can investigate/fix locally.

网络要领2012

<一个href=\"http://visualstudiogallery.msdn.microsoft.com/07d54d12-7133-4e15-becb-6f451ea3bea6\">http://visualstudiogallery.msdn.microsoft.com/07d54d12-7133-4e15-becb-6f451ea3bea6

这篇关于Web配置错误:无法识别的属性'的xmlns:XDT“。请注意,属性名称是区分大小写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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