[system.webServer]
        [validation validateIntegratedModeConfiguration="false"/]
        [modules]
            [remove name="ScriptModule"/]
            [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]
        [serviceHostingEnvironment aspNetCompatibilityEnabled="true"/]
        [services]
            [service name="OfficeBeacon.Service1" behaviorConfiguration="OfficeBeacon.Service1Behavior"]
                [endpoint address="" binding="webHttpBinding" contract="OfficeBeacon.IService1" behaviorConfiguration="WebHttpBehavior"]
                    [identity]
                          [dns value="localhost"/]
                    [/identity]
                [/endpoint]
                [endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/]
            [/service]
        [/services]
        [behaviors]
            [serviceBehaviors]
                [behavior name="OfficeBeacon.Service1Behavior"]
                    [serviceMetadata httpGetEnabled="true"/]
                    [serviceDebug includeExceptionDetailInFaults="true"/]
                [/behavior]
            [/serviceBehaviors]
            [endpointBehaviors]
                [behavior name="WebHttpBehavior"]
                [webHttp/]
                [/behavior]
            [/endpointBehaviors]
        [/behaviors]
    [/system.serviceModel]
No comments:
Post a Comment