Run Site Using Specific Web.config Transformation In Visual Studio

Nov 18, 2010

I'm using the web.config transformations on an ASP.NET site so I have .config settings for dev, test, and release environments. I need to run the source code in Visual Studio against the test database using the settings in Web.Test.config and I can't figure out how to do it. I tried changing the configuration to Test but it still uses the base Web.config settings.

View 1 Replies


Similar Messages:

Visual Studio :: Config Transformation Using XSLT?

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

Visual Studio 2010 - Apply The Web.config Transformation Before Creating The Installer?

Jun 7, 2010

I am working on an ASP.NET project in Visual Studio .NET 2010 and attempting to make an MSI installer using a Web Setup Project. I added the Primary output from the project (which seems to pull in the relevant dependencies) and the Content Files from the project (which pulls in the Web.config and the .svc files).

The issue is that rather than applying the XDT transform and creating the Web.config using the Web.Release.config, it just copies the Web.config, the Web.Release.config, and the Web.Debug.config into the installer without doing any transformation at all.

How do I get it to apply the Web.config transformation before creating the installer?

View 2 Replies

Visual Studio :: Web.config Transforms For Web Site Projects

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

Visual Studio :: How To Convert Whole Visual Studio 2008 Web Site Project To Visual Studio 2010

Aug 14, 2010

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project

my current project references

i have a very annoying iis problem

iis server stops working until app pool is recycled

i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem

View 2 Replies

'Add Config Transforms' And One Click Publish Option Not Working When Upgraded From Visual Studio 2005 To Visual Studio 2010

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

Visual Studio :: Visual Studio 2010 Missing Ajax And No Web.config When Creating New Project?

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

Asp.net - Web.config Entry Doesn't Work In A Specific Site

Sep 5, 2010

in my web.config file i've added an entry:

<httpModules>
<add type="HDI.HTTPFilter" name="HTTPFilter"/>

but the server where i've placed the website on is not reading this entry but in other servers the site works perfectly.what the problem might be?

View 1 Replies

Web.config Transformation And Deployment Options?

Nov 19, 2010

I am just starting my first MVC Web Application and have noticed that I now not only have a Web.config file in the root, but 2 sub-files, for Debug and Release configurations. I've read up a bit on what this is, in that I can put specific configurations for my different environments in each file, but I am confused as to when these seperate files are actually used.

Do I HAVE to use the built in Deployment/Publish tools within Visual Studio in order to benefit from this, or, if I set my build mode to Release, and do a simple build of my web application, then deploy the compiled files, along with the Web.config AND Web.Release.config, would that work?

I'm just not sure what deployment options I have to take advantage of these seperate config files?

View 1 Replies

Configuration :: Transformation With Config Files?

Aug 17, 2010

I am currently trying to publish a web application in TestRelease mode and when I do, the following dll is compiled and put into the bin folder.Microsoft.VisualStudio.Settings.dll.I do not get this dll when I comple in release or debug mode so wondered if there is a setting I can change so this dll does not appear in the bin folder when I compile in TestRelease or TestDebug mode ?When I get that dll in the bin folder and try to deploy the application to our test server, I receive the following message: Could not load file or assembly 'Microsoft.VisualStudio.Settings.dll' or one of its dependencies.Any suggestions on why that dll appears in the bin folder and how I can prevent it from being deployed when I pusblish through visual studio ?

View 1 Replies

Team Build 2010 And Web.config Transformation?

Nov 25, 2010

I'm struggling to get web.config transformations working with automated builds. We have a reasonably large solution, containing one ASP.NET web application and eight class libraries. We have three developers working on the project and, up to now, each has "published" the solution to a local folder then used file copy to deploy to a test server. I'm trying to put an automated build/deploy solution in place using TFS 2010. I created a build definition and added a call to msdeploy.exe in the build process template, to get the application deployed to the test server. So far, so good!

I then tried to implement web.config transforms and I just can't get them to work. If I build and publish locally on my PC, the "publish" folder has the correct, transformed web.config file. Using team build, the transformation just does not happen, and I just have the base web.config file. I tried adding a post-build step in the web application's project file, as others have suggested, similar to:

<target name="AfterBuild">
<TransformXml Source="Web.generic.config"
Transform="$(ProjectConfigTransformFileName)"
Destination="Web.Config" />
</target>

but this fails beacuse the source web.config file has an "applicationSettings" section. I get the error Could not find schema information for the element 'applicationSettings'.I've seen suggstions around adding arguments to the MSBuild task in the build definition like

/t:TransformWebConfig /p:Configuration=Debug

But this falls over when the class library projects are built, presumably because they don't have a web.config file.

View 3 Replies

Visual Studio :: Errors In Root Machine.config And Web.config After 2010 Installation

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

Visual Studio :: Web Site / Web Application Templates Seem Changed - Default.aspx Only With Site.master

Oct 21, 2010

Using Visual Web Developer 2010 Express. I was used to creating a web app anytime and I would get a default page for starters and be happy. But today I find that when I pick either the ASP.NET Web Site or ASP.NET Web Application templates I get site.master and a bunch of site admin files that I don't want. Alternately when I select the empty versions of those templates, I get almost nothing at all. An almost empty web.config page and no Default.aspx page. There is nothing magical about having a default.aspx page in place, but it is an indicator of a change when I can only get a virtually completely empty website or a website with a bunch of bells and whistles I don't want.

