Bonjour à tous,

J'utilise une BusinessApplication qui est déployée sur un serveur mutualisé et qui fonctionne très bien.

Je tente de déployer cette même application vers un autre serveur mutualisé et là j'ai un problème de configuration de mon web.config.

Via IIS remote, j'ai mis les autorisations de la même manière sur les deux serveurs.
• Anonymous Authentication = Enabled
• ASP.NET Impersonation = Disabled
• Basic Authentication = Disabled
• Forms Authentication =Enabled
Pour l'instant, soit j'utilise ce web.config ci:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings/>
  <connectionStrings>
    <add name="JConnectionString" connectionString="Data Source=myXXXXXXSource;Initial Catalog=myXXXCatalog ;Persist Security Info=True;User ID=myXXXUser;Password=myXXXPass" providerName="System.Data.SqlClient" />
    <add name="myAppli" connectionString="Data Source=myXXXXXXSource;Initial Catalog=myXXXCatalog;Persist Security Info=True;User ID=myXXXUser;Password=myXXXPass" providerName="System.Data.SqlClient" />
    <!--LA LIGNE SUIVANTE DOIT ETRE DECOMMENTEE POUR UNE PUBLICATION ET COMMENTEE POUR TRAVAIL EN LOCAL-->
    <!--<add name="LocalSqlServer" connectionString="Data Source=myXXXXXXSource;Initial Catalog=myXXXCatalog ;Persist Security Info=True;User ID=myXXXUser;Password=membel12nic" providerName="System.Data.SqlClient"/>-->
    <!--FIN-->
  <add name="myAppliEntities" connectionString="metadata=res://*/JEdmx.csdl|res://*/JEdmx.ssdl|res://*/JEdmx.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=myXXXXXXSource;initial catalog=myXXXCatalog;persist security info=True;user id=myXXXUser;password=myXXXPass;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings>
 
 
  <system.web>
    <customErrors mode="Off"/>
    <httpModules>
      <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </httpModules>
 
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </assemblies>
    </compilation>
 
    <authentication mode="Forms">
      <forms name=".JBase_ASPXAUTH" />
    </authentication>
 
    <!--bloc suivant rajouté pour authentification distante-->
    <membership>
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="JConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="10" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" passwordFormat="Hashed" passwordStrengthRegularExpression="" />
      </providers>
    </membership>
 
    <roleManager enabled="true">
      <providers>
        <clear />
        <add name="AspNetSqlRoleProvider" connectionStringName="JConnectionString" applicationName="/" type="System.Web.Security.SqlRoleProvider,  System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </providers>
    </roleManager>
 
    <profile enabled="false"> <!--Attention, pour OVH, cette valeur est mise à false, pour Winhost, à true-->
      <properties>
        <add name="FriendlyName" />
      </properties>
    </profile>
 
  </system.web>
 
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
 
    <modules runAllManagedModulesForAllRequests="true">
      <add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>
 
    <security>
      <authentication>
        <basicAuthentication enabled="false" />
      </authentication>
    </security>
  </system.webServer>
 
  <system.serviceModel>
 
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
 
    <services>
      <service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior">
        <endpoint address="" binding="basicHttpBinding" contract="Telerik.Reporting.Service.IReportService">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
        <endpoint address="resources" binding="webHttpBinding" behaviorConfiguration="WebBehavior" contract="Telerik.Reporting.Service.IResourceService" />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
 
    <behaviors>
      <serviceBehaviors>
        <behavior name="ReportServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="WebBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
    </behaviors>
 
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IReportService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
 
 
  </system.serviceModel>
</configuration>
Avec ce webConfig, j'arrive à me connecter avec login et password, j'arrive aussi à accéder à mes données (via Ria Services) dans mes tables SqlServer.

La seule chose que je n'arrive pas à faire, c'est créer un utilisateur ASP.

Je reçois alors le message "Invoke operation failed. Profile has not been enabled". Et c'est vrai que dans mon Web.config, j'ai:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
<profile enabled="false"> <!--Attention, pour OVH, cette valeur est mise à false, pour Winhost, à true-->
      <properties>
        <add name="FriendlyName" />
      </properties>
    </profile>
Le problème, si je mets profile enabled ="true", c'est qu'alors je n'arrive plus à me loguer via ASP, j'ai une erreur :
Load operation failed for query 'login'
ou encore
There was a failure using the default 'profileProvider'.please make sure it is configured correctly. A network-related or instance-specific error occured while establishing a connection to SQL Server. The server was not found or was not accessible....
Il semble qu'il me faut "tuner" mon web.config.

Quelqu'un peut-il m'aider ?