English 中文(简体)
Windows Azure跨域.xml的位置
原标题:Location of crossdomain.xml Windows Azure

我需要在我的Windows Azure Web角色中放置一个crossdomain.xml文件。但是在哪里?

我试着把它放在:F:sitesroot

But my Unity3D Web App says : Exception: Unable to connect, as no valid crossdomain policy was found. I don t know what I am missing. Unity uses by default port (843).

在哪里放置crossdomain.xml

欢迎任何帮助!

最佳回答

CrossDomainPolicy.xml必须位于应用程序的根目录。

如果您使用的是单个Web角色,只需在应用程序的根目录下添加CrossDomainPolicy.xml,并按如下方式正确设置:

取决于您在“ ServiceDeformation.csdef” 的角色中有多少“ 站点” 部分, 您将会得到许多站点的根部和站点的根部, 1 和CrossDomain Policy. xml 将分发给所有人, 取决于您的角色解答设置 。

Once I discussed this in my following blog: Silverlight front end calling to WCF Service, all in one Windows Azure Web Role Sample

问题回答

您提到了端口 843, 这听起来需要 Flash 协议, 即843 端口的 TCP 套接字监听器, 当它收到文本 时, 它会响应跨域政策。 您需要这样做吗? 您的应用程序是否使用套接字?

Avkash s 的回答是正确的, 如果您只需要通过网络应用程序的 80 端口服务, XML 文件应该去到哪个位置, 如果您需要通过网络应用程序的 80 端口服务, 但是如果您需要做原始插座, 您就需要在服务器上运行一些操作它的东西 。





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签