zoukankan      html  css  js  c++  java
  • FastReport的WCF托管到Windows服务的配置文件

    官网上找到的,还没有来得及研究,有时间了再研究。

    <?xml version="1.0"?>
    <configuration>
     <appSettings>
     <!-- path to folder with reports -->
     <add key="FastReport.ReportsPath" value="C:Program filesFastReportsFastReport.NetDemosWCF" />
     <!-- name of connection string for reports -->
     <add key="FastReport.ConnectionStringName" value="FastReportDemo" />
     <!-- Comma-separated list of available formats PDF,DOCX,XLSX,PPTX,RTF,ODS,ODT,MHT,CSV,DBF,XML,TXT,FPX.
     You can delete any or change order in this list. -->
     <add key="FastReport.Gear" value="PDF,DOCX,XLSX,PPTX,RTF,ODS,ODT,MHT,CSV,DBF,XML,TXT,FPX" />
     </appSettings>
     <connectionStrings>
     <add name="FastReportDemo" connectionString="XsdFile=;XmlFile=C:Program FilesFastReportsFastReport.NetDemosReports
    wind.xml"/>
     </connectionStrings>
     <system.web>
     <compilation debug="true" />
     <membership defaultProvider="ClientAuthenticationMembershipProvider">
     <providers>
     <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
     </providers>
     </membership>
     <roleManager defaultProvider="ClientRoleProvider" enabled="true">
     <providers>
     <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
     </providers>
     </roleManager>
     </system.web>
     <!-- When deploying the service library project, the content of the config file must be added to the host's
     app.config file. System.Configuration does not support config files for libraries. -->
     <system.serviceModel>
     <services>
     <service behaviorConfiguration="FastReportServiceBehavior" name="FastReport.Service.ReportService">
     <endpoint address="" binding="wsHttpBinding" contract="FastReport.Service.IFastReportService">
     <identity>
     <dns value="localhost" />
     </identity>
     </endpoint>
     <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
     <host>
     <baseAddresses>
     <add baseAddress="http://localhost:8732/FastReportService/" />
     </baseAddresses>
     </host>
     </service>
     </services>
     <behaviors>
     <serviceBehaviors>
     <behavior name="FastReportServiceBehavior">
     <serviceMetadata httpGetEnabled="True" />
     <serviceDebug includeExceptionDetailInFaults="True" />
     </behavior>
     </serviceBehaviors>
     </behaviors>
     <bindings>
     <basicHttpBinding>
     <binding messageEncoding="Mtom"
     closeTimeout="00:02:00" openTimeout="00:02:00"
     receiveTimeout="00:10:00" sendTimeout="00:02:00"
     maxReceivedMessageSize="67108864" maxBufferSize="65536"
     transferMode="Streamed">
     <security mode="None">
     <transport clientCredentialType="None" />
     </security>
     </binding>
     </basicHttpBinding>
     </bindings>
     </system.serviceModel>
     <startup>
     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
     </startup>
    </configuration>


    我的前几篇关于FastReport WCF服务的博客:

  • 相关阅读:
    POJ 3710 Christmas Game#经典图SG博弈
    POJ 2599 A funny game#树形SG(DFS实现)
    POJ 2425 A Chess Game#树形SG
    LeetCode Array Easy 122. Best Time to Buy and Sell Stock II
    LeetCode Array Easy121. Best Time to Buy and Sell Stock
    LeetCode Array Easy 119. Pascal's Triangle II
    LeetCode Array Easy 118. Pascal's Triangle
    LeetCode Array Easy 88. Merge Sorted Array
    ASP.NET MVC 学习笔记之 MVC + EF中的EO DTO ViewModel
    ASP.NET MVC 学习笔记之面向切面编程与过滤器
  • 原文地址:https://www.cnblogs.com/james1207/p/3301745.html
Copyright © 2011-2022 走看看