Default Unmodified Web.Config Files

Frequently asked questions and support articles for Prophet On-Premise hosted customers with their own servers.

Moderator: Prophet Support

Locked
User avatar
admin
Site Admin
Posts: 68
Joined: Mon Dec 04, 2017 2:40 pm

Default Unmodified Web.Config Files

Post by admin » Fri Jun 29, 2018 9:46 am

Default Unmodified Web.Config Files

Web.Config Files
  • Below I have included the most up-to-date Web.Config files that are installed by default. This article should only be used as a reference as not all Web.Config files will be the same after initial modification during the Prophet Server Install/upgrade
Admin Folder Web.Config File (Default Location: C:\inetpub\wwwroot\prophet\admin):

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <configSections>
    <section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  </configSections>
  <system.web>
    <httpRuntime requestValidationMode="2.0" />
    <!--  DYNAMIC DEBUG COMPILATION
          Set compilation debug="true" to insert debugging symbols (.pdb information)
          into the compiled page. Because this creates a larger file that executes
          more slowly, you should set this value to true only when debugging and to
          false at all other times. For more information, refer to the documentation about
          debugging ASP.NET files.
    -->
    <compilation defaultLanguage="vb" debug="true" targetFramework="4.0">
      <!--compilers>
        <compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".VB" compilerOptions="/define:Debug=True /define:Trace=True /imports:Microsoft.VisualBasic,System,System.Collections,System.Configuration,System.Data,System.Drawing,System.Web,System.Web.UI,System.Web.UI.HtmlControls,System.Web.UI.WebControls"/>
      </compilers>-->
      <assemblies>
        <!--<add assembly="Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->
        <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
    </compilation>
    <!--  CUSTOM ERROR MESSAGES
          Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. 
          Add <error> tags for each of the errors you want to handle.

          "On" Always display custom (friendly) messages.
          "Off" Always display detailed ASP.NET error information.
          "RemoteOnly" Display custom (friendly) messages only to users not running 
           on the local Web server. This setting is recommended for security purposes, so 
           that you do not display application detail information to remote clients.
    -->
    <!--
		<customErrors defaultRedirect="http://localhost/AdminPagesDev/DefaultError.aspx" mode="On" />
		<customErrors defaultRedirect="~/DefaultError.aspx" redirectMode="ResponseRewrite" mode="On" />
	<customErrors defaultRedirect="http://localhost/AdminPagesDev/DefaultError.aspx" mode="On" />
	-->
    
	
    <!--<customErrors mode="Off"/>-->
    <!--  AUTHENTICATION 
          This section sets the authentication policies of the application. Possible modes are "Windows", 
          "Forms", "Passport" and "None"

          "None" No authentication is performed. 
          "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to 
           its settings for the application. Anonymous access must be disabled in IIS. 
          "Forms" You provide a custom form (Web page) for users to enter their credentials, and then 
           you authenticate them in your application. A user credential token is stored in a cookie.
          "Passport" Authentication is performed via a centralized authentication service provided
           by Microsoft that offers a single logon and core profile services for member sites.
    -->
    <webServices>
      <protocols>
        <add name="HttpGet" />
        <add name="HttpPost" />
      </protocols>
      <soapExtensionImporterTypes>
        <!--<add type="Microsoft.Web.Services3.Description.WseExtensionImporter, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>-->
      </soapExtensionImporterTypes>
    </webServices>
    <authentication mode="Windows" />
    <!--  AUTHORIZATION 
          This section sets the authorization policies of the application. You can allow or deny access
          to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous 
          (unauthenticated) users.
    -->
    <authorization>
      <allow users="*" />
      <!-- Allow all users -->
      <!--  <allow     users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/>
                  <deny      users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/>
            -->
    </authorization>
    <!--  APPLICATION-LEVEL TRACE LOGGING
          Application-level tracing enables trace log output for every page within an application. 
          Set trace enabled="true" to enable application trace logging.  If pageOutput="true", the
          trace information will be displayed at the bottom of each page.  Otherwise, you can view the 
          application trace log by browsing the "trace.axd" page from your web application
          root. 
    -->
    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
    <!--  SESSION STATE SETTINGS
          By default ASP.NET uses cookies to identify which requests belong to a particular session. 
          If cookies are not available, a session can be tracked by adding a session identifier to the URL. 
          To disable cookies, set sessionState cookieless="true".
    -->
    <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
    <!--  GLOBALIZATION
          This section sets the globalization settings of the application. 
    -->
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    <xhtmlConformance mode="Legacy" />
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" buffer="false" enableViewState="false" enableSessionState="true" enableViewStateMac="false" validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never">
      <namespaces>
        <add namespace="Microsoft.VisualBasic" />
        <add namespace="System.Data" />
        <add namespace="System.Drawing" />
      </namespaces>
      <controls>
        <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
        <add tagPrefix="asp" assembly="System.Web.Extensions" namespace="System.Web.UI" />
      </controls>
    </pages>
  </system.web>
  <appSettings>
  <!--    <add key="BaseWebserviceURL" value="http://localhost/prophet/prophetwebservices/"/> -->
    
    <!--For POP and POP Silos, update the value below appropriately
    <add key="RegistrationBaseWebserviceURL" value="https://www.prophetondemand.com/prophet/prophetwebservices/"/>
	  <add key="RegistrationBaseWebserviceURL" value="http://localhost/" />
     -->
    
    <!--for testing   -->
    
    <!--<add key="RegistrationBaseWebserviceURL" value="http://192.168.111.177/"/>
    <add key="BaseWebserviceURL" value="http://192.168.111.177/"/>-->
    

    <!--Auto generated webreferences. Do not change-->
    <add key="LoginService.ProphetLoginService" value="https://www.prophetondemand.com/prophet/prophetwebservices/AvtProphet/ProphetLoginService.asmx"/>
    <add key="ProphetRegistrationLH.Registration" value="https://www.prophetondemand.com/prophet/prophetwebservices/AvtProphetRegistrationWS/Registration.asmx"/>
    <add key="ProphetConfiguration.ProphetConfiguration" value="http://localhost/AvtConfigWS/ProphetConfiguration.asmx"/>
    <add key="ProphetContactService.prophetcontactservice" value="http://localhost/avtprophet/prophetcontactservice.asmx"/>
    <add key="ProphetProductService.ProphetProductService" value="http://localhost/AvtProphet/ProphetProductService.asmx"/>
    <add key="ProphetService.ProphetService" value="http://localhost/avtprophet/ProphetService.asmx"/>
    <add key="UserManagementService.UserManagement" value="http://localhost/AvtProphetUserMgmtWS/UserManagement.asmx"/>
    <add key="ProphetAdminService.ProphetAdminService" value="https://www.prophetondemand.com/prophet/prophetWebServices/AvtProphet/ProphetAdminService.asmx"/>
    <add key="ProphetMobileService.prophetwebserviceproxy" value="http://www.prophetondemand.com/prophet/mobile/prophetwebserviceproxy.asmx"/>
    <add key="InternalServiceUserName" value="InternalServiceUserName" />
    <add key="InternalServiceDomainName" value="InternalServiceDomainName" />
    <add key="InternalServicePassword" value="InternalServicePassword" />
    <add key="ProphetSysRequirements" value="http://www.avidian.com/support#divtechspecs" />
    <add key="ProphetClientDownloadUrl" value="http://download.avidian.com/prophet/7.4/Prophet7Client.exe"/>
    <add key="ProphetUserGuideUrl" value="http://docs.avidian.com/UserGuide"/>
    <add key="ProphetClientVersion" value="7"/>
  
    <!--Keys for setPassword page-->
    <add key="querystringusername" value="u"/>
    <add key="querystringpassword" value="p"/>
    <add key="querystringuserredirect" value="r"/>
    
    <add key="100" value="http://www.avidian.com/installsteps"/>
    <add key="101" value="http://www.prophetondemand.com"/>
    <add key="102" value=""/>
    <!--Keys for setPassword page-->
  
  </appSettings>
  <system.webServer>
    <defaultDocument>
      <files>
        <add value="login.aspx" />
      </files>
    </defaultDocument>
  </system.webServer>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IInternalService">
          <!--<security mode="Transport" >-->
            <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Basic" />
          </security>
        </binding>
      </basicHttpBinding> 
    </bindings>
    <client>
      <endpoint address="http://localhost/prophet/prophetwebservices/AvtInternalService/AvtInternalService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IInternalService" contract="InternalServiceReference.IInternalService" name="BasicHttpBinding_IInternalService" />
    </client>
  </system.serviceModel>
