Archive

Posts Tagged ‘dotnet’

Error using Crystal Reports 2008 in ASP.NET application on 64bit server

August 13th, 2010 Yuriy No comments

If you're using Crystal Reports 2008 in your ASP.NET application, and after deploying to a 64bit server getting following error:

An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.

then switch your application to 32bit mode. In case of Windows 2003/IIS6 entire server will have to be switched, in case of Windows 2008/IIS7 a dedicated 32bit application pool can be established for your application.

WARP, UltraWebGrid and ScriptManager glitch in IE6 and IE7

July 16th, 2010 Yuriy No comments

This is probably a very obscure situation, but it happened to me, it could happen to someone else. Scenario: an ASP.NET page with Infragistics UltraWebGrid inside of a WARP panel. A button outside the WARP serves as a trigger for partial postback. First click on the button causes expected partial postback, but on the second click page does full postback and is screwed after that. The issue happens only in IE6/7, page works correctly in IE8.

Another condition - page contains ASP.NET AJAX ScriptManager control with ServiceReference path pointing to an ASMX WebService.

Turned out the issue was caused by project being left in debug mode (in web.config debug="true"). Which caused WebService page to be loaded with parameter "jsdebug" in query string. Which apparently IE6 and 7 didn't like very much. Switching to debug="false" in web.config solved the problem.

ASP.NET Chart Control is not rendering image

April 26th, 2010 Yuriy 2 comments

If you're using MS Chart Control for .NET Framework 3.5 SP1 (in .NET Framework 4.0 it comes as a part of a framework), you may experience a strange behavior when chart images aren't rendered on the page:

Chart image isn't rendering

If you're using HTTP Handler to serve chart images (image URL looks something like ".../ChartImg.axd?i=chart_24dae5cb1f024c4a89f4fe492f05cc59_0.png") missing mapping in IIS configuration could be to blame Read more...

Categories: ASP.NET Tags: , , , , ,

Using LINQ to bind flat data to Infragistics UltraWebTree

January 10th, 2010 Yuriy No comments

Often you have to operate with flattened data that in reality contains multiple levels of hierarchy. For example it can come as a result of several SQL JOIN statement and look like this:

In this example data consist of static root column, region, site, type and state. And the data has clearly defined hierarchy (e.g. Region "India" has site "Bangalore", site "Bangalore" has types "Application" and "Area", type "Application" has states "N/A" and "Testing").

To load this data into Infragistics UltraWebTree I put together a small procedure: Read more...

Categories: ADO.NET, ASP.NET, Infragistics, VB.NET Tags: , ,

Solution for “Could not load type System.Web.UI.ScriptReferenceBase from System.Web.Extensions” error

December 29th, 2009 Yuriy 1 comment

If your ASP.NET application worked fine in your Development environment, but after deploying it to staging or production crashes with error:

Could not load type System.Web.UI.ScriptReferenceBase from System.Web.Extensions

most likely it was compiled against .NET 3.5 SP1 but the target machine has original .NET 3.5 framework without SP1. The solution is download Service Pack 1 and install it on target server. Another possibility - compile the project against original .NET 3.5 framework.

Categories: ASP.NET Tags: , , ,