Webservices in IIS [Answered]RSS

4 replies

Last post Dec 01, 2020 07:27 AM by samwu

  • Webservices in IIS

    Nov 23, 2020 02:13 AM|Roemesh|LINK

    Hi Expert,

    I am having webservices in IIS which needs to migrate to another server . what are the general dependency i have to take care . only have to migrate IIS to IIS 

    what does mean of web services in IIS  and how it is different from normal websites

    Roemesh

  • Re: Webservices in IIS

    Nov 23, 2020 07:30 AM|samwu|LINK

    Hi Roemesh,

    Roemesh

    what does mean of web services in IIS 

    First you need to know what a web service is, web services in IIS means to publish web services on iis.

    Roemesh

    how it is different from normal websites

    There is no necessary connection between them.

    Roemesh

    I am having webservices in IIS which needs to migrate to another server . what are the general dependency i have to take care . only have to migrate IIS to IIS 

    Do you mean you want to migrate one website to another? If so, you need to migrate these three files.

    1.administration.config 2.applicationHost.config 3.configEncKey.key 

    More information about how to migrate website to another you can refer to this link: https://stackoverflow.com/a/493373/13336642

    Best regards,

    Sam

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
  • Re: Webservices in IIS

    Nov 30, 2020 01:45 PM|Roemesh|LINK

    Hi Expert,

    I got WebService in IIS .Any specific purpose that it is being used in IIS and how to find its depedent application link on it

    Here is the webconfig file for it. How to understand link from it . Main Application, how to migrate this to new instance . Is it only iis to iis only? or we need to copy or link something else

    <?xml version="0.0" encoding="utf-8"?>

    <configuration>

      <configSections>

        <sectionGroup name="applicationSection">

          <section name="identityService" type="Bpf.Common.Mechanisms.Core.Service.ServiceConfigSection, Bpf.Common.Mechanisms.Core" />

          <section name="acquisitionWebServiceInternal" type="Bpf.Common.Mechanisms.Core.Service.InternalConfigSection, Bpf.Common.Mechanisms.Core" />

        </sectionGroup>

        <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=0.0.0.0, Culture=neutral, PublicKeyToken=1111111" requirePermission="false" />

        <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=200008 -->

      </configSections>

      <applicationSection>

        <identityService configSource="bin\Config\identityService.config" />

        <acquisitionWebServiceInternal configSource="bin\Config\acquisitionWebServiceInternal.config" />

      </applicationSection>

      <appSettings>

        <add key="log0net.Internal.Debug" value="false" />

      </appSettings>

      <connectionStrings configSource="bin\Config\connectionStrings.config" />

      <!--

        For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=205000.

     

        The following attributes can be set on the <httpRuntime> tag.

          <system.Web>

            <httpRuntime targetFramework="0.0.2" />

          </system.Web>

      -->

      <system.web>

        <compilation targetFramework="0.0.2" debug="false" />

        <httpRuntime targetFramework="0.0.2" />

        <httpCookies httpOnlyCookies="true" />

        <customErrors mode="Off" />

      </system.web>

      <system.webServer>

        <httpProtocol>

          <customHeaders>

            <add name="X-Frame-Options" value="DENY" />

            <add name="X-Content-Type-Options" value="nosniff" />

            <add name="X-Xss-Protection" value="0; mode=block" />

          </customHeaders>

        </httpProtocol>

        <modules runAllManagedModulesForAllRequests="true">

          <remove name="WebDAVModule" />

        </modules>

        <handlers>

          <remove name="ExtensionlessUrlHandler-Integrated-0.0" />

          <remove name="OPTIONSVerbHandler" />

          <remove name="TRACEVerbHandler" />

          <add name="ExtensionlessUrlHandler-Integrated-0.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv0.0" />

        </handlers>

      </system.webServer>

      <system.serviceModel>

        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

      </system.serviceModel>

      <runtime>

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v0">

          <dependentAssembly>

            <assemblyIdentity name="System.Xml.XPath.XDocument" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Xml.XmlSerializer" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Xml.XDocument" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="11111111 culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Threading.Timer" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.Caching.Abstractions" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.Caching.Memory" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Threading.Tasks.Parallel" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Threading" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Security.SecureString" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Security.Principal" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.ObjectModel" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Net.Requests" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Net.Primitives" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Net.NetworkInformation" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.2.0" newVersion="0.0.2.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Globalization.Extensions" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Globalization" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Dynamic.Runtime" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Diagnostics.Tools" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Diagnostics.StackTrace" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Diagnostics.Debug" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Diagnostics.Contracts" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Data.Common" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.2.0.0" newVersion="0.2.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.ComponentModel.EventBasedAsync" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.ComponentModel" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Collections" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Collections.Concurrent" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00.0" newVersion="0.0.00.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="00ad0fe0b2a0aeed" />

            <bindingRedirect oldVersion="0.0.0.0-00.0.0.0" newVersion="00.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Web.Http" publicKeyToken="00bf0850ad000e05" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-5.2.0.0" newVersion="5.2.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Net.Http" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.2.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="00bf0850ad000e05" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-5.2.0.0" newVersion="5.2.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Net.Sockets" culture="neutral" publicKeyToken="1111111" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="nunit.framework" publicKeyToken="2008cd05000000eb" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.02.0.0" newVersion="0.02.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Owin" publicKeyToken="00bf0850ad000e05" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.IdentityModel.Tokens.Jwt" publicKeyToken="00bf0850ad000e05" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00000.0550" newVersion="0.0.00000.0550" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="00bf0850ad000e05" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="00bf0850ad000e05" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Owin.Security.Jwt" publicKeyToken="00bf0850ad000e05" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Unity.Abstractions" publicKeyToken="0d02ff05e0ccc09f" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Win02.Primitives" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.IO.Compression" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Moq" publicKeyToken="09f090c09005e920" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.002.0" newVersion="0.0.002.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Web.Http.WebHost" publicKeyToken="00bf0850ad000e05" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-5.2.0.0" newVersion="5.2.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc0b00ffcd2ddd50" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.IdentityModel.Protocol.Extensions" publicKeyToken="00bf0850ad000e05" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.00000.0550" newVersion="0.0.00000.0550" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.Configuration" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.Options" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.DependencyInjection.Abstractions" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.Logging" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Polly" publicKeyToken="c8a0ffc0f8f825cc" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Memory" publicKeyToken="cc0b00ffcd2ddd50" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Buffers" publicKeyToken="cc0b00ffcd2ddd50" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="Microsoft.Extensions.Configuration.Binder" publicKeyToken="1111111" culture="neutral" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Web.Helpers" publicKeyToken="00bf0850ad000e05" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Web.WebPages" publicKeyToken="00bf0850ad000e05" />

            <bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Web.Mvc" publicKeyToken="00bf0850ad000e05" />

            <bindingRedirect oldVersion=00.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="dddddddd" culture="neutral" />

            <bindingRedirect oldVersion="020000" newVersion="0.0.0.0" />

          </dependentAssembly>

        </assemblyBinding>

      </runtime>

      <entityFramework>

        <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">

          <parameters>

            <parameter value="mssqllocaldb" />

          </parameters>

        </defaultConnectionFactory>

        <providers>

          <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />

        </providers>

      </entityFramework>

    </configuration>

    <!--ProjectGuid: AAAAAAA-->

  • Re: Webservices in IIS

    Nov 30, 2020 07:29 PM|Roemesh|LINK

    Hi Expert,

    I can see one cloud webservice is running in services .msc that needs migrate to the another server.. how it is invoking 

  • Re: Webservices in IIS

    Dec 01, 2020 07:27 AM|samwu|LINK

    Hi Roemesh,

    Roemesh

    Here is the webconfig file for it. How to understand link from it . Main Application, how to migrate this to new instance . Is it only iis to iis only? or we need to copy or link something else

    The links in web.config are used to explain the role of the current element, but some may have expired.

    Roemesh

    I can see one cloud webservice is running in services .msc that needs migrate to the another server.. how it is invoking 

    What cloud webservice are you using? Please describe your problem in detail. 

    Best regards,

    Sam

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.