15,896,730 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by bristii (Top 3 by date)
bristii
7-Jun-21 16:27pm
View
Well that's true for a certain situation but in this case, the admin configures the rule from the front end and the system validates it based on the configuration.
Currently, we have different combinations of business logics that are configured from the front end as admin wanted that flexibility, that's the reason most of the rules were stored backend.
If everything is transferred to the front end system loses the flexibility of configuring and changing rules on the fly without making code changes.
bristii
11-Feb-21 19:12pm
View
Hi,
I have tried the steps, please note the application was developed in VS 2008 and now hosted at Win 2019 using Data Pool - dot net framework 2.0.
Adding BusinessObjects' tag was throwing an error.
Here is the snippet of the web config, when I click on the Report page worker process is crashing and the system forcing session timeout.
<configuration>
<configsections>
<sectiongroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectiongroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectiongroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectiongroup name="businessObjects">
<sectiongroup name="crystalReports">
<appsettings>
<connectionstrings>
<system.web>
<httpruntime maxrequestlength="2097151" enable="true" executiontimeout="360000">
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
<add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304">
<add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304">
<add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304">
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304">
<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304">
<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304">
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304">
<pages>
<controls>
<add tagprefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add tagprefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<httphandlers>
<remove verb="*" path="*.asmx">
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add ver
bristii
9-Feb-21 19:31pm
View
Hi,
The data sources are assigned to the subreport and it is working on the local machine and windows server with IIS 7, it is not working when hosted in IIS 10. I have also created a very basic crystal report application and hosted in IIS 10.0 and it is not working. I have two observations so far - the crystal report is not working (even though the run time crystal report engine and the dot net framework is installed) and also after the hosting system is randomly timing out - currently the session time out is set to 20.
Example:
if (!IsPostBack)
{
ReportDocument reportdocument = new ReportDocument();
reportdocument.Load(Server.MapPath("~/CrystalReport.rpt"));
UserInformation dsCustomers = new UserInformation();
using (OracleConnection con = new OracleConnection("Data Source=xxxxx.world;User Id=xxxx;Password=xxxxxxx;"))
{
con.Open();
OracleCommand cmd = new OracleCommand("select UserId, UserName,FirstName,LastName,Location from UserTable", con);
OracleDataAdapter da = new OracleDataAdapter(cmd);
da.Fill(dsCustomers, "UserInfo");
con.Close();
if (dsCustomers != null && dsCustomers.Tables["UserInfo"].Rows.Count > 0)
Label1.Text = dsCustomers.Tables["UserInfo"].Rows[0][2].ToString();
}
reportdocument.SetDataSource(dsCustomers.Tables["UserInfo"]);
CrystalReportViewer1.ReportSource = reportdocument;
}
Dataset:
<xs:schema id="UserInformation" targetnamespace="http://tempuri.org/UserInformation.xsd" xmlns:mstns="http://tempuri.org/UserInformation.xsd" xmlns="http://tempuri.org/UserInformation.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeformdefault="qualified" elementformdefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<datasource defaultconnectionindex="0" functionscomponentname="QueriesTableAdapter" modifier="AutoLayout, AnsiClass, Class, Public" schemaserializationmode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<connections>
<tables>
<sources>
<xs:element name="UserInformation" msdata:isdataset="true" msdata:usecurrentlocale="true" msprop:generator_userdsname="UserInformation" msprop:generator_datasetname="UserInformation">
<xs:complextype>
<xs:choice minoccurs="0" maxoccurs="unbounded">
<xs:element name="DataTable1" msprop:generator_usertablename="DataTable1" msprop:generator_rowdeletedname="DataTable1RowDeleted" msprop:generator_tableclassname="DataTable1DataTable" msprop:generator_rowchangedname="DataTable1RowChanged" msprop:generator_rowclassname="DataTable1Row" msprop:generator_rowchangingname="DataTable1RowChanging" msprop:generator_rowevargname="DataTable1RowChangeEvent" msprop:generator_rowevhandlername="DataTable1RowChangeEventHandler" msprop:generator_tablepropname="DataTable1" msprop:generator_tablevarname="tableDataTable1" msprop:generator_rowdeletingname="DataTable1RowDeleting">
<xs:complextype>
<xs:sequence>
<xs:element name="UserId" msprop:generator_usercolumnname="UserId" msprop:generator_columnpropnameinrow="UserId" msprop:generator_columnvarnameintable="columnUserId" msprop:generator_columnpropnameintable="UserIdColumn" type="xs:string" minoccurs="0">
<xs:element name="UserName" msprop:generator_usercolumnname="UserName" msprop:generator_columnpropnameinrow="UserName" msprop:generator_columnvarnameintable="columnUserName" msprop:generator_columnpropnameintable="UserNameColumn" type="xs:string" minoccurs="0">