technomark.in
Hot News

$(this) Selector And Children / Find In jQuery

Detect An Undefined Object Property In JavaScript

Rotate And Save Video Using VLC Media Player

Capitalize The First Letter Of String In JavaScript

Convert Any Files To Any Format Using VLC Media Player

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

How To Logout From All Devices In Skype

Technomark.in

How To Embed Google Map In Your Code

Technomark.in

How To Install IIS (Internet Information Services) On Windows

Technomark.in

Enable Directory Browsing In IIS

View All


How To Fix "$(ReplacableToken....") ConnectionString Issue on web.config in Asp.Net


What is this Issue ?

> When you specify connection string on the web.config of your web application and
> trying to publish to IIS, the connection string will be replaced with "ReplacableToken".
> The new connection string looks like as below.
> $(ReplacableToken.....-web.config....)
> The replacement of Connection string will happen to all connection string specified on the web.config.
> The situation will be like, everything is working fine on localhost but
> when goes to IIS, the application is not working.
> You may not be able to track the issue unless you attach the IIS hosted app to the Visual Studio.
> Those who develop final checklist for deployment, please add this issue as high priority.
> This happens not only to the Asp.Net app, but any kind of IIS hosted Application.

How to Resolve this Issue

> Please follow the below steps to resolve this Issue.
> Open your .csproj file on Notepad.
> Go to the node PropertyGroup
> May be there will have more PropertyGroup node as per your Publish environment.
> For example Debug, Release, Production
> Inside PropertyGroup node find the sub node named
> AutoParameterizationWebConfigConnectionStrings
> Set it as False as shown in the image

How To Fix ReplacableToken ConnectionString Issue on web.config in Asp.Net

> Do this for all publish environment.
> Save the .csproj file and then republish the Solution to the IIS.
> This would definitely resolve the issue.

Watch Video of this Content on Video Streaming

Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Technomark.in

Book Train Tickets on IRCTC Quickly During Tatkal Period

Technomark.in

Before You Copy Any Image From Internet

View All

Privacy StatementDisclaimerSitemap