我们可以在调试期间控制ClientAccessPolicy.xml文件吗? [英] Can we control the ClientAccessPolicy.xml file during debug?

查看:103
本文介绍了我们可以在调试期间控制ClientAccessPolicy.xml文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在VS.NET中调试期间从LS上运行跨域文件上载,看起来我必须编辑ClientAccessPolicy.xml文件才能实现这一点。但是,每次按F5运行
LS应用程序时,此文件都会被重写到bin \debug文件夹中,但我找不到要编辑的源文件来指定我自己的设置。

I'm trying to get cross domain file upload working from LS during debug within VS.NET and it looks like I have to edit the ClientAccessPolicy.xml file to achieve that. However, this file gets rewritten to the bin\debug folder every time you press F5 to run the LS application and I cannot find a source file to edit to specify my own settings.

我原本认为它可能就像存在于ServerGenerated文件夹中的web.config文件一样,它允许您在调试会话期间进行将被写入bin\debug文件夹的更改。

I would have thought that it might work like the web.config file which exists in the ServerGenerated folder and which allows you to make changes that will get written to the bin\debug folder during a debug session.

有没有办法在调试会话期间指定写入ClientAccessPolicy.xml的内容?我在这里遗漏了什么吗?

is there any way to specify what gets written to the ClientAccessPolicy.xml during a debug session? Am I missing something here?

谢谢

推荐答案

Xander,

Xander,

您可能会发现LS是硬编码的。在构建期间,似乎有几个地方手动更改文件会被覆盖。

You'll probably find that LS is hard-coded to do this. There seem to be several places where manual changes to a file get overwitten during build.

当然,LS正在尝试简化非技术用户的工作,所以这是可以理解的,即使这对于更高级的情况来说是令人沮丧的。

Of course, LS is trying to simplify things for the non-technical user, so it's understandable, even if it's frustrating for more advanced situations.

Yann


这篇关于我们可以在调试期间控制ClientAccessPolicy.xml文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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