</configuration>
Mobile Folder Web.Config File (Default Location: C:\inetpub\wwwroot\prophet\mobile):

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <section name="PodMobileWeb.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
  </configSections>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <appSettings>
    <remove key="IsProphetOnPremise" />

    <!--Production
    <add key="ServiceUrl" value="http://localhost/prophet/prophetwebservices/AvtMobileWS/"/>-->

    <add key="ServiceUrl" value="http://localhost/AvtMobileWS2/" />
    <add key="IsProphetOnPremise" value="false" />
    <add key="ServiceUrlAuth" value="http://localhost/AvtMobileWS2/" />
    <!-- testing    
    <add key="ServiceUrlAuth" value="http://localhost/AvtMobileWS2/" />   
    
    -->
  </appSettings>
  <system.webServer>
    <defaultDocument>
      <files>
        <add value="login.htm" />
      </files>
    </defaultDocument>
  </system.webServer>
  <applicationSettings>
    <PodMobileWeb.Properties.Settings>
      <setting name="Prophet_Application_ProphetWebService_AvtMobile" serializeAs="String">
        <value>https://www.prophetondemand.com/prophet/prophetWebServices/AvtMobileWS/AvtMobile.asmx</value>
      </setting>
    </PodMobileWeb.Properties.Settings>
  </applicationSettings>
