Do Web.config Transformations Work During Build/develop Cycle Not Just During Publish
Aug 18, 2010
I'm trying to develop my first web application using Web.Config transformations.Trying to run the app (building with the "Dev" build configuration)in the Asp.Net Debugging web server built into VS the site doesn't seem to work - the "Web.Dev.config" configuration doesn't appear to be seen by the application.
View 1 Replies
Similar Messages:
Mar 3, 2010
I really like the new transformation feature for the web.config. It seems to work when I do "Build deployment package" but not when I just want to locally start the debugging using the green arrow. It just uses the web.config without processing theWeb.Debug.config. I can prove that because in web.config I have debug="false" with a transformation in Web.Debug.config so that it gets true but everytime VS asks if it should modify the web.config to enable debugging which it should've done automatically with the following transformation:
[Code]....
Am I missing something here? I used to work with NAnt to modify/create the web.config as a pre-build event but I thought that I wouldn't need it anymore. Am I wrong? The project is a freshly created asp.net mvc 2 web application.
View 20 Replies
Jun 16, 2010
Today I started playing with the web.config transforms in VS 2010. To begin with, I attempted the same hello world example that features in a lot of the blog posts on this topic - updating a connection string.
I created the minimal example shown below (and similar to the one found in this blog). The problem is that whenever I do a right-click -> "Publish", or a right-click -> "Build Deployment Package" on the .csproj file, I'm not getting the correct output. Rather than a transformed web.config, I'm getting no web.config, and instead the two transform files are included.
What am I doing wrong?
Web.config:
[code]....
View 1 Replies
Apr 16, 2010
I've been searching around on a way to use the new features of web deployment in VS2010, namely the transformations for config files, but everything I reference just says "right-click on web.config and add config transforms".Is it possible to do config transforms (and get all of the other publish goodness) in a 3.5 ASP.Net MVC project in VS2010? Is it just an msbuild file?
View 7 Replies
Jan 24, 2010
When you run an application in the debugger, it appears to not apply the transformations to the web.config based on your build selection. Is this the case or am I missing something? It appears to be working just fine if I publish to local IIS, just does not seem to work in the debugger.
View 1 Replies
Jun 7, 2010
I'm a fan of the new VS 2010 Web.config transformations. I use this feature for deployment purposes and wondered if it is possible to use them for debugging too.I think of using them in the IDE: I want to create different built configuration (with linked transformation configurations); choose one of them; start the web site in the IDE and debug the different configurations this way.
View 3 Replies
Jan 27, 2011
I found an article which explains how to perform a Web.config transformation on an ASP.Net 4.0 Web Site, but all of my web sites are still running ASP.Net 3.5.[URL]
View 1 Replies
May 24, 2010
We have a couple transformations available for our web.config. How can I enable one of our staging or release configurations in my development environment? I'm trying to duplicate an issue from our staging environment in my development environment. Is this possible?
View 3 Replies
Mar 25, 2010
I've just enabled config transformations on a .NET 3.5 project in VS2010 RC after watching Scott Hanselman's video on web deployment. Unfortunately every time I go to publish I now get the following error:
The "TransformXml" task failed
unexpectedly.
System.UriFormatException: Invalid
[code]...
If I take a brand new VS2010 web application which already has the configtransformations by default I don't have a problem so I suspect my issue is project related.
View 1 Replies
Jul 13, 2010
I just joined this forum, have a question about using asp.net in windows vista, I do not have visual studio installed, so how do I develop asp.net applications and publish it or do I need VisualStudio to run these applications?
View 8 Replies
Aug 26, 2010
how to work page life cycle in asp.net
View 2 Replies
Aug 13, 2010
How to build and publish the ASP.NET web site(Microsoft Vishul Studio->File->New->Website) using Cruise Control.net. Actually, ASP.NET Web site doesnot contain .csproj and .sln file.
View 2 Replies
Feb 14, 2010
I want to be able to automatically publish to a local folder each time a web asp.net mvc 2 project is built.
I use Visual Studio 2008.
View 7 Replies
Mar 11, 2010
I want to write a class using c# and compile it and user this dll in many projects.
I know how to build a website in Visual Studio and publish it but Visual Studio mixes the classes and rename them to a few strang and unfamiliar names which doesn't mean anything.So my purpose is writting a class with some functions, compling them and use them in other projects.
View 5 Replies
Jul 27, 2010
I'm relatively new to actually publishing sites on my own..Anyway, right now I am using VS2008 to build / compile my web application and then publish it to the server. Simple enough, until I want to change several of the code behinds, and don't want to spend 30 minutes re-publishing several thousand documents.
I have been reading that publishing via VS is not the best approach, so I guess I have two questions:
1. Using VS2008, is there a way to build the project and publish only certain parts of the project such as the pre-compiled code or better yet have VS only update the code that has been changed on the server? I suppose I could simply publish it to my local drive and pick apart the files from there / is there a better way?
2. In your opinion what is the best deployment strategy?
View 4 Replies
Jun 29, 2010
I am currently attempting to use Visual Studio 2010 'Publish' and MSDeploy functionality to handle my web deployment needs but have run into a roadblock with regards to customizing the package depending on my build configuration.
I develop in a 32bit environment but need to create a release package for a 64bit environment, so in the 'Release' configuration I have a post build event that copies the 64bit version of a third-party dll into the bin directory overwriting the 32bit version. When I use the 'Publish' functionality, even though the correct 64bit dll is being copied to the bin directory, it doesn't get included in the package.
Is there a way to get the 'Publish' to include files that have been copied into the bin directory during a post build event?
View 2 Replies
Mar 25, 2011
I made a web.config (full file, it doesn't show XML errors)
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
...
<location path="." inheritInChildApplications="false">
[Code]....
View 2 Replies
Aug 22, 2010
So I've just started up my most recent website: [URL]
and it would seem that every 5th or 6th time I publish my project out of VS 2005 the Web.Config file corrupts and loses its connection string to the database and a nasty exception gets thrown stating that the web.config file does not contain the connection string that all of my SQLDataSource objects use.
I found this unanswered question that would also fix the issue: [URL]
But I'd rather know if there were some sort of simple fix for this that I don't know about.
View 1 Replies
May 11, 2010
When I publish my Asp.Net MVC website to the production server (via VS2008), the web.config & castle.xml files are overwritten. The content of these files is obviously different between my local dev environment and the production server.How do I prevent these files from being published?
View 2 Replies
May 24, 2010
I have a web site that publish to the production site after I make changes. I do this from VS 2008, by clicking Build, then Publish Web Site. How can I do the publish without uploading the web.config file each time? I do not want to update the web.config each time because I use a different database for my testing here locally.
View 13 Replies
Jan 6, 2011
I want to develop a utility where user will insert new Records and also the same application should work if user is not connected with internet.When user wants to submit records only that time he required to connect internet.
We have created one sample application using excel where we use Dropdown, Textbox, Label.User will download excel file from website and filled up details. When user wants to submit all details only that time internet is required. Application will insert value from excel file to server using WebServices when user click on submit button.
Above is working file but it's increasing our work because we are creating website and also Excel project (Almost double work). I want something where we can utilize the code for online and offline application.
View 1 Replies
Jun 17, 2010
I create some asp.net program in Visual Studio 2008. i am using File --> New Website to create website. it work fine when debug F5 in visual Studio.
But after i publish and put the result in folder C:Inetpubwwwroot. that code not work without return any error message so i cannot trace the problem. if The database in same machine with IIS, it work ok. but if database in another computer, i cannot run my Login not work.
i believe the problem is my method deployment still not correct.
my method:
i publish website with right clik in solution ,and choose publish website.
i choose the direction. after that ,i copy the folder to C:Inetpubwwwroot.
I create the Virtual directory,set application name and asp.net version :2.0.50727
When i running http://localhost/DW/Login.aspx. it 's running. But when i clik the button submit for submit my username and password it not return anything.
View 9 Replies
Oct 12, 2010
I'm trying to get my build number into the web.config of an ASP.Net MVC project (long story, but there is a reason)... something like this:
<appSettings>
<add key="version" value="1.0.3936.27150" />
</appSettings>
Right now, I'm doing it with an executable on the post-build event by looking at the assembly to get the version and stuff that into the web.config. It works, but isn't exactly what I was looking for.
View 1 Replies
Sep 1, 2010
The old school way is to copy and paste and the files.. so we don't want that anymore..
So I notice VS2010 has 'Publish'... Should I use file system and just create a shared drive on the VM and publish that way?? Should I FTP and set up FTP on the VM FTP server? Should I use web deploy?? But that seems to be made for commercial web hosting ?
View 1 Replies
Nov 12, 2010
I have an add-on for a commercial ASP.NET website. My add-on requires people to merge entries into their web.config, add/overwrite existing files, and add some DLL files to the bin folder. Is there a good and safe way to create an installer than can do this with a wizard type of installation?
View 2 Replies