| | |
How to get the Virtual Directory's physical path...
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi,
I hv create an application using C#, Asp.Net (VS2005), While Im creating setup project for that application, I add Custom Installer Class (for getting user input and update my web.config connection string at the time of installation). Its working fine. (the custom installer class automatically crates a file in application's bin folder named CustomInstaller.InstallState when install - I dont know how any why)
But when I am uninstalling the application, the UnInstaller process wont remove the physical folder in my wwwroot folder, and it wont remove the virtual dir also (Because the file CustomInstaller.InstallState didn't get removed from the bin folder)
Now I need to remove all the physical directory and the virtual dir, when i uninstall the application. (I plan to get the physical path of the application and the virtual directory name when install, so that I can store that in a text file and can use it when install), but I cant get the physicall path of that vDir,
Any Idea pls..
Thank you in advance
I hv create an application using C#, Asp.Net (VS2005), While Im creating setup project for that application, I add Custom Installer Class (for getting user input and update my web.config connection string at the time of installation). Its working fine. (the custom installer class automatically crates a file in application's bin folder named CustomInstaller.InstallState when install - I dont know how any why)
But when I am uninstalling the application, the UnInstaller process wont remove the physical folder in my wwwroot folder, and it wont remove the virtual dir also (Because the file CustomInstaller.InstallState didn't get removed from the bin folder)
Now I need to remove all the physical directory and the virtual dir, when i uninstall the application. (I plan to get the physical path of the application and the virtual directory name when install, so that I can store that in a text file and can use it when install), but I cant get the physicall path of that vDir,
Any Idea pls..
Thank you in advance
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
to find the physical path, you have to know where it is based from the root of the folder. THen you can create a dummy aspx page to find your virtual path. THe dummy page will contain:
This will show you the physical path to the vdir.
ASP.NET Syntax (Toggle Plain Text)
<%= server.MapPath("/vdir/") %>
![]() |
Similar Threads
- IIS .NET2 virtual directory not working (ASP.NET)
- how to connect ms access with asp vbscript (ASP)
- Making links 'visited' from the server end (IT Professionals' Lounge)
- unexpected T_STRING (PHP)
- Launching site (ASP.NET)
- Physical path for the virtual directory (ASP.NET)
- How to specify virtual directory path during .net deployment (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: run clickonce installed client application automatically on website login
- Next Thread: log4net issues
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions control css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iframe iis javascript listbox login microsoft mono mouse mssql multistepregistration news novell numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers






