Quantcast
Channel: WCF .NET 4.0 Web.config
Viewing all articles
Browse latest Browse all 7

WCF .NET 4.0 Web.config

$
0
0

Hi ! I try to deploy a wcf web service on a server.

 Till now, my web service worked in 3.5 but when i moved to 4.0, my service can't be shown in my browser anymore.

 I would like to know if someone could gave me a web.config which work not on localhost (because it already works for me) but on a true server.

For now, here is my web conifg code :

 

1    <?xml version="1.0"?>
2 <configuration>
3
4 <system.web><compilation debug="true" targetFramework="4.0" /></system.web>
5
6 <!-- Variable Globales : -->
7 <appSettings><add key="Domaine_Adresse" value="***********.fr" /><add key="Domaine_Port" value="389" /></appSettings>
8
9 <connectionStrings>
10 <add name="auxilogConnectionString"
11 connectionString="Data Source=SRV-DEV\DEV2008;Initial Catalog=*****************"
12 providerName="System.Data.SqlClient" />
13 </connectionStrings>
14
15 <system.serviceModel>
16 <behaviors>
17 <serviceBehaviors>
18 <behavior name="WCF_ServiceBehavior">
19 <!-- A mettre à false une fois en pleine exploitation -->
20 <serviceMetadata httpGetEnabled="true" />
21 <serviceDebug includeExceptionDetailInFaults="true" />
22 </behavior>
23 </serviceBehaviors>
24 </behaviors>
25
26 <bindings>
27 <customBinding>
28 <binding name="WCF.Services.WCF_binding">
29 <binaryMessageEncoding />
30 <httpTransport />
31 </binding>
32 </customBinding>
33 </bindings>
34
35 <serviceHostingEnvironment aspNetCompatibilityEnabled="true"
36 multipleSiteBindingsEnabled="true" />
37
38 <services>
39 <service
40 name="WCF.Services.WCF_Services"
41 behaviorConfiguration="WCF_ServiceBehavior">
42
43 <!-- Elément endpoint fournit aux applis clientes
44 les infos pour communiquer avec notre service WCF_Services.
45 Pas besoin de spécifier l'adresse -->
46 <endpoint
47 address=""
48 binding="basicHttpBinding"
49 bindingConfiguration="WCF.Services.WCF_binding"
50 contract="WCF.Services.WCF_IServices">
51 </endpoint>
52 </service>
53 </services>
54 </system.serviceModel>
55 </configuration>

 And now my web.config for 3.5 web service :

   

<?xml version="1.0" encoding="utf-8"?><configuration><configSections><sectionGroup name="system.web.extensions"
					  type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><sectionGroup name="scripting"
						  type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="scriptResourceHandler"
						 type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
						 requirePermission="false"
						 allowDefinition="MachineToApplication" /><sectionGroup name="webServices"
							  type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="jsonSerialization"
							 type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
							 requirePermission="false"
							 allowDefinition="Everywhere" /><section name="profileService"
							 type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
							 requirePermission="false"
							 allowDefinition="MachineToApplication" /><section name="authenticationService"
							 type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
							 requirePermission="false"
							 allowDefinition="MachineToApplication" /><section name="roleService"
							 type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
							 requirePermission="false"
							 allowDefinition="MachineToApplication" /></sectionGroup></sectionGroup></sectionGroup></configSections><connectionStrings><add name="auxilogConnectionString"
			 connectionString="Data Source=SRV-DEV\DEV2008;Initial Catalog=****************************"
			 providerName="System.Data.SqlClient" /></connectionStrings><system.web><!--
            Définissez compilation debug="true" pour insérer des symboles de débogage dans la page compilée. Comme 
            ceci affecte les performances, définissez cette valeur sur true uniquement lors du développement.
        --><compilation debug="true"><assemblies><add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /><add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation><!--
            La section <authentication> permet de configurer le mode d’authentification de la sécurité utilisé par 
            ASP.NET pour identifier un utilisateur entrant. 
        --><authentication mode="Windows" /><customErrors mode="Off" /><!--<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"><error statusCode="403" redirect="NoAccess.htm" /><error statusCode="404" redirect="FileNotFound.htm" /></customErrors>
        --><pages><controls><add tagPrefix="asp"
					 namespace="System.Web.UI"
					 assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></controls></pages><httpHandlers><remove verb="*"
					path="*.asmx" /><add verb="*"
				 path="*.asmx"
				 validate="false"
				 type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /><add verb="*"
				 path="*_AppService.axd"
				 validate="false"
				 type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /><add verb="GET,HEAD"
				 path="ScriptResource.axd"
				 type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
				 validate="false" /></httpHandlers><httpModules><add name="ScriptModule"
				 type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></httpModules></system.web><system.codedom><compilers><compiler language="c#;cs;csharp"
					  extension=".cs"
					  warningLevel="4"
					  type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><providerOption name="CompilerVersion"
								value="v3.5" /><providerOption name="WarnAsError"
								value="false" /></compiler></compilers></system.codedom><system.webServer><validation validateIntegratedModeConfiguration="false" /><modules><add name="ScriptModule"
				 preCondition="integratedMode"
				 type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></modules><handlers><remove name="WebServiceHandlerFactory-Integrated" /><add name="ScriptHandlerFactory"
				 verb="*"
				 path="*.asmx"
				 preCondition="integratedMode"
				 type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /><add name="ScriptHandlerFactoryAppServices"
				 verb="*"
				 path="*_AppService.axd"
				 preCondition="integratedMode"
				 type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /><add name="ScriptResource"
				 preCondition="integratedMode"
				 verb="GET,HEAD"
				 path="ScriptResource.axd"
				 type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></handlers></system.webServer><system.serviceModel><!-- Contient les détails de chaque service mis en oeuvre. --><services><!-- Elément name: Spécifie l'espace de noms et la classe mettant en oeuvre notre unique service. --><service name="WCF.Services.WCF_Services"
					 behaviorConfiguration="WCF_ServiceBehavior"><!-- Elément endpoint: élément qui fournit aux applis clientes les infos pour communiquer avec notre service WCF_Services. --><!-- Pas besoin de spécifier l'adresse --><endpoint address=""
						  binding="basicHttpBinding"
						  contract="WCF.Services.WCF_IServices"></endpoint></service></services><behaviors><serviceBehaviors><behavior name="WCF_ServiceBehavior"><!-- A mettre à false une fois en pleine exploitation --><serviceMetadata httpGetEnabled="true" /><serviceDebug includeExceptionDetailInFaults="true" /></behavior></serviceBehaviors></behaviors></system.serviceModel></configuration>
 

 It would be wonderfull if someone could help me !

My best regards


Viewing all articles
Browse latest Browse all 7

Latest Images

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Vimeo 10.6.2 by Vimeo.com, Inc.

Vimeo 10.6.2 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.

Trending Articles


Mariquitas para colorear


Tiburon para colorear


Long Distance Relationship Tagalog Love Quotes


Tropa Quotes


Hugot Lines 2020 Patama : ML Edition


RE: Mutton Pies (mely)


Ang Nobela sa “From Darna to ZsaZsa Zaturnnah: Desire and Fantasy, Essays on...


EASY COME, EASY GO


Version 0.8.5 – Peb txhawb tus Lao heev


Hato lada ym dei namar ka jingpyrshah jong U JJM Nichols Roy (Bah Joy) ngin...





Latest Images

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.