Build Installer To Update ASP Web.config

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


Similar Messages:

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

Installation :: Error:The Update Patch Cannot Be Installed By The Windows Installer Service Because The Program To Be Updated May Be Missing?

Sep 9, 2010

I try to install vistual 2005 on Win 7 On meantime I have net1.0 sp3 developer ;net Framework 2.0 , Microsoft Device Emulator version1.0 -ENU,Microsoft Visual J#2.0 Redistributable Package( can I uninstall This package)the studin 2005, but when I try to install the update (VSBsp1-KB926747-x86-INTL) i get hte error:The update patch cannot be installed by the Windows Installer service because the program to be updated may be missing, or te upgrade patch may update a different version of the program, verify that the program to beupgraded exists on your computer and that you have the correct Upgrade patch how to deat with this problem??

View 6 Replies

C# - Put Build Number In Web.config?

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

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 :: Web.config Transformations On Build/debug

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

C# - Post Build Copy Config File To Another Project?

Feb 13, 2010

I have a solution which contains a website and various class libraries. The exists on the file system like so:

C:Projects MyWebsitedevMyWebsite.sln
C:ProjectsCoreMyClassLibrary1.csproj
C:ProjectsCoreMyClassLibrary2.csproj


I want to move the App.config file from MyClassLibrary1 project to the bin of the MyClassLibrary2. I want to do this on post build in VS or MSBuild using relative paths if possible. This way anybody checking out the projects will not have to modify any paths if they choose to locate the project in a different location.

I have already tried the following approaches but to no avail.

copy /Y "$(ProjectDir)App.config"
$(ProjectDir).. MyClassLibrary2$(OutDir) MyClassLibrary2.dll.config"

View 2 Replies

C# - Web.config Transforms Not Being Applied On Either Publish Or Build Installation Package?

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

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

Installation :: Windows Installer Keywords / List Of All The Keywords Available In A Windows Installer Like [TargetDir] And [ProductVersion]?

Mar 7, 2011

Can anyone guide me to a website where I can see the list of all the keywords available in a windows installer like [TargetDir] and [ProductVersion].

Can anyone also show me a very detailed tutorial of customizing the windows installer?

View 1 Replies

Visual Studio :: Create Build Configuration Dependent Web.config Files?

Dec 30, 2010

I'd like to add build configuration dependant web config files to my empty ASP.NET 4 Web site project. How can I do that? According to this blog entry, VS 2010 is supposed to provide a context menu entry on the original web.config file, Add Config Transform, allowing to add build configuration dependant web.config files to the project. But this context menu entry doesn't exist. What did I do wrong?

Steps to reproduce:

Create an empty ASP.NET 4 Web site project on localhost (IIS)

View 4 Replies

C# - Prevent GridView Saving Data From Build To Build In Visual Studio?

Apr 1, 2011

I have a question regarding a situation that occurs with GridView, ObjectDataSource in ASP .NET application. The GridView is linked to the ObjectDataSource and both are included within an UpdatePanel letting the GridView to fill in an asynchronous way from a form in the same page so it gets more rows as the user enters the data:

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="ObjectDataSource1">
<Columns>
<asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True"
SortExpression="Name" />
<asp:BoundField DataField="Periodicty" HeaderText="Periodicty" ReadOnly="True"
SortExpression="Periodicty" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="GetSessionNames" TypeName="Simulation"></asp:ObjectDataSource>
<asp:Label ID="Label27" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="NewWebSessionButton" EventName="Click" />
</Triggers>
</asp:UpdatePanel>

I start the project with Visual Studio 2008, fill the form and it works correctly. Then I stop the execution: rerun again and the data I entered in the previous run is in the GridView. Is like some sort of cache saved the data from the session before. I checked that EnableCaching property is set to false for the ObjectDataSource. If I Rebuild Web Site in Visual Studio (not just Build) then it works corretly leaving the GridView empty. Is this caused just becuase of Visual Studio? Can it be turned off? And will it happen in the final IIS it will run on?

View 1 Replies

Web Forms :: Build Survey System Where Build A Form With Questions And Some Answers?

May 25, 2010

I want to build a survey system where you can build a form with questions and some answers to these questions and then members who will log in will be able to take the test.

Then i want to present the different results from the test in some diagram or something like that.

View 5 Replies

How To Update Values In Web.config

Feb 21, 2010

I need to store an escaped html string in a key in web.config using the KeyValueConfigurationElement.Save method built into framework 3.5. But when I try to do so,it keeps escaping my ampersands.

Code looks like this:

strHTML = DecodeFTBInput(FTB1.Text)

FTB1.Text is a string of HTML, like this: <b><font color="#000000">Testing</font></b>

DecodeFTPInput uses the String.Replace() method to change < and > to < and >, and " to ".

Given the above string and function, let's say strHTML now contains the following:

<b><font color="#000000">Testing</font></b>

Of course I can manually edit web.config to store the correct value, but I need the authenticated admin user to be able to change the html themselves.

The problem is that when I try to save this string into its key in web.config, it escapes all ampersands
as & which ruins the string.

How can I get around this?

View 1 Replies

