ClientSettingsProvider.ServiceUri中的app.config目的 [英] Purpose of ClientSettingsProvider.ServiceUri in app.config

查看:4024
本文介绍了ClientSettingsProvider.ServiceUri中的app.config目的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么

<appSettings>
    <add key="ClientSettingsProvider.ServiceUri" value=""/>
</appSettings>

吗?

由于该值是空字符串,我可以删除元素?

Since the value is empty string, can I remove the element?

推荐答案

这是同ASP / Ajax的客户端应用程序服务(http://msdn.microsoft.com/en-us/library/bb384297(v=vs .100)的.aspx)

This has to do with ASP/Ajax Client Application Services (http://msdn.microsoft.com/en-us/library/bb384297(v=vs.100).aspx)

我也遇到了这个code。在我的app.config文件和被搞糊涂了,因为我已经开发了从无到有的整个应用程序,并没有增加这一点。

I too encountered this code in my app.config file and was confused since I've developed our entire application from scratch, and didn't add this.

我发现的是,这条线(和其他人下的标签),将被自动添加到项目的app.config文件中启用客户端应用程序服务复选框被选中时。原来,我的是,虽然我仍然不知道为什么或如何发生的。

What I discovered was that this line (and others under the tags) are added automatically to a project's app.config file when the "Enable client application services" checkbox is checked. It turned out mine was, though I still have no idea why or how this happened.

要查看是否在您的项目(S)选择了此选项,右键单击一个项目,然后选择属性。导航到服务选项卡,看看该复选框被选中。如果是,取消它,你看到的XML应该消失,从你的app.config文件。

To see if this option is selected in your project(s), right click on a project and select "Properties". Navigate to the "Services" tab and see if the checkbox is checked. If it is, uncheck it, and the XML you're seeing should disappear from your app.config file.

重要! - 这似乎存在这样的情况,如果你导航到服务选项卡中VS2010(可能还有其他版本,据我所知)一个bug,会自动选中此复选框为您,加入错误的XML到你的app.config文件。所以一旦你unckeck箱和保存项目,关闭之前导航到属性部分不同的标签。你也将获得一个不必要提及System.Web.Extensions程序添加到项目中。如果你不使用这个别的东西,你可以将其删除。

IMPORTANT! - It seems there is a bug in VS2010 (and possibly other versions for all I know) where if you navigate to the "Services" tab, it will automatically check this box for you, adding the errant XML to your app.config file. So once you unckeck the box and save your project, navigate to a different tab in the properties section before closing it. You will also get an unnecessary reference to "System.Web.Extensions" added to your project. If you aren't using this for something else, you can remove it.

这篇关于ClientSettingsProvider.ServiceUri中的app.config目的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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