Click here to Skip to main content
15,747,908 members
Please Sign up or sign in to vote.
4.50/5 (4 votes)
See more:
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.


Updated 24-Apr-12 3:33am
bbirajdar 18-Apr-12 9:20am    
The best solution would be to not to provide the user with the option to enter / choose virtual directory
Sebastian T Xavier 19-Apr-12 0:51am    
yeah, but can you tell me how?

This has been solved by removing "installation folder" node from user interface editor.

Share this answer
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.
Share this answer
Sebastian T Xavier 16-Apr-12 0:33am    
I didn't understand it well. can you make it more clear?
Sebastian T Xavier 16-Apr-12 1:14am    
Do you mean, when we referring web service? meanwhile, my application is REST service .
Herman<T>.Instance 16-Apr-12 10:38am    
read this:
Sebastian T Xavier 17-Apr-12 2:34am    
Yeah, Thanks for your reply and patience.
I got this scenario. But my case is slightly different. I have a web(REST) service, But I am not referring it anywhere. My setup project will install this web service to a server. A JAVA application will access this web service using URL to complete its procedure. In that case what can I do?

Is it possible to restrict the user from changing virtual directory name?
Herman<T>.Instance 18-Apr-12 14:00pm    
if you have the setting of the name out of the user inputpart of the installer....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900