Configuration :: Web Project One-Click Deployment And Creation Of IIS Virtual Directories?
Oct 28, 2010
I have an ASP .NET web project; let's call it XYZZY. On my development machine I test and debug it using IIS. Under the IIS virtual directory for XYZZY, I have several "sub" virtual directories which I reference for downloading documents. Let's call them Doc1, Doc2, Doc3. These virtual directories reference a shared folder on another machine. Everything works great on the development machine.
Now I would like to publish the XYZZY web application to the production machine using One-click deploy. I have told it to include all IIS settings as configured in IIS manager. When I deploy XYZZY to the production machine, it properly creates the XYZZY application directory under c:inetpubwwwrootXYZZY and copies all files there and creates the XYZZY application in IIS. However, when it creates the sub virtual directories Doc1, Doc2, Doc3 under XYZZY in IIS, it doesn't use the shared folder I have them
set up as on the development machine, it points all 3 of them to c:inetpubwwwrootXYZZY.
I've examined the metaproperties in the archive.xml from the zipped deployment package, and it correctly has the IIsWebVirtualDir virtual directory folder Path settings correct from the dev machine, but for some reason they are overridden when the app is deployed.
I have found the instructions on customizing the deployment settings complicated and confusing. Surely this requirement for creating IIS virtual directories during web package deployment must be common. Can anyone explain clearly how to get the deployment package to create the IIS virtual directories with the proper targets on the target machine? Ideally, it would be nice to be able to set them to different values based on the configuration just as Web.config can be customized, but that's not a requirement just yet.
View 4 Replies
Similar Messages:
Nov 2, 2010
First of all, I am trying to deploy a web application, without virtual directory. Yes...I have no other option but to try this due to some non-tehnical constraints.
Now, I have developed an ASP.NET 3.5 Web application, which works fine on my local ASP.NET Development Web Server. Then, I published the application to the actual webserver using the VS2008 Publish... option. When I got some error messages related to web.config, I removed the corresponding items from the web.config.
When I can access the page but the code inside the page doesn't really work. When I open the Default.aspx, which is directly under the website, I keep on getting this error:
Compiler Error Message: CS0246: The type or namespace name 'DynamicLoadControl' could not be found (are you missing a using directive or an assembly reference?)
This DynamicLoadControl is a class that I have developed and is present in App_CodeDynamicLoadControl.cs file (in the same namespace).
I have searched a lot and tried everything except creating a virtual directory. First of all, is it possible to have asp.net 3.5 website without virtual directory.
View 3 Replies
Feb 14, 2011
I need to deploy 3 projects using one single installer. The first project is a web project the second and third project are windows services.I need to use the .Net Deployment project to deploy all the project is a single installer. I have managed to create a installer and a custom action which gets the primary output of the both windows service but I am having problems installing the Web application.
If I create an output for the web application it gets installed in the application's folder and not on IIS folder and its not set as an application.
View 1 Replies
Jan 9, 2011
I built the solution once in release mode and it created all the necessary files in the release folder. I then deleted all the contents of the release folder. Now when I buid it for the second time, the release folder is empty. The dll is in the debug folder.
View 1 Replies
Apr 28, 2010
My web application functions as expected when using non-compiled web pages. When I used a Web Deployment Project to build my solution (creating a separate assembly for each page and control output), the web application does not function (e.g.: pushing a button does not result in any action).
View 3 Replies
Jun 21, 2010
Have been searching for a while but am having no luck fixing this. I am running VS 2010 on a Win XP machine. My agency's developer converted our web app with no problem, and i can open it and compile the code in VS 2010. I am trying to run my wdproj to build the site to a local directory, and it will not. I get an output error:
Error 2
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
C:Ronweb_sitesTESTDEVpctweb.config
76 1 pct.deploy
View 1 Replies
Feb 12, 2011
According to this website, I can go to Visual Studio 2005 Web Deployment Projects, and download the add-in, but I am not finding what I need. I have searched other sites for the add-in as well, but with no luck. where I can download the add-in?
If not, can someone provide documentation on how to properly deploy an ASP Web application? I have tried on my own, but I am apparently doing something incorrectly or incompletely, as I have several different problems with my current deployment. So I am looking to start over with the help of this add-in or by following more detailed documentation.
View 2 Replies
Jun 7, 2010
Is there a difference between the Web Setup Project in VS2008 and the Web Deployment Project that I keep reading about on this site? More importantly, how much of a help is the deployment project over just using the setup project?
View 1 Replies
Apr 22, 2010
I need to know how to add a post build event to a Web Deployment Project.
How can it be done?
View 5 Replies
Nov 25, 2010
Now i want to deploy that application without any interaction of IIS. I want to make setup of my project so that i can directly install it in client's pc. I have tried many ways of doing this. I have tried Xcopy method and even tried of adding web setup project.
View 2 Replies
Jun 6, 2010
I just upgraded from VS2008 to VS2010, and now my web deployment project keeps rebuilding constantly. Even if I have a WinForms application set as the startup project and hit Ctrl+F5 to run it, the web deployment project rebuilds every time I hit Ctrl+F5. It didn't do this in VS2008. Does anyone know what's causing this?
View 1 Replies
Mar 18, 2010
I have a large folder (1.5 GB) in my ASP.NET Web Site, called Downloads, which contains media files, graphics, etc. No code that needs to be compiled or even deployed on every build.
I use Web Deployment Projects to compile and deploy. Every time I build the deployment project, the Downloads folder gets included and copied to the output location. This is taking a significant amount of time, because the folder is copied twice.
I've tried modifying the wdproj file like this:
<ItemGroup><ExcludeFromBuild
Include="$(SourceWebPhysicalPath)Download*"
/>
I've also tried not adding the * after the folder, but then I get a message that says the directory is not empty during the build process.
I've also tried this approach:
<ItemGroup>
<RemoveBeforeMerge Include="$(OutputPath)Downloads*" />
</ItemGroup>
And that still did not help. (also says: The directory is not empty.)What is the proper way to tell WDP not to consider a folder at all?
View 1 Replies
Jul 25, 2010
My asp.net web application knows how to create sub-applications (asp.net applications with web.config file, located in sub folders of the root application).
Now, I need to configure each sub-application in the IIS with a Virtual Directory, AND, make this new virtual directory an application in a specified application pool.
Is there any API for IIS7.5 using .NET ?
View 1 Replies
Apr 9, 2010
I created a web setup project. When the users install it, the virtual directory gets created and all the files are created under "C:Inetpubwwwroot<myvirtualdirectory>".
How to customize the web setup project so that I can change the virtual directory physical path? I had followed the tutorial
[URL]
but it didn't work and my MSI stopped installing alltogether.
View 4 Replies
Sep 16, 2010
I just got a windows vps setup at a hosting company and about to install a big web application that is a store front. Do I need to set any of the folders as virtual directories? I'm so confused on all of this. Do I just copy the folders and files over and thats it? It has Plesk to use for the control panel. I know I have to set the directories to run as application but is there anything else?
View 1 Replies
Oct 20, 2010
I have installed VS2010. already i have VS 2005 and website working with framework 2.0.After installation, now I am unable to set ASP.net version for IIS virtual directories to Dot net Framework verion 4.0.How can i set virtual directories Dot net Framework version 2.0 to 4.0?
View 2 Replies
Jan 13, 2011
Is it possible to look into multiple virtual directories, using a single web application?
I'm trying to develop a web app; which can create a site, save this site to a virtual directory in the same server, and make changes (i.e. add/edit webpages).
The web app will handle multiple domain names (IIS will handle the bindings going into the single web app), which are routed by the web app to their respective virtual directories.
View 1 Replies
Feb 11, 2010
We have a web portal product from which we customize portals from customers. We use the precompiled web app and create a virtual directory (vd) where the customization resides. In addition to this we do some changes web.config in the web app folder. We would obviously like to keep these customizations under TFS source control.
When I try to add the precompiled web app (which I don't want to add to source control), a warning tells me that the vds cannot be added. If I only add the folder that is referenced to by the vd, I lose the references to assemblies in the precompiled web app.
My questions are:
How do I structure a solution for adding IIS (sub application level) virtual directories and still retain the references to assemblies? Is it possible to add other directories/files from the web application level (like App_Theme, web.config etc.) to the solution?
Since we already use Visual Source Safe, we have established a tree structure for each customization project:
Project Root
|
|-Custom Sql
|
|-Custom Portal Files (which is added as a virtual directory)
|
|-Other Customizations
I could probably do a lot of this manually through the source control explorer, but I'd like to have everything done through a solution.
I've followed the instructions using this article: [URL], but this doesn't address the exact problem that I have. Oh, and we are currently using Visual Source Safe for portal customizaton, but are eager to make the move to TFS.
View 2 Replies
Mar 16, 2010
I have an ASP.net master page. In this master, I have all my css and javascript files defined. I also have a few images and a few buttons and hyperlinks.All the urls are all declared as relative ie "/scripts/ian.js"Everything works fine if this site is the root website, but I need it to work in a virtual directory.My problem is when I place this website in a virtual directory under a root site, all my links are pointing to the root site. so my links point to www.root.com/scripts/ian.js but it should be pointing to www.root.com/virtualDir/scripts/ian.jsI thought the Base Href tag in the header would help, but so far it does not seem to be helping in anyway. All the links are still pointing to the root website when i hover over them.
View 3 Replies
Aug 2, 2010
I have a bigger ASP.NET based webapplication, which is structured into subwebs (as described on [URL]How can I share user specific information (user credentials, other informations) between these subwebs? The point is that the subwebs have all their own virtual directories and therefore different sessions. Are there other possibilities besides cookies to have a shared (user/browser session based) memory?
View 1 Replies
Jul 27, 2010
I have 2 different Virtual Directories on my local IIS 7.0 server. I want to do session Management in such a way that Session variable created in one Virtual Directory is easily available in another Virtual Directory. I want to achieve this using SQL Server 2005. Till now I have done the following things
1) In my web.config file I have added the following entry
<sessionState mode="SQLServer" sqlConnectionString="Data Source=11.11.11.11;Integrated Security=False;User ID=uid;pwd=pwd" sqlCommandTimeout="30" >
</sessionState>
2) In SQL Server I have a database called ASPState that has 2 tables ASPStateTempApplications and ASPStateTempSessions and also some Store Procedures
Now If I create Session variable called Session["ProductID"] in Virtual directory A how can I access Session["ProductID"] in Virtual directory B.
View 5 Replies
Jun 21, 2010
We're having the same setup and receiving the same problem as:
[URL]
Setup
Server 2003 32bit, IIS 6
ASP.NET wild card mapping
A virtual directory mapped to an UNC share serving static images for a CMS in a load balancing environment
My question if it's possible to turn off asp.net from virtual and only serve static files e.g. images in the virtual directory, to avoid the problem with too many open connections?
If it's not possible I'll guess I have to implement a solution like [URL] to server the files from a local disc.
I found a possible solution at [URL] that removes the wild card mapping and makes it possible to turn of execution of asp.net files.
View 1 Replies
Sep 13, 2010
I did have this working but now something has stopped it (after trying to integrate combres)
My dev machine is win 7x64, running VS2008. I have a solution with number projects (mostly libraries), one was a webapplication. This webapplication used http://127.0.0.1/ to debug through. That site was configured to point to the home directory of that web application.
It was set up this way because i was URL Rewriting and that was the only way i could get it working
However now whenever i start up visual studio it complains that the local IIS has not been configured, would you like to create the virtual directory. If i say no then the project is not loaded, if i say yes then the process fails with could not find the server http://127.0.0.1 on the local machine. Creating a virtual directory is only supporting on the local IIS server.
I can edit the XML of the project file to turn off Use IIS in which case i can load the project but the site doesn't work through the integrated visual studio server.
I've tried removing the website in IIS7 and removing the AppPool and rebuilding but no go.
View 1 Replies
Jun 1, 2010
I want to write a program in ASP.NET to create virtual directories on the hosting server.
View 2 Replies
Nov 15, 2010
we want all these requests to point back to www.site.com and not have to physically create the files and directories for every type of site... so if I just create a virtual directory (www.site.com/india) and point it to www.site.com... then I figure I can look at the URL and set some parameters/text/images accordingly to fill out the template
View 4 Replies