I have a web application that has crystal imbedded in it. Microsoft recommended adding this code to the web.config
<businessObjects>
<crystalReports>
<printControl>
<add key="url" value="http//myserver/Prin tControl.c ab" />
</printControl>
</crystalReports>
</businessObjects>
I can't figure out where in the web.config I add it... I have tried in several sections.. I can't get it to run.
Here is my current web.config
<?xml version="1.0"?><configurat ion>
<configSections>
<sectionGroup name="system.web.extension s" type="System.Web.Configura tion.Syste mWebExtens ionsSectio nGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35">
<sectionGroup name="scripting" type="System.Web.Configura tion.Scrip tingSectio nGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35">
<section name="scriptResourceHandle r" type="System.Web.Configura tion.Scrip tingScript ResourceHa ndlerSecti on, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35" requirePermission="false" allowDefinition="MachineTo Applicatio n"/>
<sectionGroup name="webServices" type="System.Web.Configura tion.Scrip tingWebSer vicesSecti onGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35">
<section name="jsonSerialization" type="System.Web.Configura tion.Scrip tingJsonSe rializatio nSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35" requirePermission="false" allowDefinition="Everywher e"/>
<section name="profileService" type="System.Web.Configura tion.Scrip tingProfil eServiceSe ction, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35" requirePermission="false" allowDefinition="MachineTo Applicatio n"/>
<section name="authenticationServic e" type="System.Web.Configura tion.Scrip tingAuthen ticationSe rviceSecti on, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35" requirePermission="false" allowDefinition="MachineTo Applicatio n"/>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="printControl" type="System.Configuration .NameValue SectionHan dler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089, Custom=null" />
</sectionGroup>
</sectionGroup>
<section name="roleService" type="System.Web.Configura tion.Scrip tingRoleSe rviceSecti on, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35" requirePermission="false" allowDefinition="MachineTo Applicatio n"/></sect ionGroup>< /sectionGr oup></sect ionGroup>
</configSections>
<connectionStrings>
<add name="OCTPRODConnectionStr ing" connectionString="Data Source=blah;Initial Catalog=blah;Persist Security Info=True;User ID=blabla;Password=blah" providerName="System.Data. SqlClient" />
</connectionStrings>
<system.web>
<!-- 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">
<assemblies>
<!--<add assembly="CrystalDecisions .Shared, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>-- >
<!--<add assembly="CrystalDecisions .ReportSou rce, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>-- >
<!--<add assembly="CrystalDecisions .Enterpris e.Framewor k, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .Enterpris e.Desktop. Report, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .ReportApp Server.Con trollers, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>-- >
<!--<add assembly="CrystalDecisions .ReportApp Server.Cli entDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/>-- >
<!--<add assembly="CrystalDecisions .Enterpris e.InfoStor e, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>-- >
<!--<add assembly="CrystalDecisions .Enterpris e.Viewing. ReportSour ce, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .ReportApp Server.Cli entDoc, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/>-- ><!--
<add assembly="CrystalDecisions .Enterpris e.InfoStor e, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/>-- >
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="System.Web.Servi ces, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="System.Configura tion, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.Directory Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.Directory Services.P rotocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.Enterpris eServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.ServicePr ocess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.Windows.F orms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="System.Web.Regul arExpressi ons, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<!--<add assembly="Microsoft.Report Viewer.Web Forms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="Microsoft.Report Viewer.Com mon, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/><a dd assembly="CrystalDecisions .Enterpris e.Framewor k, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/>-- >
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="System.Web.Exten sions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="System.Data.Data SetExtensi ons, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="CrystalDecisions .Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .ReportSou rce, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .CrystalRe ports.Engi ne, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<!--<add assembly="CrystalDecisions .Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .ReportSou rce, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .CrystalRe ports.Engi ne, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521 E1304"/>
<add assembly="CrystalDecisions .ReportApp Server.Cli entDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/>
<add assembly="CrystalDecisions .Enterpris e.Framewor k, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/>
<add assembly="CrystalDecisions .Enterpris e.InfoStor e, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/>-- >
<add assembly="CrystalDecisions .ReportApp Server.Cli entDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/><a dd assembly="CrystalDecisions .Enterpris e.Framewor k, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/><a dd assembly="CrystalDecisions .Enterpris e.InfoStor e, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/></ 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 mode="RemoteOnly"/>
<!-- 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.
-->
<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="tcp ip=127.0.0 .1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_C onnection= 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"/>
<httpHandlers>
<add verb="GET" path="CrystalImageHandler. aspx" type="CrystalDecisions.Web .CrystalIm ageHandler , CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/>
<!--<add verb="GET" path="CrystalImageHandler. aspx" type="CrystalDecisions.Web .CrystalIm ageHandler , CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304"/>-- >
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Se rvices.Scr iptHandler Factory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Se rvices.Scr iptHandler Factory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers. ScriptReso urceHandle r, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/></ httpHandle rs>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Exten sions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.W ebControls " assembly="System.Web.Exten sions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/></ controls>< /pages>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers. ScriptModu le, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/></ httpModule s></system .web>
<location allowOverride="true" inheritInChildApplications ="true">
<appSettings>
<add key="CrystalImageCleaner-A utoStart" value="true" />
<add key="CrystalImageCleaner-S leep" value="60000" />
<add key="CrystalImageCleaner-A ge" value="120000" />
</appSettings>
</location>
<system.webServer><handler s>
<remove name="WebServiceHandlerFac tory-Integ rated"/>
<remove name="ScriptHandlerFactory "/>
<remove name="ScriptHandlerFactory AppService s"/>
<remove name="ScriptResource"/><ad d name="CrystalImageHandler. aspx_GET" verb="GET" path="CrystalImageHandler. aspx" type="CrystalDecisions.Web .CrystalIm ageHandler , CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304" preCondition="integratedMo de"/>
<add name="ScriptHandlerFactory " verb="*" path="*.asmx" preCondition="integratedMo de" type="System.Web.Script.Se rvices.Scr iptHandler Factory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
<add name="ScriptHandlerFactory AppService s" verb="*" path="*_AppService.axd" preCondition="integratedMo de" type="System.Web.Script.Se rvices.Scr iptHandler Factory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMo de" type="System.Web.Handlers. ScriptReso urceHandle r, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/></ handlers>< validation validateIntegratedModeConf iguration= "false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandl er" type="System.Web.Handlers. ScriptModu le, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/></ modules></ system.web Server>
<system.codedom>
<compilers>
<compiler language="vb;vbs;visualbas ic;vbscrip t" extension=".vb" type="Microsoft.VisualBasi c.VBCodePr ovider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/></compiler> </compiler s></system .codedom>
<runtime>
<assemblyBinding xmlns="urn:schemas-microso ft-com:asm .v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extension s" publicKeyToken="31bf3856ad 364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0. 0" newVersion="3.5.0.0"/></de pendentAss embly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extension s.Design" publicKeyToken="31bf3856ad 364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0. 0" newVersion="3.5.0.0"/></de pendentAss embly></as semblyBind ing>
</runtime>
</configuration>
PicGirl100
Asked: 2010-08-28
Say after the </runtime>
mlmcc