Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
438 views
in Technique[技术] by (71.8m points)

c# - Crystal Report with Visual studio 2013 aspnet_client/system_web/4_6_81

I am totally confused with behavior of SAP Crystal Report which i am using with Visual Studio 2013. When I run my ASP.NET Web Application, I am getting following folder path aspnet_client/system_web/4_6_81/crystalreportviewers13/ instead of C:inetpubwwwrootaspnet_clientsystem_web4_0_30319crystalreportviewers13. I do not have any such folder found in my IIS 7.5 C:inetpubwwwrootaspnet_clientsystem_web). Can you please help me on this? due to this i am not able to see the report.

Please check the below screenshot for the refernce enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The most robust solution is to create a virtual directory under your application in IIS:

  1. Go to IIS, Right click your application

  2. Add virtual directory Set the physical path to C:inetpubwwwrootaspnet_clientsystem_web4_0_30319crystalreportviewers13.

  3. Set the virtual Path to /crystalreportviewers13

  4. In your web.config file add the following after the root element:

    <configSections>
      <sectionGroup name="businessObjects">
        <sectionGroup name="crystalReports">
          <section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null" />
          <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
        </sectionGroup>
      </sectionGroup>
    </configSections>
    
  5. Then later on in your web.config file, add:

    <businessObjects>
      <crystalReports>
        <rptBuildProvider>
          <add embedRptInResource="true" />
        </rptBuildProvider>
        <crystalReportViewer>
          <add key="ResourceUri" value="~/crystalreportviewers13" />
        </crystalReportViewer>
      </crystalReports>
    </businessObjects>
    

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...