Visual Studio Public & Web.config Transforms Features
Feb 2, 2011
I work in an development group in an enterprise, where we strive to seperate business units and their responsibilities. So for example, I am in the development group and we are responsible for all tasks related to developing applications. We have other roles such as dbas, or operational roles that are outside of our group and are responsible for things like deployment, server maintenance, etc.
I'm looking at features in VS such as the publish web app feature and the web.config transform feature and reading about them in blogs and various other places. Based on the majority of what I read it always seems that the writer is assuming that the developer is managing things like connection strings, user names, passwords for the different environments in web config transforms, then publishing to a remove server in some kind of production environment (be it live, or test or staging, etc).
An example is here. In our environment, and I assume others too, the scenario is somewhat more complex than is usually portrayed. The development group may not know where any of what they've developed is deployed. And administrators may move servers,databases etc and update configuration as characteristics of the environment dictate. So in these cases, how does web.config transforms help? Publish can still potentially be used locally to build artifacts for a deployment package but even you'd probably want to use some automated build manager instead.
So is publish and transforms really more suited for more rudimentary development processes where the barrier between development and operations is very grey? Or am I missing something? It just seems that a lot of things I've reading about this kind of thing have good intentions but are somewhat superficial in the context of a more defined development process.
Interested to know others opinions and experiences on this.
View 2 Replies
Similar Messages:
Jul 28, 2010
I just recently upgrade my asp.net web project from visual studio 2005 to visual studio 2010. The upgrade was successful with no problems however im missing some features with this project. The One Click Publish feature(which is greyed out) in the header area of Visual Studio 2010 and the Add Config Transforms feature which is no where to be seen when you right click on web.config. When i create a new web project straight from visual studio 2010, these options work fine.
View 1 Replies
Apr 8, 2010
Does anyone no why web.config transforms are not available for Web Site Projects in VS2010. I thought that Web Site Projects where once introduced as the successor of Web Application Projects. But now the lack the deployment feature which I would really like to use.
Maybe someone knows a workaround, without having to convert 70 websites? Converting to Web Application Projects isn't a real option because I use Table Profile Provider by Hao Kong, which doesn't work with this type of project.
View 4 Replies
Nov 8, 2010
I have just downloaded Visual Web Developer Express 2008 and I am having problems getting basic features of the IDE to work.
In design mode for an aspx file:
1. The Split and Source tabs are not working.
2. I can not drag and drop controls from the Toolbox to the design surface.
View 3 Replies
Jun 9, 2010
I want to know whether we have any new features or Framework related to UI design (like webparts) or any othere items which is introduced with the VS2010 for new way of desiging the Aspx page.
View 1 Replies
Dec 28, 2010
I was recently told by a colleague that VS 2010 has inbuilt features similar to Resharper (e.g. Ctrl T to find a class etc...). I have been experimenting with VS 2010 Ultimate edition but cannot seem to find these features.If the features exist could somebody point me in the right direction?
View 1 Replies
Sep 28, 2010
when i opened my Visual Studio 2010 i noticed that my ajax tab was missing from my toolbox and ajax control kit too.Then i noticed even that when i create new website, there is no web.config in it and it should be.WHAT IS GOIN ON???? :/
View 13 Replies
May 6, 2010
I am trying to utilize Transforms in my Web.Configs.It is working when I publish, however, if I run from Visual Studio they seem to have NO effect.
I am using VS2010 / .NET 3.5 project / Silverlight 3.
I used these two as my primary references. http://vimeo.com/10781314 / http://msdn.microsoft.com/en-us/library/dd465326.aspx
I've tried several ways..
1. Overriding my Connection Setting using Transform Replace, match on name
2. Just using Insert in the Release.Config with no setting in the Main Web.Config.
Both ways DO work on Publish, but neither work in VS. # 1 shows the original when I'm just trying to run from VS and # 2 Crashes on this line string scontest = ConfigurationManager.ConnectionStrings["DBTest"].ToString();
Here is my Main Web.config for try # 2
<connectionStrings>
<!--<add name="DBTest"connectionString="Server=MAINWEBCONIFGBox; Database=personal; User; password=P@ssw0rd" providerName="System.Data.SqlClient" />-->
</connectionStrings>
Web.Release.Config for try # 2
<connectionStrings>
<add name="DBTest"
connectionString="Server=RELBox; Database=personal; User Id=admin; password=StagingPersonalPassword"
providerName="System.Data.SqlClient" xdt:Transform="Insert" />
</connectionStrings>
View 5 Replies
Nov 15, 2010
I am attempting to setup Config Transforms on my project that I migrated to VS 2010. The web project works just fine, but I have a WCF Host project that I seem to be unable to add transforms.
Has anyone had this problem before?
View 1 Replies
Aug 26, 2010
When my Web.config transforms it is adding a new line before the end value tag in my ApplicationSettings. This new line is showing up in the setting and causing an exception. Example:
Web.config:
<setting name="FilePath" serializeAs="String">
<value>c:path</value>
</setting>
Web.Debug.config:
<setting name="FilePath" serializeAs="String" xdt:Transform="Replace" xdt:Locator="Match(name)">
<value>c:path</value>
</setting>
Published Web.config:
<setting name="FilePath" serializeAs="String">
<value>c:path
</value>
</setting>
The end value tag being on its own line is causing problems. Does anyone know how to get it to stop doing this?
View 1 Replies
Jan 19, 2011
I just installed VS2010 and opened the root machine.config and web.config files for review and I found some errors. In machine.config, the following line has errors in both entries for <Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior>. When I hover the cursor over them I get a tooltip text which displays: "The element 'endpointBehaviors' has invalid child element 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior'. List of possible elements expected: '...(list of options here)...'. The same problem happens for the second appereance in tag <serviceBehaviors>.
[Code]....
In web.config, there is a tag called <protocols> that has an error with a tooltip text that says "The element 'system.web' has invalid child element 'protocols'. List of possible elements expected: '...(list of options here)...'.
View 2 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
Nov 25, 2010
Every time I edit a resource file in VS, it regenerates the corresponding code and sets the class access modifier to internal.It's a pain to Ctrl-F -> ReplaceAll every time I edit the resx. Is there a property/setting so that I can default this to public?
internal class MyResource {
internal static global::System.Resources.ResourceManager ResourceManager {...}
}
I need all those internal to be public all the time.
View 1 Replies
Feb 7, 2010
I'm using VS 2008 and can't seem to get intellisense to reconise Public variables declared in my codebehind.I start a new ASP.NET Web Application project, named something other than "WebApplication1". In my default.aspx.vb codebehind, I declare, say, "Public MyValue As Integer = 10", at the class level of course.Then, in my default.aspx page, within the body tag, I type "<%= myvalue %>"No mater what I try, it refuses to recognise "myvalue" as a valid variable name, however the code DOES compile and runs perfectly. Everything else seems to work fine.
View 3 Replies
Jan 6, 2010
VWD 2008 Express. Windows 7 (64 bit). I want all my work and settings for VWD 2008 to be stored in the public (shared) documents folder. There are settings under Tools>Options to specify where projects and templates are stored, that is part of the answer. However, whenever I open VWD it always creates a "Visual Studio 2008" folder in my personal Documents folder where it apparently stores some settings. How can I make VWD work entirely in the "Visual Studio 2008" public folder for everything and NOT create the personal folder?
View 2 Replies
Nov 10, 2010
We deployed version 2.0 to our client. But we converted from .Net 2.0 to .NET 3.5 in our development area. When we are deploying the modified module to our client, We are getting error because the client site is referring 2.0. We told the client to upgrade the .NET framework to 3.5. Though they are upgrading to 3.5, the web.config will refer to 2.0 only. We can't open the project in vs 2010 in the client place. Client system does not have project file. How can I convert the web.config?
View 1 Replies
Mar 23, 2010
I have switched over from VS2008 to VS10 (.Net4) and I program in Silverlight. But this problem isn't related to the Silverlight but more so to ASP.Net and that's why I bring it up here. My problem is if I create a SL or even a plain ASP.Net Web app, and I go to Project|ASP Configuration and click on security I get error that it can't find the database. After lots of testing, it turns out if there is no connection string with the name "LocalSqlServe" in my web.config, it does not find Machine.Config in the .Net Framework to get it's default. It also happens at runtime and not just in VS. So, my machine ASP.Net can't find machine.config file. I'm running Vista 32.
View 3 Replies
Oct 13, 2010
I want to use the web.config transformation that works fine for publish also for debugging.When i publish a web app, visual studio automatically transforms the web.config based on my currenc build configuration.How can i tell visual studio to do the same when i start debugging.On debug start it simply uses the default web.config without transformation.
View 5 Replies
May 10, 2010
The VS2010 Online Help for config transformation appears to be incorrect.If I add something like view plaincopy to clipboardprint?
View 5 Replies
Jan 6, 2010
How would you revert the web.config file back to .net 3.5 if .net 4.0 updated it to minimal?
View 6 Replies
Apr 16, 2010
I have easy to reproduce issue with web.config transform. Steps below are causing major grief.
Create new Web Application Project in VS 2010. Open web.debug.config, put following inside it
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xdt:Transform ="Replace">
<applicationSettings>
<MyProject.Properties.Settings>
<setting name="Username" serializeAs="String">
<value>username</value>
</setting>
</MyProject.Properties.Settings>
</applicationSettings>
</configuration>
Now deploy to file system on local hardrive. Open resulting web.config and see <value> setting has extrac carriag return and bunch of tabs in front of it..
Screenshots can be downloaded below.
[URL]
View 1 Replies
Oct 6, 2010
When I want to build my website it complains the web.debug.config file cannot be copied.I can't find this file, how can I restore it?I do have a web.config file!
View 2 Replies
Mar 24, 2010
In the Setup Project I have 2 web.config files: web.config - used during the development and web_dist.config - the one that should be included into Setup Project. I must be sure the the Setup project will NOT include the web.config and will always include web_dist.config.
In the File System -> Web Application Folder I have added the Content Files from the project.
Also included the web_dist.config and mapped it to the web.config.
But this gives the warning:
WARNING: Two or more objects have the same target location ('[targetdir]web.config') And the actual config file included is web.config and not web_dist.config. What would be the best option to include the web_dist.config (and named as web.config in the setup)?
View 2 Replies
Oct 26, 2010
in Vs2008 ,I copy the ".dll" file to: ...Program
FilesMicrosoft Visual Studio 9.0Common7PackagesDebuggerVisualizers.
they works well。
but in Vs2010, copy the ".dll" file to: ...Program
FilesMicrosoft Visual Studio 10.0Common7PackagesDebuggerVisualizers.
there is a error.
View 1 Replies
Aug 9, 2010
I just moved into a new computer running Windows 7 pro, and I installed a new copy of VS2010. Now all of my old sites that I made in VS2008 do not have their web.config files. Does anyone know what happens to them in VS2010, or Windows 7?
View 3 Replies