Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In folder ..\Terrasoft.WebApp\ServiceModel create file VvtTwilioServiceHelperVvtTwilioServiceHelperService.svc and add the following code

    Code Block
    <% @ServiceHost Service = "Terrasoft.Configuration.VvtTwilioServiceHelperNamespace.VvtTwilioServiceHelper" Debug = "true" Language = "C#" %>

  2. In the files files ..\Terrasoft.WebApp\ServiceModel\http\services.config and  and ..\Terrasoft.WebApp\ServiceModel\https\services.config add add the following block <services>:

    Code Block
    <services>
        ...
            <service<service name="Terrasoft.Configuration.VvtTwilioServiceHelperNamespace.VvtTwilioServiceHelper">
             <endpoint       <endpoint name="VvtTwilioServiceHelperEndPoint"
                   address         address=""
                            bindingbinding="webHttpBinding"
                            behaviorConfigurationbehaviorConfiguration="RestServiceBehavior"
                            bindingNamespacebindingNamespace="http://Terrasoft.WebApp.ServiceModel"
                 contract           contract="Terrasoft.Configuration.VvtTwilioServiceHelperNamespace.VvtTwilioServiceHelper" 
            />
         <   </service>
    
    </services>

  3. In the file ..\Terrasoft.WebApp\Web.config add block<location> to section <configuration>:

    Code Block
    <configuration>
    
        ...
    
        <location<location path="ServiceModel/VvtTwilioServiceHelper.svc">
                <system<system.web>
                   <authorization>     <authorization>
                                <allow<allow users="*"  />
                      <  </authorization>
             <   </system.web>
    
        <</location>
    
        ...
    
    </configuration>

  4. In the file ..\Terrasoft.WebApp\Web.config change  attribute 'value' in the section<appSettings>:

    Code Block
    <configuration>
    
        ...
    
        <appSettings><appSettings>
    
            ...
                <add<add key="AllowedLocations" value value="[previous values];ServiceModel/VvtTwilioServiceHelper.svc"  />
    
            ...
    
        <</appSettings>
    
        ...
    
    </configuration>

  5. Reload the application in IIS

Configuration for .Net6

  1. Add the following block to the AnonymousRoutes block of the appsettings.json file

Code Block
"Terrasoft.Configuration.VvtTwilioServiceHelperNamespace.VvtTwilioServiceHelper": [
        "/ServiceModel/VvtTwilioServiceHelper.svc"
]

Add label