Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8712

Re: CR for VS SP09 - Embedded images not showing in CrystalReportViewer

$
0
0

Interesting. My files end up in a subfolder of c:\Windows\Temp (I'm using Windows 7 64-bit). I wonder why they're different? You could use ProcMon to see where the files are going.

 

Here's my web.config file, with some password stuff removed. See if you can spot any differences that might be relevant:

 

<?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="businessObjects">

        <sectionGroup name="crystalReports">

          <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />

          <section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null" />

        </sectionGroup>

      </sectionGroup>

 

 

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

  <sectionGroup name="elmah">

      <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />

      <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />

      <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />

      <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />

    </sectionGroup></configSections>

  <businessObjects>

    <crystalReports>

      <crystalReportViewer>

<!--                <add key="ResourceURI" value="~/crystalreportviewers13" />-->

        <add key="ResourceURI" value="/crystalreportviewers13" />

        <add key="documentView" value="weblayout" />

        <add key="EnableTextClipping" value="true" />

      </crystalReportViewer>

      <rptBuildProvider>

        <add embedRptInResource="true" />

      </rptBuildProvider>

    </crystalReports>

  </businessObjects>

  <appSettings>

    <add key="CrystalImageCleaner-AutoStart" value="true" />

    <add key="CrystalImageCleaner-Sleep" value="60000" />

    <add key="CrystalImageCleaner-Age" value="120000" />

  </appSettings>

  <system.web>

    <compilation debug="true" targetFramework="4.5">

      <assemblies>

        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />

      </assemblies>

    </compilation>

    <httpRuntime targetFramework="4.5" maxRequestLength="1048576" />

    <authentication mode="Forms">

      <forms defaultUrl="~/Default.aspx" loginUrl="~/Account/Login.aspx" slidingExpiration="true" timeout="2880"></forms>

    </authentication>

    <pages>

      <namespaces>

        <add namespace="System.Web.Optimization" />

        <add namespace="Microsoft.AspNet.Identity" />

      </namespaces>

     

    <controls>

      <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />

    </controls></pages>

    <membership>

      <providers>

        <!--

        ASP.NET Membership is disabled in this template. Please visit the following link http://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template

        -->

        <clear />

      </providers>

    </membership>

    <profile>

      <providers>

        <!--

        ASP.NET Membership Profile is disabled in this template. Please visit the following link http://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template

        -->

        <clear />

      </providers>

    </profile>

    <roleManager>

      <!--

          ASP.NET Membership Role is disabled in this template. Please visit the following link http://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template

        -->

      <providers>

        <clear />

      </providers>

    </roleManager>

    <!--

            If you are deploying to a cloud environment that has multiple web server instances,

            you should change session state mode from "InProc" to "Custom". In addition,

            change the connection string named "DefaultConnection" to connect to an instance

            of SQL Server (including SQL Azure and SQL  Compact) instead of to SQL Server Express.

      -->

    <sessionState mode="InProc" customProvider="DefaultSessionProvider" timeout="45">

      <providers>

        <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />

      </providers>

    </sessionState>

    <httpHandlers>

      <!-- Temporarily replacing the CR image handler with our own version -->     

      <!-- <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />-->

    </httpHandlers>

    <httpModules>

      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />

      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />

      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />

    </httpModules>

  </system.web>

  <system.webServer>

    <security>

      <requestFiltering>

        <requestLimits maxAllowedContentLength="1073741824" />

      </requestFiltering>

    </security>

    <handlers>

      <!-- Temporarily replacing the CR image handler with our own version -->

      <!-- <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode,runtimeVersion4.0" />-->

 

 

      <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler*" type="WebReporting.Code.CrystalImageHandler, WebReporting, Version=1.0.0.0, Culture=neutral" preCondition="integratedMode" />

     

      <add name="websiteThemeImageHandler" verb="*" path="images/theme/*/theme.png" type="WebReporting.Code.WebsiteThemeImageHandler, WebReporting, Version=1.0.0.0, Culture=neutral" preCondition="managedHandler" />

    </handlers>

    <validation validateIntegratedModeConfiguration="false" />

    <modules>

      <remove name="FormsAuthenticationModule" />

    <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" /><add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" /><add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" /></modules>

  </system.webServer>

  <runtime>

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

      <dependentAssembly>

        <assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" />

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

      </dependentAssembly>

      <dependentAssembly>

        <assemblyIdentity name="Microsoft.AspNet.Identity.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />

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

      </dependentAssembly>

      <dependentAssembly>

        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />

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

      </dependentAssembly>

      <dependentAssembly>

        <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />

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

      </dependentAssembly>

      <dependentAssembly>

        <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />

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

      </dependentAssembly>

      <dependentAssembly>

        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />

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

      </dependentAssembly>

    </assemblyBinding>

  </runtime>

  <entityFramework>

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

      <parameters>

        <parameter value="v11.0" />

      </parameters>

    </defaultConnectionFactory>

    <providers>

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

    </providers>

  </entityFramework>

  <elmah>

    <!--

        See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for

        more information on remote access and securing ELMAH.

    -->

    <security allowRemoteAccess="true" />

  </elmah>

 

 

  <!-- NOTE: This section REALLY IS being used! VS or ReSharper might tell you it isn't,

       because nothing matches the path "elmah.axd", but it actually IS being used,

       and is CRITICAL TO SECURITY, so don't remove it!! -->

  <location path="elmah.axd" inheritInChildApplications="false">

    <system.web>

      <httpHandlers>

        <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />

      </httpHandlers>

      <authorization>

        <allow roles="DebugLogViewer" />

        <deny users="*" /> 

      </authorization>

    </system.web>

    <system.webServer>

      <handlers>

        <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />

      </handlers>

    </system.webServer>

  </location>

 

</configuration>


Viewing all articles
Browse latest Browse all 8712

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>