"Invalid printer specified" for 32bit Windows Service in 64bit Server

Hi All,
I'm having some issues with crystal reports.
My development environment:
Visual Studio 2008, 32bit Windows XP
Running environment:
Windows Server 2003 Service Pack 2 64 bit
Crystal Reports Basic Runtime for Visual Studio 2008 (x86)
I've created two applications: one is console application and one is windows service. Both application run same codes to print crystal reports to printers and run at 32 bit. I can have multiple instance of console application running without any issues. When I run the windows service version, the first time the service works fine. But after I restarted the windows server, the crystal report throw Sysstem.Runtime.InteropServices.COMException.
The detail of the exception is:
System.Runtime.InteropServices.COMException (0x80000201):
Invalid printer specified.
   at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)
   at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
   at Company.PrintReport(ReportClass report, String printerName)
Both console application and windows service run at 32 bits. The user runs the service is domain controller who has admin permission. And the same problem happened on an web application hosted on IIS of the same server.
What I've done so far:
1. Set the printer option in the report to no printer
2. Try install the crystal report x64
3. For the windows service build for x86.
Please some one help me in this.
Cheers

That is a rather strange issue.
Make sure you are killing the report object once you're doen with it. E.G;
Dim report as New ReportDocument
Protected Sub Page_load()
End Sub
Private Page_Unload()
report.close()
report.dispose()
GC.Collect
End Sub
//C# (on form open):
private void WebForm1_Init(object sender, System.EventArgs e)
    if (boReportDocument != null)
        boReportDocument.Close();
        boReportDocument.Dispose();
        GC.Collect();