Also, for some reason, when I create a new app or website as just noted, in the Solution Explorer I get aspx.designer.cs files showing as well as web.config files for both debug and release. Somehow some settings and templates must have changed, or am I missing something here? How can I get my settings/templates to go back to the way they were?

View 1 Replies

Visual Studio :: Can Not Create An C# ASP.NET Web Site From Visual Studio 2010

May 27, 2010

I downloaded a trial version of Visual Studio 2010, created a new c# Solution and then wanted to add an ASP.NET Web Site. I am Folllowing an example in a book: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008.In the book they write that a template for createing an c# ASP.NET Web Site would be found, but whereever I search for o template in VisualStudio I cant find that for c#, I could find it for VisualBasic but that is not wath I want!

View 1 Replies

Visual Studio :: Visual Studio 'copy Web Site' Error

Oct 31, 2010

I am getting the following error when I try to establish ftp remote connection using the 'copy web site' feature on visual studio 2005.

unable to open the web 'ftp://209.*.*.*/httpdocs'. The computer is disconnected from the network.

Why can't I connect to the remote site on visual studio 2005? I can do the same thing on Dreamweaver with no problem. I can ping the IP successfully. I can open the ftp URL on a web browser with no problem.

View 1 Replies

Visual Studio :: Debug Classic Asp Site That Is Called From Site?

Mar 28, 2011

i have an asp.net website which contains a link to a legacy site written in classic asp which has vb 6 classes (dll) in the back ground also.here is what i am trying to achieve:-i want to browse to the asp.net website using IE7,then when the link is clicked then enters the classic asp site i want to start debugging the classic asp and step through it.(also to make things worse, once a the vb6 class is instanciated, and a call make to its method i want to debug the method in the vb 6 code)My system :- XP Pro, IIS 5, Visual Studio 2005 (asp.net project ), Visual interdev 6 (classic asp project) Visual Basic 6 (vb 6 classes compiled into dll)i have been trying everything with no joy, there is lots on the net but nothing seems to have worked.i have the back office components installed so asp debugging is possible, i have configured the asp website s debugging is turned on.if i add a breakpoint to the classic asp site and hit the start button in visual interdev i can step through it fine.My problem is that if i attach interdev to a process (iexplorer.exe or dll.host) then the breakpoints are not hit. if anyone can help me with this it would be great.ont top of that, if anyone can explain to me how to also debug the vb6 dll code in visual basic 6 when it is called from the classic asp site that would be great!

View 1 Replies

Visual Studio :: Sync Pages With The Live Site From Somewhere In Visual Web Developer?

Oct 22, 2010

More familar with DreamWeaver. Can i sync pages with the live site from somewhere in Visual Web Developer? Or do I need to use a separate FTP tool.

View 3 Replies

Visual Studio :: Downloading Site Into Visual Web Developer?

Sep 22, 2010

I'm having a site done in ASP.NET and part of the quote is deployment. It's only one page at the moment. Can I configure VWD to download my app to my PC in VWD?

It will also have a Telerik RadGrid that VWD doen't support, will I still get the page wih some kind of placeholer?

View 1 Replies

Visual Studio :: How To Search In Specific Places

Dec 1, 2010

I have to refactor really huge project with a lot of user controls where each has a lot of element sometimes with no unique id. I mean that in one page Image element has ID="img" as well as DevExpress popup control (containig image) in another page. When I try to search concrete ID, I found many of them in code behind files (.cs) but I need only these which I can find in *.ascx files. Can I do such thing?

View 2 Replies

Visual Studio :: Search Toolbox For Specific Control?

Jul 8, 2010

Is there a way to search the Toolbox for a specific control?

View 3 Replies

Visual Studio :: How To Map Web Server (localhost) To Specific Local IP

Mar 31, 2011

I am using Windows 7 + VS 2010 and I need to access (debug purpose) my web project in VS but through HTTP-access from outside my router's network. I have mapped localhost to e.g. port 80 and my local PC has IP 192.168.1.2. Now, how can I map the VS project to the local IP?

Also the file: C:WindowsSystem32driversetchosts says:

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

Tried to reasign localhost there but W7 refused to make changes even though I am admin.

View 1 Replies

Suppress Specific CSS 2.0 Validation Errors In Visual Studio 2008?

Feb 5, 2010

A typical CSS property that I use often is overflow-x and overflow-y. Sometimes I use CSS 2.1 or later properties or selectors. These (correctly) raise a validation error: Validation (CSS 2.0): 'overflow-y' is not a known CSS property name.For years I ignored this, but it kinda feels wrong. It's possible to switch off warning in C# and other languages for a particular line, block, file or project. Is something similar possible for CSS (or HTML) errors or warnings? Instead of switching it all off, I prefer a more granular solution.

View 2 Replies

Visual Studio :: Convert Web.config From 2.0 To 3.5?

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

Visual Studio :: Updating A 3.5 Site To 4.0?

Jul 3, 2010

When I updated from 2.0 - 3.5 I just changed the target in visual studio and it fixed my web.config then I just deployed that.

Is the upgrade to 4.0 the same deal?

Can I keep the current site @ 3.5 (with the target framework attrib), but still be able to get the 4.0 goodies like Workflow 4 assemblies?

View 1 Replies

Visual Studio :: 4 Doesn't See Machine.config

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







Copyrights 2005-15 www.BigResource.com, All rights reserved