</configuration>
ProphetWebservices Folder Web.Config File (Default Location: C:\inetpub\wwwroot\prophet\prophetwebservices):

Code: Select all

<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
	<configSections>
		<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
			<section name="My.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
		</sectionGroup>
	</configSections>
	<appSettings>
		<!--<add key="SyncEngineDisabled" value="False" />-->
		<add key="SQLConnectionString" value="server=localhost.;database=Avidian;user=avtuser;password=password01!"/><add key="IsProphetOnPremise" value="True"/><add key="SyncEngineDisabled" value="False"/></appSettings>
	<!--
    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

    The following attributes can be set on the <httpRuntime> tag.
      <system.Web>
        <httpRuntime targetFramework="4.5" />
      </system.Web>
  -->
	<system.web>
		<customErrors mode="Off"/>
		<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions 
            where data loss can occur. 
            Set explicit="true" to force declaration of all variables.
        -->
		<compilation debug="true" strict="false" explicit="true" targetFramework="4.5">
			<assemblies>
				<add assembly="System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Web.RegularExpressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
			</assemblies>
		</compilation>
		<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
			<namespaces>
				<clear/>
				<add namespace="System"/>
				<add namespace="System.Collections"/>
				<add namespace="System.Collections.Specialized"/>
				<add namespace="System.Configuration"/>
				<add namespace="System.Text"/>
				<add namespace="System.Text.RegularExpressions"/>
				<add namespace="System.Web"/>
				<add namespace="System.Web.Caching"/>
				<add namespace="System.Web.SessionState"/>
				<add namespace="System.Web.Security"/>
				<add namespace="System.Web.Profile"/>
				<add namespace="System.Web.UI"/>
				<add namespace="System.Web.UI.WebControls"/>
				<add namespace="System.Web.UI.WebControls.WebParts"/>
				<add namespace="System.Web.UI.HtmlControls"/>
			</namespaces>
		</pages>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="Windows"/>
		<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
	</system.web>
	<applicationSettings>
		<My.Settings>
			<!--<setting name="POD_POLLING" serializeAs="String">
        <value>5000|3|300</value>
      </setting>-->
			<setting name="MaxLoginRetries" serializeAs="String">
				<value>5</value>
			</setting>
		</My.Settings>
	</applicationSettings>
	<connectionStrings/>
</configuration>

Hidden Content
This board requires you to be registered and logged-in to view hidden content.

Locked
  • Similar Topics
    Replies
    Views
    Last post
  • How Do I Re-Register Prophet's DLL Files?
    by admin » Sat Mar 10, 2018 2:16 pm » in FAQ
    0 Replies
    121 Views
    Last post by admin
    Sat Mar 10, 2018 2:16 pm
  • How to truncate Avidian SQL log files
    by admin » Wed Jun 27, 2018 12:16 pm » in Prophet On-Premise Server Support
    0 Replies
    73 Views
    Last post by admin
    Wed Jun 27, 2018 12:16 pm