Update Web.config While Still In Process Of Client Request?

Mar 18, 2010

What happen if web.config gets updated while ASP (ASP.NET 2.0) server still process client request?

- Will the process be killed?

- If not, will the process read the updates in web.config.

View 4 Replies

Variables - Update Web.config Based On Different Server Using Asp.net

Dec 3, 2010

i am looking for a easy & elegant way to change my appsettings in web.config based on the different environment and i have (dev/qa/test/stage/prod) and i am manually changing the appsettings and its very tedious and time consuming and i have about dozens of settings.... what is the best approach for this kinda situation? i know one solution using Environment variables but wants to hear the best practice?

View 8 Replies

What Is Difference Between Build Solution And Build Website

Mar 11, 2010

It may be obvious to everyone. I am learning this: what is difference between build solution and build website

View 2 Replies

Build Tool Which Can Build A Web App Into Multiple Dlls?

Sep 22, 2010

I have a large solution which has multiple apps which all share some common site elements (masterpages, navigation, etc).

Currently, all of these get built into a single DLL

If my structure looks like:

WebRoot
- Common/
- Shared/
- Images/
- App1/
- App2/
- etc

Is there a build tool which will allow me to build WebRoot.dll, App1.dll, App2.dll? I don't believe this is possible in VS2008 or the MSBuild tool.

View 2 Replies

How To Specify A Direct Build Name Directory Using TFS Build Of .net Web Application

May 11, 2010

I have a TFS build set up to deploy an ASP.net project to a test server.The build works great, and deploys to the test server fine, but instead of putting it into the Website directory that my IIS webserver is configured for, it puts the build into Website_20100511.6

Why is the date suffixed to the directory name? Is there a way to turn that off so I can publish directly to the Website?

View 1 Replies

Configuration :: Programmatically Update Authorization In Specific Location In Web.config?

Nov 4, 2010

My web.config file has several authorization. May i know how can i update the roles value in to allow 'Staff' to access Page1.aspx programmatically.

[code]....

View 5 Replies

Configuration :: Unable To Programmatically Update Web.Config File Withing Website

Mar 24, 2010

I have a few app settings I want to update from within my web site and to do this I use this code:

[Code]....

This works fine in my development enviroment but when using IIS7 I get an exception while saving these settings:Access to the path 'C:InetpubwwwrootNSiteCOMweb.config' is denied.How can I configure IIS7 to allow my application to update web.config?

View 2 Replies

User Controls :: Programmatically Add Update Dynamic Roles In Location Tag Of Web Config

May 7, 2015

I want to add a new rule in my web.config file programmatically,

ex: I have a textbox to add location path I have a combobox (with items admin and user) to add roles. ex: user input location path = textbox roles = combobox (items admin and user) the save button, when click the save button the results go to the web config :

<location path="Report/ManageReport.aspx">
<system.web>
<authorization>
<allow roles="ADMIN" />
<deny users="*" />
</authorization>
</system.web>
</location>

So far my code as below: but I was confused to apply its

protected void AddRoleRule(string location, string selectedrole)
{
Configuration config = WebConfigurationManager.OpenWebConfiguration(Server.MapPath("~/Web.config"));
XmlDocument xDoc = new XmlDocument();
xDoc.Load(config.FilePath);
//if the rule exists update the rule

[Code] .....

View 1 Replies

How To Create Installer In 3.5

May 18, 2010

We are working in healthcare domain and intergating various medical equipments with the web application.Earlier i was window forms control libray and embedd it into my html page but as it is a .net component so to run it on d client machine i had to set the CAS(code access security ) settings on the client machine and for that 1stly client should have .net framework which comes very windy for the client to download closly 350MB data and then do all the CAS stuff. This time i want to get rid from this method and want to use some other way to do this activity.

The major thing that i have to do i need to excute the 1 exe file on click of Button and then once ECG start recording on the client machine its binary file get store on d static path on client machine and after that i browse this file and save it on my server. Now, simply wanted that i should create one installer which can automatically install .net framwwork and do required CAS settings automatically. second thing is how can i upload the file lying on machine to my server. How can i do that in asp.net 3.5?

View 1 Replies

Need To Build Web Application That Will Do:1 - Build Web Pages?

Jan 15, 2011

I need to build web application that will do:1 - build web pages. 1a - build template for page. 2 - add module(by module I mean ContacUs form, Search, Billing System...). Each module can be constructed by submodules or diveded to submodules 2a - build module(add form, textbox, button...) and that all
entered data by user could be saved in dbCan you advise me a DB structure that will contain it allI looked some cms db, but it's NOT this. Please, don't ask why I mess with it. I just need to build it.

View 2 Replies

Web Platform Installer Says Already Installed But Not

Aug 21, 2010

Just trying to download it from [URL] for the first time. Web Platform Installer says regarding "Frameworks and Runtimes" (and also "Visual Studio Tools"), "All the recommended products from this group are already installed", even though they're not. Did have something called Visual Studio Runtime Redistributable installed which is just a handful of DLL's. I uninstalled it though - made no difference. Also removed entries from registry with "Visual Studio" in them, also made no difference.

View 1 Replies







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