开发者

IIS hosting, asp.net mvc

Hi I have a site that uses flex and calls controller actions which returns json to the flex. This works fine in a dev server , the folder that has the flex app lives inside the web project and in the dev ennvironment, makes calls hostname, ie www.someurl.com

in the actual live scenario, this will be an intranet so not hostname to call, the flex app seems to have trouble calling http://localhost/Virt开发者_运维知识库ual directory name

it seems to totally miss the virtual directory name. I am obviously missing something basic, any help?

Im thinking moving the flex app folder out and hosting as a separate app, might make it work


The Flex app is going to run on the client machine. When Flex does a lookup for localhost, it will try to find the service running on the client's PC and not your server.

You need to change localhost to the fully qualified domain name of your Intranet server. That way the Flex app will call the service on your server instead of the client pc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