// C# on form close
private void Page_Unload(object sender, EventArgs e)
        if (boReportDocument != null)
        { boReportDocument.Close();
            boReportDocument.Dispose();
            GC.Collect();
If closing and disposing does not help, is htis happening on your dev computer or after you move that app to another server?

Similar Messages

  • Invalid Printer Specified Error

    I have an application that allows the user to select the target printer from the list of available printers on the system.
    The following code generates the list of printers from which they select:
    Dim PrinterList As New List(Of String)
            Dim PrintServer = New LocalPrintServer
            Dim PrintQueues = PrintServer.GetPrintQueues(New EnumeratedPrintQueueTypes() {EnumeratedPrintQueueTypes.Connections, EnumeratedPrintQueueTypes.Local})
            For Each p In PrintQueues
                PrinterList.Add(p.FullName)
            Next
    The selected value is saved. When I go to print, I use the following code to select the printer:
    ClientInstructions.PrintOptions.PrinterName = My.Application.PrinterSettings.ActiveLetterheadPrinter
    Edited by: Don Williams on Aug 10, 2010 7:08 AM

    This works 90% of the time. I occasionally get the following error:
    Error generated by: Print Client Instructions - Print Record Copy
    Error Message:  Invalid printer specified.
    temp_63b3d1f8-dedf-4eee-a119-0d301e2a98fa {34670353-397C-4316-B1EC-206D545CB318}.rpt
    HelpLink:
    Source: Analysis Server
    Target (Method): Void ModifyPrinterName(System.String)
    Stack Trace:    at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)
       at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
       at Workflow_WPF.ReportPrinting.PrintClientInstructions(RecordEntry ClientInstruction, Boolean ClientCopy, Boolean RecordCopy, Boolean Envelope, objVisitData WorkingData) in D:\TomGarg\Documents\Visual Studio 2008\Projects\WMS WPF\WorkflowClientApp\Modules\ReportPrinting.vb:line 1037
    Printer: hp OfficeJet 8500 Premier (redirected 2)
    When I use other redirectred printers, it works fine.
    Any idea what I am doing wrong? Any thoughs are greatly appreciated.

  • Dashboard refresh - ORA-24373 invalid length specified for statement

    Post Author: Reesy
    CA Forum: Performance Management and Dashboards
    I am getting the following error message in the log file "ORA-24373: invalid length specified for statement" when trying to refresh a metric via dashboard manager. The metric has been successfully refreshed previously. The only change that I am aware of is that more data has been added to the underlying database (Oracle 10g).
    There are a number of different filters on the metric - some work ok - some give the above error.
    Can anyone help?
    Cheers

    IWOULDFORMATMYCODESOITISREADABLEUSINGMIXEDCASESPACESANDNEWLINES.
    ATABLEALIASWOULDPROBABLYHELPTOO.

  • I got Invalid name specified for BUFFER_POOL while importing data

    Hi
    i got an error : ORA-25126: Invalid name specified for BUFFER_POOL while i was importing data (impdp)
    there are 2 instances on 2 servers
    1st instance is a single instance ,running on AIX ,oracle version 10.2
    and 2nd instance is RAC running on Solaris ,oracle version 11.2
    i want to import from 2nd instance (11.2) to 1st instance (10.2)
    here's my script
    impdp username/password tables=schema1.main,schema1.address table_exists_action=replace remap_schema=schema1:test remap_tablespace=schema:test_space nologfile=y network_link=db_sourcei got an error above only schema1.main table but schema1.address was able to import
    here's my log
    ORA-39083: Object type TABLE failed to create with error:
    ORA-25126: Invalid name specified for BUFFER_POOL
    Failing sql is:
    CREATE TABLE "TEST"."MAIN" ("Col1" VARCHAR2(1) NOT NULL ENABLE, "Col2" VARCHAR2(15) NOT NULL ENABLE, "Col3" VARCHAR2(13), "Col4" VARCHAR2(100), "Col5" NUMBER(2,0), "Col6" DATE, "Col7" VARCHAR2(1), "Col8" VARCHAR2(1), "Col9" DATE, "Col10" NUMBER(16,2)
    . . imported "TEST"."ADDRESS"                            317 rowshow can i solve this problem ?
    thanks in advance.. :)

    I believe this is a known bug - see MOS Doc 9160088.8 (Bug 9160088 - 11.2 EXPDP to lower version errors on import (ORA-25126)) - open an SR with Support
    HTH
    Srini

  • How to Configure Active-Passive oracle cluster in Windows 2008 R2 64bit Server.

    How to Configure Active-Passive oracle cluster in Windows 2008 R2 64bit Server With Oracle 11g R2.
    How many database will play in this role.
    Best,

    hello
    I was going through your post and i am also doing the same thing here at our organisation for Oracle 10g R2
    Can you pls send me any docs u r having for configuration of Oracle in windows clusters .
    And, can you pls elaborate on this point
    e)Create Oracle Service with the same name in the 2nd node and copy all the files like spfile,tnsnames.ora,listener.ora,password file to Node2.
    Pls send me the details at [email protected] or you can contact me at 08054641476.
    Thanks in advance.

  • Adding to available "Printer Models" for shared Windows printers

    I have a MacBook (my first Mac) and I have been able to get it to network with my Windows XP desktop, and it can print to the Canon Pixma iP4000 printer connected to the Windows machine.
    However, in Printer Setup, I had to choose a Printer Model, and the closest I could find is "Canon S800 - Gimp Print v.5.0.0 beta 2" -- which allows me to print, but the printouts are all in draft mode.
    I would like more control over the printer settings. Is there a way to add to that list of available Printer Models (i.e., is there some way to download an update for that list)??
    Mitch
    MacBook   Mac OS X (10.4.6)  

    Thanks, Greg, for the iFelix link. I had found that already, and run through the steps many times last night, and it still did't work on my MacBook.
    However, I did find another set of instructions on another web site that helped me get it working. Basically, I set it up as an LPD/LPR printer instead of a Windows Printer, addressing it via the IP address of my WinXP machine. I still have to use the manual sheet feeder (the driver can't deal properly with the paper tray on the bottom of the printer), but at least I was able to print.
    Oddly, I just tried again using the iFelix instructions, and now it works! Why it didn't work last night, I don't know. But now I've got two means of accessing this printer.
    MacBook Mac OS X (10.4.6)

  • Memory Cap for a Windows Service to run in the background all the time on Windows 8.1 Device

    I have a Windows Store app that would run on a 2GB windows 8.1 Pro tablet. I want to create a service that would run in the background and more than one store app can utilize that service. The question I have is , is there any memory usage limit for the
    service to run on a 2 GB RAM tablet?
    I am expecting that the service might use 900 MB of RAM when its operational .
    Kindly help 

    Hi,
    For this situation, it seems that you create a wcf service and host the service on windows service which is running on the 2GB windows 8.1 Pro tablet. And other store app in the tablet can utilize that service.
    If you want to limit the memory usage for the service, it's recommended that you could host the wcf service on other machine, such as a computer. You just call the service from the store application if you want to invoke the service.
    Regards

  • Toshiba Support for Microsoft Windows Service Packs ?

    Does Toshiba provide Downloads,
    for the Microsoft Service Pack
    ( For example Windows XP Service Pack ) ???

    The easiest way for you to find Information about Windows Service Packs is to surf on the Toshiba Website of your Country and look at Support & Download.
    There you find the a Category Microsoft Service Packs.
    The Link for Toshibe Europe for example is -> http://eu.computers.toshiba-europe.com/

  • HT1926 This version of itunes is meant for 32bit windows not 64bit windows. Please download 64bit.

    Ok so I have downloaded it on three different browsers and disabled popup blocker and restarted and this is still coming up with this version is meant for 32 bit windows, please download 64bit windows version. how do i fix this?

    Kinda obvious but are you downloading the 64bit version of iTunes for Windows as noted at the bottom of the iTunes download page?
    -> iTunes 10.6.1 for Windows (64 bit)

  • Windows service of WWI server doesn't start

    Hello all,
    I'm installing a WWI generation server (EHSWWI32_26-20000084 on a Windows Server 2008 R2(SP1)) for ECC 6.0.
    Now I have a problem with starting windows service.
    I installed WWI in the following path.
      E:\EHS\WWI
    Word version is 2003.
    The installation (CGSADM) is finished without problem, and the management server works fine.
    But service EHS_WWISRV, which is a service of wwi generation server, fails to start with following messages.
    <event log 1>
    The initialization process for the EHS_WWISRV_ST1_ST1_01 service failed.  Switching Desktop for Word failed!
    <event log 2>
    WWI started at: 08/03/11 10:48:37 as PID: 1132
    Initialisation........start
    Working dir is: E:\EHS\WWI
    Current PATH is: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\EHS\WWI
      Attaching service to desktop winsta0 / default
        session: 0
        window station: Service-0x0-e34639$, desktop: Default
    Error opening window station winsta0
    Windows-Error 5 in SetDesktop/OpenWindowStation: (null)
    Error setting window station winsta0
    Windows-Error 6 in SetDesktop/SetProcessWindowStation: (null)
    Error Attaching service to desktop winsta0 / default
    I have no idea what "Switching Desktop for Word failed!" means.
    Does anybody know how to fix the error?
    Thank you in advance for your support.
    Regards,
    Kazuma

    I could fix the error.
    SAP Note 580586 helped me.
    WWIUSER wasn't a member of the administrators group, and that caused the error.
    Thanks all.

  • Change/Configure Host and Port for the Web Service Proxy with Server

    Hi,
    Is there a way to configure Host and Port in generated proxy for Web service depending upon server. (ADF 11g)
    Scenario:
    We are consuming Credit Card web service from a service provider and have different Host and Port details for development, QA and Prod.
    So we created proxy classes using wsdl for development and things work fine, but when deploying code to QA or Prod we need to change the Host
    and Port details.
    Is their a way we could user variable's for Host and Port which looks to some configuration file to evaluate their values
    based on server.
    I am a bit new to this web service .. will appreciate if someone could provide an example.
    Thanks.

    Are you using Web Service Proxy or Web Service Data Control?
    If you are using Web Service Proxy. Right click on your Proxy --> Properties --> Port Endpoints. Here you can change the IP & Port details for each port.
    Venkat

  • OBIEE install problem on Windows 2008 R2 64bit server

    Hi!
    I have for 1 month struggled with a OBIEE 11g install on a Windows 2008 R2 64 bit server. (I have a open SR at Oracle but have not got any answer/suggestion for 2 weeks)
    I follow these documentations:
    Oracle® Fusion Middleware
    Installation Guide for Oracle Business Intelligence
    11g Release 1 (11.1.1)
    E10539-01
    and
    http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10539/c4_installing.htm#CIHDJGIH
    Specially chapter 4.4.4 for the moment, cant get pass step "Specify Installation Location"
    First did I run RCU against our Oracle 11g database and created the schemas for BI Publisher
    Then did I install JRockIT - jrockit-jdk1.6.0_26-R28.1.4-4.0.1-windows-x64.exe
    Then from JRockIT installed WLS_1035 generic.
    Then configure AdminServer so thatone is up and running (even installed a HTML server from E1 to check if WLS is up and running and working)
    Then start the installer (Oracle Business Intelligence, v. 11.1.1.5.0, for Microsoft Windows x86-64-bit) disk 1, setup.exe, then must I choose "software only" install. But on step 3 och 9 can I not press next, the installer says that I do not have any "Application Server" running. I have installed on E:\Oracle\Middleware but the installer can not see any application there, but I can access it thru a browser.
    Tests I have done,
    Install loopback adapter
    Deinstall loopback
    Deactivated everything but IPV4 protocoll (we have also IPV6 on all server).
    Verified that we have static ip on the server
    Tried installer for BIP (OBIEE) with WLS AdminServer running and without have it running.
    And checked the installer logs everytime, no errors, no warning.
    Is there anyone how can guide me or give some tips? I am getting frustrated after 4 weeks without success.
    Best regards,
    Anders

    Hi!
    It is the installer who not working properly, when using the "Browse", I had to choose a comletly wrong place first, and then again choose the correct installation path, after that would the understand where I wanted to install.
    Best regards,
    Anders

  • The appearance has gone into a "negative print" look for all windows, web, pictures etc. No changes were made to settings.

    15" MacBook Pro from 2008.
    Working fine this morning and then shut the screen. After lifting 30 mins later the appearnce has all gone in to "negative" style. Have tried shutting down and restarting but with no change. I have tried changing appearance settings. No luck.
    On startup all colours look normal and then it switched to a negative look. I also checked for updates and there were some so I ran them. Interestingly when running the update the background was standard Mac "space" and all colours were correct. That suggests to me that the screen is OK but something is telling it wrong color instructions (sometimes).
    All other functions seem to be working ok.
    Can't attach a screen shot using Grab because this chat says throws up an error - "content not allowed". Its a tiff file?
    Any suggestions welcome.
    Rob.

    Go to System Preferences>Accessibility and make sure that "invert colors" is not turned on:
    It won't show up in a screenshot...
    Clinton

  • Resolve Invalid length specified for Statement Error ORA-24373

    Hi Can anyone help explain why I am getting the above error while trying to call a plsql program unit in an SQL query that supplies data to an oracle report.
    The program unit compiles successfully in the plsql editor but a reference to it has been unsuccessful.
    Regards

    IWOULDFORMATMYCODESOITISREADABLEUSINGMIXEDCASESPACESANDNEWLINES.
    ATABLEALIASWOULDPROBABLYHELPTOO.

  • Repositories for 32bit BO/DS  with 64bit SQL supported?

    We are planning to move our CMS, Audit and DS repositories of 32-bit Business Objects Enterprise XI 3.1 SP3 and Data Services 3.2 to Microsoft SQL Server 2008 R2 (64-bit) database. I was looking at the respective Supported Platform documents for both and it does not explicitly mention 64-bit or 32-bit for any version of database. Do we have to understand that even though it is not stated explicitly as 64-bit, it is inclusive of both?
    Also it says that MS SQL Server 2008 is supported but does not indicate whether 2008 "R2" is supported. Can we deduce that since MS SQL Server 2008 is supported that 2008 R2 is also supported?
    Any insights, suggestions, recommendations greatly appreciated.
    Thanks in Advance

    Hi,
    for the Application such as BOE or DS it doesnt matter if the underlaying RDBMS is 32Bit or 64Bit. When you move to a 64Bit RDBMS you have to continue to use the 32Bit Middleware for BOE and DS.
    I`m pretty sure that R2 is supported. Check the PAM for the latest release of the products.
    Regards
    -Seb.

Maybe you are looking for

  • How can I download a firmware on my iPod touch 4 gen I want to put 5.0 firmware

    I try downloading the 5.0 firmware but I don't know

  • Problem with placing a Word Document

    Hello! I am a new user of InDesign. I followed the instructions given in the tutorials on placing a document into InDesign, but it just doesn' t work. I use MS Office  Professional Plus 2010. In InDesign I do as instructed: File -> Place and pick the

  • Non-Cumulative and BWA

    Dear Expert I have one non-cumulative cube with Inflow and out flow. I compressed that cube and rolled up BWA index. Performance it good but the query still takes much time ( 10- 12 minutes) earlier 30 minutes. I saw during query running its still ac

  • Mac mini window problem

    When I try to respond to an email, or facebook, etc., the window won't appear until I click the green icon to bring it forward.  Only a minimal amount of the header for the next screen appears.  Does anyone know how to correct this?

  • Bind Variables in SQL Statement

    can someone tell me if there is a way to find out what the bind variables values are in an sql statement extracted from any of the v$sql or v$sqlarea type tables ? sql example: update DTree set OriginOwnerID=:A where OriginOwnerID=:B and OriginDataID