I have this web application that uses crystal reports for VS2010. I have crystal reports service pack 2 installed. What i don't understand is that everything works fine in the development machine however, once i publish my report to the production server, all the textboxes that have more than one word in them are disaligned. I mean, the next word scrolls down. This looks really bad if its a heading row, as the heading start overlapping the details rows.
I understand that it has something to do with the crystal report versions, as suggested in other discussions. However i have checked the crpe32.dll version on this location C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86 and it is 13.0.0.99 in the development machine as well as the production machine. So technically, the version is 13.0.0.99
Here is the page directive of the ASP.NET page that has the crystal report viewer in it. and presumeably the version i am refering is 13.0.2. I don't know if it is the right way of doing it or not.
<%# Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
but i am not having the headings aligned properly. Can somebody help please?
I should have been like this
While it shows like this
Related
I'm having trouble migrating the DevExpress elements of an ASP web application from one server to another. I basically copied the files and database over into a new server location and made some adjustments to the web.config file to get it connected to the new database. That got most of the site working and pulling data correctly, but the DevExpress pieces are coming up as undefined.
As far as I can tell, the references in the web.config file and on the respective pages is correct and the dll files themselves are listed in the bin directory so I'm rather stumped as to why they aren't working.
Web.config sample
<compilation debug="true" strict="false" explicit="true">
<assemblies>
...
<add assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />
<add assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />
... and so on
Dashboard.aspx sample
...at top of page...
<%# Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
This was an inherited project, so I haven't tried rebuilding the application in case my machine imports my settings into the project (example: it was made in VS 2008, and I'm running VS Community 2015).
Are there any quirks to making a transfer like this that I just don't know about or has anyone else experienced this issue? Any help would be appreciated.
Thanks
The first thing that comes to mind is that version 10.1 of DevExpress is a very old version, released in Aug '10. It does not support .Net 4, so you'll need to make sure the application pool for IIS running this web app is .NET CLR Version 2.0.
Note that if you are running in Windows Server 2012, it's actually tricky to install .Net 3.5. Google how to do it if you need to.
The next to check of course if all of the dll's referenced are in the Bin folder.
Could you write the error message you are getting? If it does not have any extra information, perhaps the event viewer of the server (under windows logs/applications) has a more detailed description.
I have a asp.net website with c# code behind and using visual studio 2010.
I added a reference to a com object "Microsoft Excel 14.0 Object Library" to manage excel files in my website. I works well in debug, on my computer where I have excel installed, but when I publish the website and deploy it on my server, it crashes because it does not find the reference (excel is not installed there). It crashes at the reference in the web.config file
<assemblies>
<add assembly="office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>
<add assembly="Microsoft.Vbe.Interop, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>
</assemblies>
Is there a way to make that reference local, like a dll, so that the website is able to use it even if excel is not installed?
There's a notion of PIA assemblies for Microsoft Office libraries. Basic idea is the following: to build solution you need to reference only PIA assemblies, that reference real office assemblies themselves. They may be distributed with the solution and be built correctly on different PCs even without office installed. I don't know though would it run (probably would, but any excel-related function will make it crash).
But you can't use office applications on PCs without office. It just doesn't deploy along. So one solution would be to check if office is installed and dynamically load the necessary assembly. Ideally, excel module should be isolated from the rest of the application.
There are several libraries using only a DLL file, like EPPlus
I developed a web app that creates crystal reports with VS Crystal report version 13.0.2000.0. I tried publishing it and putting it in the wwwroot folder (IIS7). When I run it, it give me this error:
Parse Error Message: Could not load file or assembly 'CrystalDescision.Web, Version 13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file.
Source Error:
<% Register Assembly="CrystalDecision.Web Version=13.0.2000.0, Culture=Neutral, PublicKeyToken=692fbea5521e1304"
When I run the command %windir%\assembly on the server, the version is 10.5.3700.
My questions is which crystal report should I download/buy to upgrade my server crystal reports? Because there was many links on the SAP website (ie. Crystal Report, Crystal Report Server, Crystal Report Viewer, and more).
Have you installed the Crystal Reports 2010 runtime (Redist Installation package) on the computer that you are having trouble? The 13.0 version is CR for VS 2010 and you can download the runtime here
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/22083
It is all about different version.
Remove the references to Crystal*.* and right click on References to add the correct ones
Assemblies, Extensions
You will see everything installed on you computer environment.
Select the ones with the same version that is on your web.config
Make sure the versions on web.config match the whole fu..ing s.it
This is a pain on the ass brought to you by Crystal Reports !
I have downloaded the sample from Here i have crystal reports 2008 (12.0.0.549) and vs 2010 is installed. I am getting the following error.
Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Can any one guide how to add missing assembly
Install the Crystal Reports 2010 and ensure that the you've NOT got a "Client Profile" selected under Target Framework in the Applicaiton tab under the projecst Propertiese
It didn't seem to work for me with a Client Profile.
Note: Cyrstal reports can still be 'designed' with CR2008.
Some more info on the SAP forum here.
I've got trouble getting Intellisense to work in ASP.NET source view.
For example, I register the Telerik RadControls DLL with a tag prefix, as it says in the samples:
<%# Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
But when typing <telerik: no intellisense appears.
Also, after adding a couple of controls, they get highlighted with the error "Unrecognized tag prefix or device filter 'telerik'". This is pretty annoying and I can't seem to find a solution.
Btw, the webpage itself works - its just the Intellisense that doesn't.
Intellisense may fail for various reasons so I am going to ask you a few questions:
Does design time work as expected?Sometimes if the design-time assembly is not loaded intellisense may fail.
Do you work on a remote drive by any chance? We have found issues with that as well. The remote drive needs to be added as a trusted location for assemblies.
If you are using an older version of RadControls you need to add reference to Telerik.Charting.dll as well. Which version do you use?
Finally we have found that upgrading to Visual Studio 2008 SP1 solves lots of problems. I strongly recommend you upgrade if not already.
Does your entire project compile? Intellisense often breaks if there are compile errors elsewhere (even compile errors in other pages).
ctrl + space is a shortcut to trigger it ...
probably won't help but at least you will know that the problem is probably with intellisense not being able to find its data.
do you get intellisense for other classes still?
I noticed a general problem with intellisense in VS2008 (with SP1).
As they started supporting JS intellisense a lot of things became slower - or not working sometimes.
I know the describe problem - not only with telerik controls, I also know it from other (and my own) control libraries.
Most of the time a rebuild - close of all pages, and restart of VS solves the problems for me.
My special problem (I guess it matters) is that I use a German release of VS2008.
But also other things rule (from my experiences):
The size of the project (somewhere above 50 pages things become worse).
The time I had to kill an app while debuging :)
General the time (in a session) I work on a project.
A last tip (which may help) I feel less problems when I add a ref to the controls directly in web.config. Additionally it frees me from havin the register directive on every page.
It looks like this:
<controls>
<add assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagPrefix="telerik" />
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions,
HTH
Manfred
Just fixed this myself for VS2008 (for aspx/ascx and codebehind) by adding the Telerik .dlls to the GAC on my local development machine.
I've had this issue before and both times it occurred was when my project was hosted on a network drive, where the project's path would be something like: *\\networkmachinename\c$\inetpub\projectname*
The fix:
On your local machine, go to Start > Programs > Microsoft Visual Studio 2008 > Visual Studio Tools > Visual Studio 2008 Command Prompt (run as admin)
Using the gacutil tool and the following commands (or more depending on how many .dlls you wish to use), add the assemblies to your GAC:
gacutil.exe -i "C:\Program Files (x86)\Telerik\RadControls for ASPNET AJAX Q2 2008\Bin35\Telerik.Web.UI.dll"
gacutil.exe -i "C:\Program Files (x86)\Telerik\RadControls for ASPNET AJAX Q2 2008\Bin35\Telerik.Charting.dll"
Obviously modify the dirs as appropriate for your OS/Telerik/Framework versions, then close Visual Studio 2008 Command Prompt, close VS2008 (if open) and restart VS2008 again.
You'll find the intellisense works on the aspx/ascx files first, and given a few minutes it'll work on your codebehind files too. Close and retry if it still doesn't work.
One other note, if you have a small error somewhere in your website's root web.config file, you'll also lose intellisense for Telerik (and perhaps other) controls - so check your web.config files aren't erroneous first.