我在两个项目中有接下来的两个web.config,我想创建一个引用这两个项目的外部文件。我该怎么做?。我想这样做是为了避免每次我想在真实环境中部署应用程序时重启应用程序。所以我需要帮助。
在一个项目中,我将其称为webGUI.config:
<?xml version="1.0"?>
<!--
Para obtener más información sobre cómo configurar la aplicación de ASP.NET, visite
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="ReportServerUrl" value="http://srvdes01/reportserver"/>
<add key="ReportDirectory" value="/ReportsGlobalNet3.0"/>
<add key="ReportUser" value="XXXXX"/>
<add key="ReportPass" value="XXXXXXX"/>
<add key="ReportDomain" value="SRVDES01"/>
<add key="ReportingSer.ReportExecution2005" value="http://srvdes01/ReportServer/ReportExecution2005.asmx"/>
</appSettings>
<system.webServer>
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</handlers>
<defaultDocument>
<files>
<clear />
<add value="login.aspx" />
</files>
</defaultDocument>
</system.webServer>
<system.web>
<authentication mode="Windows">
<!-- timeout en minutos-->
<!--<forms loginUrl="login.aspx" name="Auten.ASPXAUTH" protection="All" timeout="100" path="/"/>-->
</authentication>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
<assemblies>
<add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<pages styleSheetTheme="estilo">
<namespaces>
<add namespace="Microsoft.VisualBasic"/>
<add namespace="System.Data"/>
<add namespace="System.Drawing"/>
<add namespace="GlobalControl"/>
<add namespace="AjaxControlToolkit"/>
</namespaces>
<controls>
<add tagPrefix="global" namespace="GlobalControl" assembly="GlobalControl"/>
<add tagPrefix="rsweb" namespace="Microsoft.Reporting.WebForms" assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</controls>
</pages>
</system.web>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
<behaviors>
<endpointBehaviors>
<behavior name="ServicioAspNetAjaxBehavior">
<enableWebScript />
</behavior>
<behavior name="ServicioAuditoriaClienteAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
</behaviors>
<services>
<service name="ServicioRRHHCliente">
<endpoint address="" behaviorConfiguration="ServicioAspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webHttpOptimized" contract="ServicioRRHHCliente"/>
</service>
<service name="ServicioExportacionCliente">
<endpoint address="" behaviorConfiguration="ServicioAspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webHttpOptimized" contract="ServicioExportacionCliente"/>
</service>
<service name="ServicioComunCliente">
<endpoint address="" behaviorConfiguration="ServicioAspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webHttpOptimized" contract="ServicioComunCliente"/>
</service>
<service name="ServicioSeguridadCliente">
<endpoint address="" behaviorConfiguration="ServicioAspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webHttpOptimized" contract="ServicioSeguridadCliente"/>
</service>
<service name="ServicioOperacionesCliente">
<endpoint address="" behaviorConfiguration="ServicioAspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webHttpOptimized" contract="ServicioOperacionesCliente"/>
</service>
<service name="ServicioAuditoriaCliente">
<endpoint address="" behaviorConfiguration="ServicioAuditoriaClienteAspNetAjaxBehavior"
binding="webHttpBinding" contract="ServicioAuditoriaCliente" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536000" maxBufferPoolSize="524288" maxReceivedMessageSize="65536000"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<webHttpBinding>
<binding name="webHttpOptimized" sendTimeout="00:15:00" maxBufferSize="65536"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
transferMode="Streamed">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</webHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:81/Buscador/ServicioBuscador.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpoint"
contract="ServicioBuscador.IServicioBuscador" name="BasicHttpEndpoint" />
<endpoint address="http://localhost:81/Validador/ServicioValidador.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpoint"
contract="ServicioValidador.IServicioValidador" name="BasicHttpEndpoint" />
<endpoint address="http://localhost:81/Auditoria/ServicioAuditoria.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpoint"
contract="GlobalNetAuditoriaSer.IServicioAuditoria" name="BasicHttpEndpoint" />
<endpoint address="http://localhost:81/Comun/ServicioComun.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpoint"
contract="GlobalNetComunSer.IServicioComun" name="BasicHttpEndpoint" />
<endpoint address="http://localhost:81/Exportacion/ServicioExportacion.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpoint"
contract="GlobalNetExportSer.IServicioExportacion" name="BasicHttpEndpoint" />
<endpoint address="http://localhost:81/Operaciones/ServicioOperaciones.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpoint"
contract="GlobalNetOperacionesSer.IServicioOperaciones" name="BasicHttpEndpoint" />
<endpoint address="http://localhost:81/RRHH/ServicioRRHH.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpoint"
contract="GlobalNetRRHHSer.IServicioRRHH" name="BasicHttpEndpoint" />
<endpoint address="http://localhost:81/Seguridad/ServicioSeguridad.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpoint"
contract="GlobalNetSecuritySer.IServicioSeguridad" name="BasicHttpEndpoint" />
</client>
</system.serviceModel>
</configuration>
另一个叫做webServices.config:
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation strict="false" explicit="true" targetFramework="4.0"/>
</system.web>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
<bindings>
<basicHttpBinding>
<binding name="BasicHttpEndpointBinding" maxBufferSize="65536000"
maxReceivedMessageSize="65536000">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="TransportCredentialOnly" />
</binding>
</basicHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="WCFWindowsBasicHttpBinding.Service1Behavior"
name="GlobalNet.Services.ServicioSeguridad">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding"
name="BasicHttpEndpoint" contract="GlobalNet.Services.IServicioSeguridad"/>
</service>
<service behaviorConfiguration="WCFWindowsBasicHttpBinding.Service1Behavior"
name="GlobalNet.Services.ServicioRRHH">
<endpoint binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding"
name="BasicHttpEndPoint" contract="GlobalNet.Services.IServicioRRHH" />
</service>
<service behaviorConfiguration="WCFWindowsBasicHttpBinding.Service1Behavior"
name="GlobalNet.Services.ServicioOperaciones">
<endpoint binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding"
name="BasicHttpEndpoint" contract="GlobalNet.Services.IServicioOperaciones" />
</service>
<service behaviorConfiguration="WCFWindowsBasicHttpBinding.Service1Behavior"
name="GlobalNet.Services.ServicioExportacion">
<endpoint binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding"
name="BasicHttpEndPoint" contract="GlobalNet.Services.IServicioExportacion" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WCFWindowsBasicHttpBinding.Service1Behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
我该怎么做?你能帮我创建一个引用这两个的web.config吗?如何避免在部署应用程序时重新启动应用程序。非常感谢