虚拟目录名称 [英] Virtual directory name

查看:121
本文介绍了虚拟目录名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的安装程序允许用户在用户计算机上安装Web服务.

我这里有一个问题,在当前的安装程序中,用户可以选择输入/选择虚拟目录名称.但是,如果用户更改默认名称,则我的主应用程序将无法工作,因为Web服务URL指的是虚拟目录的默认名称.

我该怎么做才能解决这个问题?有没有一种方法可以限制用户更改虚拟目录名称.(我个人不建议这样做).或者我们可以将更改后的名称存储在web.config中的某个位置.

任何帮助,将不胜感激.

谢谢

Sebastian

Hello all,

my installer allows user to install web service in users machine.

I have an issue here, in current installer user have the option to enter / choose virtual directory name. But if user changes the default name, my main application will not work as the web service URL refers to the default name of virtual directory.

What can i do to solve this? Is there a way to restrict the user from changing virtual directory name.(personally I won''t recommend this). Or can we store the changed name in somewhere in web.config.

Any help would be appreciated.

Thanks

Sebastian

推荐答案

已通过从用户界面编辑器中删除安装文件夹"节点来解决此问题.
问候
Sebastian
This has been solved by removing "installation folder" node from user interface editor.

Regards
Sebastian


在Web服务的声明中,您可以设置URL属性.因此,在安装Web服务时,应将其存储在url中的某个位置,以便应用程序可以读取该url.
in the declaration of the webservice you can set the URL property. So when the webservice gets installed it should store in url somewhere so the application can read that url.


这篇关于虚拟目录名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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