<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>10 Dec 2018 16:54:55 Z</lastBuildDate><pubDate>10 Dec 2018 16:54:55 Z</pubDate><description>I have this REST webservice (wd23) deployed on a IIS7.5 webserver.&#13;
I added the System.Web.Security assembly of the .Net framework to be able to call the ChangePassword method on the MembershipUser class.&#13;
&#13;
So I create this object:&#13;
user is "System.Web.Security.MembershipUser" dynamic&#13;
&#13;
and I call this method:&#13;
bRes is boolean = user.ChangePassword(sOldPassword,sNewPassword)&#13;
&#13;
This works fine in production as long as I define the membership/rolemanager providers and its connectionstring in the machine.config of the server.&#13;
&#13;
This is the part of the machine.config I added:&#13;
&#13;
&lt;connectionStrings&gt;&#13;
    &lt;add name="MySecurityDB" connectionString="..." providerName="System.Data.SqlClient"&#13;
&lt;/connectionStrings&gt;&#13;
&lt;membership defaultProvider="MyMembershipProvider"&gt;&#13;
	&lt;providers&gt;&#13;
		&lt;add &#13;
			name="MyMembershipProvider" &#13;
			connectionStringName="MySecurityDB" &#13;
			applicationName="Website"&#13;
			...&#13;
			type="System.Web.Security.SqlMembershipProvider" /&gt;&#13;
		&lt;add &#13;
			name="AspNetSqlMembershipProvider"&#13;
			connectionStringName="LocalSqlServer"&#13;
			applicationName="/"&#13;
			...&#13;
			type="System.Web.Security.SqlMembershipProvider" /&gt;&#13;
	&lt;/providers&gt;&#13;
&lt;/membership&gt;&#13;
&lt;roleManager defaultProvider="MyRoleProvider"&gt;&#13;
	&lt;providers&gt;&#13;
		&lt;add &#13;
			name="MyRoleProvider" &#13;
			connectionStringName="MySecurityDB" &#13;
			applicationName="Website" &#13;
			type="System.Web.Security.SqlRoleProvider" /&gt;&#13;
		&lt;add &#13;
			name="AspNetSqlRoleProvider" &#13;
			connectionStringName="LocalSqlServer" &#13;
			applicationName="/"&#13;
			type="System.Web.Security.SqlRoleProvider" /&gt;&#13;
	&lt;/providers&gt;&#13;
&lt;/roleManager&gt;&#13;
&#13;
The normal way of overriding the machine.config is to put a local web.config in the rootfolder.&#13;
So if I don't add it to the machine.config but to a web.config in the root of the webservice, these settings are not picked up by the windev webservice.  It seems the webservice can't find the custom web.config.  I can view in my log that the webservice uses the 'default membership settings' and default 'LocalSqlServer' connectionstring of the machine.config instead.&#13;
&#13;
Any ideas on how to solve this ?&#13;
&#13;
gr, Peter</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66924-how-tell-windev-23-rest-webservice-use-custom/read.awp</link><title>How to tell Windev 23 REST webservice to use a custom web.config instead of the machine.config ?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
