on 10-21-2011 8:20 AM
Hello guys,
I'm having some issues regarding the VS2010 development plugin and the runtime on an IIS server. I'm currently developing a software using CR. As long as I run it on my local machine, it works just fine. However, since I deployed the WCF to our local IIS, it's broken. I always get the FaultException "Cannot create ActiveX component." If I switch it back to my local development server built into the VS2010, it's fine again.
I think, I misconfigured something on the IIS. I have installed the "SAP Crystal Reports runtime engine for .NET Framework 4" from [here|http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp], the 32 as well as the 64 bit version. I also switched the AppPools aroundu2014without any success.
I already asked on the IIS forums, and they recommended me to ask here. I hope you can help me.
Andre
Hello Andre
Enter the following into the search box at the top right corner of this web page: "activex create net crystal". See if any of the KBs, etc., help.
What happens if you run the app right on the server it's self?
What's the OS?
Do you get the error when printing, viewing or exporting the report?
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ludek,
Thank you for the tip. I will check the KBs and tell you, if I found anything useful. I will also check if the application work on the server.
The OS we're using is Windows Server 2008 R2 Datacenter 64 bit. I get the error as soon as I try to print a label. I'm not sure in which line exactly, because it's just giving me the error message without a line number.
The source code is this:
If initialized Then
Dim Check = CheckPrinter()
If Check = ServiceStatusCode.PrinterOK Then
Dim CrReport As New CrystalReport1
Dim dieListe As New EtikettenListe
dieListe.add(New Etikett(LzID, Weight))
CrReport.SetDataSource(dieListe)
CrReport.PrintOptions.PrinterName = "\\" & Target & "\Compa II 104-8"
CrReport.PrintToPrinter(1, True, 0, 0)
Return ServiceStatusCode.PrintSuccessful
Else
Return Check
End If
Else
Return ServiceStatusCode.NotInitialized
End If
Andre
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.