web-config

Enterprise Library 6 - dynamically change log file name

不问归期 提交于 2021-02-18 19:00:13
问题 Is it possible to dynamically set log folder and file name in C# which overrides the config value(file name) in the Listeners section of logging configuration? Tried to follow the below link but it is applicable only for EL 5 Log messages going to previously created log file This is how i Initialize EL Logging: IConfigurationSource configurationSource = ConfigurationSourceFactory.Create(); LogWriterFactory logWriterFactory = new LogWriterFactory(configurationSource); Logger.SetLogWriter

Using AspNetSqlMembershipProvider in MVC5

送分小仙女□ 提交于 2021-02-18 18:53:53
问题 working with MVC5 and trying to integrate AspNetSqlMembershipProvider than the default provider or simple membership provider. Is that possible to use AspNetSqlMembershipProvider with MVC5 ? All login and register codes looks clumsy and I am not able to figure out what exactly UserManager . I did all necessary alterations in the web.config level, still my users are not validating with the SQL Database which we have created. 回答1: AspNetSqlMembershipProvider is deprecated. ASP.NET Universal

Using AspNetSqlMembershipProvider in MVC5

守給你的承諾、 提交于 2021-02-18 18:53:41
问题 working with MVC5 and trying to integrate AspNetSqlMembershipProvider than the default provider or simple membership provider. Is that possible to use AspNetSqlMembershipProvider with MVC5 ? All login and register codes looks clumsy and I am not able to figure out what exactly UserManager . I did all necessary alterations in the web.config level, still my users are not validating with the SQL Database which we have created. 回答1: AspNetSqlMembershipProvider is deprecated. ASP.NET Universal

WCF - Conflicting endpoints after .Net 4.5 installation

半世苍凉 提交于 2021-02-18 03:24:28
问题 I'm recently installed the 4.5 framework on our development web server which runs IIS 7.5 on Windows Server 2008. After installation, two web services started having the same error. These web services were built using the MS REST Starter Kit. Here is the error I'm getting. A binding instance has already been associated to listen URI . If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in

WCF - Conflicting endpoints after .Net 4.5 installation

故事扮演 提交于 2021-02-18 03:21:00
问题 I'm recently installed the 4.5 framework on our development web server which runs IIS 7.5 on Windows Server 2008. After installation, two web services started having the same error. These web services were built using the MS REST Starter Kit. Here is the error I'm getting. A binding instance has already been associated to listen URI . If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in

change codeigniter .htaccess to web.config error

女生的网名这么多〃 提交于 2021-02-11 15:11:36
问题 I trying to use codeigniter on IIS, I was able to config php to work on IIS but when I tried to change the .htaccess to web.config it gives me error my htaccess code is RewriteEngine on Options +FollowSymLinks RewriteRule ^admin(.*) index.php/admin$1 RewriteRule ^supervisor/([0-9]+)(.*) index.php/supervisor_$1/$2 RewriteRule ^moder/(.*)/([0-9]+)(.*) index.php/moder/$1/$2 rewriteRule ^(login|logoff)(.*) index.php/base/$1$2 RewriteRule ^(attachment|meeting|thread|attachments|profile|search

change codeigniter .htaccess to web.config error

假装没事ソ 提交于 2021-02-11 15:08:32
问题 I trying to use codeigniter on IIS, I was able to config php to work on IIS but when I tried to change the .htaccess to web.config it gives me error my htaccess code is RewriteEngine on Options +FollowSymLinks RewriteRule ^admin(.*) index.php/admin$1 RewriteRule ^supervisor/([0-9]+)(.*) index.php/supervisor_$1/$2 RewriteRule ^moder/(.*)/([0-9]+)(.*) index.php/moder/$1/$2 rewriteRule ^(login|logoff)(.*) index.php/base/$1$2 RewriteRule ^(attachment|meeting|thread|attachments|profile|search

User Secrets in .NET 4.7 connectionstrings format

拜拜、爱过 提交于 2021-02-11 13:55:48
问题 I have been digging for hours and keep coming up with information about .NET Core, yet hardly anything about .NET 4.7 full framework. I figured out how to add User Secrets to the main project of my Web API solution. I get the basic secrets.xml file where I need to to either store my database username and password or my connection string. Every post I find talks about the changes you need to make to web.config. However nothing shows what to do with my connection string, how to format it, in

IIS URLRewrite https non-www to https-www

纵饮孤独 提交于 2021-02-11 12:32:04
问题 Having a tough time configuring rewrite rules. I basically want : Non www requests to be redirected to one with www Non https requests should be redirected to one with https Desired Redirects: Requested Url Redirected To http://example.com https://www.example.com/ http://www.example.com https://www.example.com/ https://example.com https://www.example.com/ https://www.example.com https://www.example.com/ Rewrite configuration 1: <rules> <rule name="Redirect HTTP to HTTPS" stopProcessing="true"

WiX installer: can we add a new element in web.config using a patch when it is set to NeverOverwrite=yes in its initial msi

那年仲夏 提交于 2021-02-11 06:10:08
问题 I am working on a web application. the Web.config file is set to NeverOverwrite (=yes) in its initial installation. Now i need to add DBproviderfactories like below. Can i add this entire block using XmlFile in a patch.msp? I do not want to write a custom action. All I need is to add this block in the web.config. Any suggestion here is appreciated. <system.data> <DbProviderFactories> <!-- Remove in case this is already defined in machine.config --> <remove invariant="Oracle.ManagedDataAccess