Failed to open package file due to error 0x800C0006 "The system cannot locate the file in C# code.

Hi, Am facing issue when I try to run SSIS package via C# code, I have given full access to all the folder in which the package is available.
In the below line am getting error,
using Microsoft.SqlServer.DTS.Runtime;
Application app=new Application();
Package package=null;
package=app.LoadPackage("PackageFullPath",null) --error line
Failed to open package file "C:\SSIS\Package.dtsx" due to error 0x800C0006 "The system
cannot locate the object specified.".  This occurs when loading a
package and the file cannot be opened or loaded correctly into the XML document

Are you trying to run this code from job or something? Check if account executing the package has access to the path. Also check if path value passed is correct. If its a remote system path pass it in UNC format (ie //machine/...)
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • The NLS operation failed because the registry key Control Panel\International\User Profile cannot be opened. Error code is 2. Error message: The system cannot find the file specified.

    H,
    Since upgrading Windows server 2008 R2 to Server 2012 Standard edition, we get this repetitious critical error in the event log:
    Event 1001
    Op Code NLS initialization
    The NLS operation failed because the registry key Control Panel\International\User Profile cannot be opened. Error code is 2. Error message: The system cannot find the file specified.
    We originally found that the regional date settings after changing them in regional settings (DD/MM/YYYY) and they did not inherit properly from the upgrade but they are ok now. 
    I've looked at HKCU\.Default\Control Panel\International and nothing looks obviously wrong. Country codes, time & date formats are correct.
    How do we ascertain the  cause of this error and the specific registry key that might be problematic?

    Hi,
    This could be caused by firewall rules or security softwares.
    http://www.tomshardware.com/forum/242579-44-hkcu-control-panel-international-opened
    And in addition, the fix is worth a try.
    Nothing happens when you double-click "Region" in Control Panel 
    http://support.microsoft.com/kb/2958845
    Please Note: Since the first web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

  • Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\abc.mdf". Operating system error 2: "2(The system cannot find the file specified.)".

    hi,
    am running the below command for moving sql serevr mdf and ldf files  from one  drive to another : c  drive to d drive:
    but am getting the below error
    SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\abc.mdf". Operating system error 2: "2(The system cannot find the file specified.)".
    use master
    DECLARE @DBName nvarchar(50)
    SET @DBName = 'CMP_143'
    DECLARE @RC int
    EXEC @RC = sp_detach_db @DBName
    DECLARE @NewPath nvarchar(1000)
    --SET @NewPath = 'E:\Data\Microsoft SQL Server\Data\';
    SET @NewPath = 'D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\';
    DECLARE @OldPath nvarchar(1000)
    SET @OldPath = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\';
    DECLARE @DBFileName nvarchar(100)
    SET @DBFileName = @DBName + '.mdf';
    DECLARE @LogFileName nvarchar(100)
    SET @LogFileName = @DBName + '_log.ldf';
    DECLARE @SRCData nvarchar(1000)
    SET @SRCData = @OldPath + @DBFileName;
    DECLARE @SRCLog nvarchar(1000)
    SET @SRCLog = @OldPath + @LogFileName;
    DECLARE @DESTData nvarchar(1000)
    SET @DESTData = @NewPath + @DBFileName;
    DECLARE @DESTLog nvarchar(1000)
    SET @DESTLog = @NewPath + @LogFileName;
    DECLARE @FILEPATH nvarchar(1000);
    DECLARE @LOGPATH nvarchar(1000);
    SET @FILEPATH = N'xcopy /Y "' + @SRCData + N'" "' + @NewPath + '"';
    SET @LOGPATH = N'xcopy /Y "' + @SRCLog + N'" "' + @NewPath + '"';
    exec xp_cmdshell @FILEPATH;
    exec xp_cmdshell @LOGPATH;
    EXEC @RC = sp_attach_db @DBName, @DESTData, @DESTLog
    go
    can anyone pls help how to set the db offline. currently  i  stopped the sql server services from services.msc and started the  sql server agent.
    should i stop both services for moving from one drive to another?
    note: I tried teh below solution but this didint work:
    ALTER DATABASE <DBName> SET OFFLINE WITH ROLLBACK IMMEDIATE
    Update:
    now am getting the message :
    Msg 15010, Level 16, State 1, Procedure sp_detach_db, Line 40
    The database 'CMP_143' does not exist. Supply a valid database name. To see available databases, use sys.databases.
    (3 row(s) affected)
    (3 row(s) affected)
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\CMP_143.mdf". Operating system error 2: "2(The system cannot find the file specified.)".

    First you should have checked the database mdf/ldf name and location by using the command
    Use CMP_143
    Go
    Sp_helpfile
    Looks like your database CMP_143 was successfully detached but mdf/ldf location or name was different that is why it did not get copied to target location.
    Database is already detached that’s why db offline failed
    Msg 15010, Level 16, State 1, Procedure sp_detach_db, Line 40
    The database 'CMP_143' does not exist. Supply a valid database name. To see available databases, use sys.databases.
    EXEC @RC = sp_attach_db @DBName, @DESTData, @DESTLog
    Attached step is failing as there is no mdf file
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\CMP_143.mdf". Operating system error 2: "2(The system cannot find the file specified.)"
    Solution:
    Search for the physical files(mdf/ldf) in the OS and copy to target location and the re-run sp_attach_db with right location and name of mdf/ldf.

  • System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo),

    Dear All,
    I am getting a below error while doing ehp6 installation on sybase (high availbility )
    can any one help me on this..?
    An error occurred while processing option SAP Business Suite 7i 2011 > Enhancement Package 6 for SAP ERP 6.0 > SAP Application Server ABAP > SAP ASE > High-Availability System > Database Instance( Last error reported by the step: System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo), line (646) in file (d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp), stack trace: d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\ejscontroller.cpp: 181: EJSControllerImpl::executeScript() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\jsextension.hpp: 1059: CallFunctionBase::call() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\osmod\iaxxbprocess.cpp: 423: CIaOsProcess::start_impl() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 238: CSyChildApplicationImpl::start(false) d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 262: CSyChildApplicationImpl::doStart() .). You can no
    Regards,
    Letz..

    Hello Mauricio.
    Thanks
    Two Thinks:
    1.- This error appears precisely in the process of creating SAP users including you mention sidadm:
          A.- Execute sapinst
          B.- Installation option is chosen
                SAP NetWeaver CE Production Edition
                        Installation Options
                            High-Availability System
                                  Central Service  Instance (SCS)
           c.- System ID, Next and appear message error
    2.- However, the user manually create sidadm, I gave the permissions you indicate, and the error message is the same
    Thanks

  • Bulk Insert Task Cannot bulk load because the file could not be opened.operating system error error code 3(The system cannot find the path specified.)

    Following error i am getting after i chnaged the Path in Config File from
    \\vs01\d$\\Deployment\Files\temp.txt
    to
    C:\Deployment\Files\temp.txt
    [Bulk Insert Task] Error: An error occurred with the following error message: "Cannot bulk load because the file "C:\Deployment\Files\temp.txt" could not be opened. Operating system error code 3(The system cannot find the path specified.).". 

    I think i know whats going on. The Bulk Insert task runs by executing sql command (bulk insert) internally from the target sql server to load the file. This means that the SQL Server Agent of the target sql server should have permissions on the file you trying to load. This also means that you need to use UNC path instead to specify the file path (if the target server in on different machine)
    Also from BOL (see section Usage Considerations - last bullet point)
    http://msdn.microsoft.com/en-us/library/ms141239.aspx
    * Only members of the sysadmin fixed server role can run a package that contains a Bulk Insert task.
    Make sure you take care of this as well.
    HTH
    ~Mukti
    Mukti

  • Start-Process : This command cannot be run due to the error: The system cannot find the file specified.

    Hi, 
    I need some help with my script. It copies the file to the remote laptops but when it needs to install the .exe it fails.
    If I run 1 line at the time in Powershell ISE, then it works. Somebody has an idea why it doesn't work or can help me on the right way?
    Script: 
    $laptops = Get-Content -Path "C:\Users\bruyld01\Documents\STEPSTONE\Powershell\SAP\LaptopList.txt"
    foreach ($laptop in $laptops)
        Copy-Item "C:\Users\bruyld01\Desktop\SAP_Business_ByDesign_Add-In_for_Microsoft_Outlook_V5.exe" -Destination \\$laptop\C$\
        Enter-PSSession $laptop
        $version = Get-WmiObject -Class Win32_Product | where {$_.Name -like "*SAP Business*"} | Select-Object Version
        if ($version -ne "135.0.2071.1047")
            Start-Process -Filepath "C:\SAP_Business_ByDesign_Add-In_for_Microsoft_Outlook_V5.exe" -ArgumentList "/quiet"
        else
            Write-Host "SAP outlook add-in is up to date!" -ForegroundColor Green
        Exit-PSSession
    Error message:
    Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
    At line:2 char:1
    + Start-Process -Filepath "C:\SAP_Business_ByDesign_Add-In_for_Microsoft_Outlook_V ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
        + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
    Thanks, 
    Dimitri

    Hi,
    Enter-PSSession is used for interactive remote sessions. Look into Invoke-Command instead.
    http://ss64.com/ps/invoke-command.html
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • When I open a pdf link I am getting an error "The system cannot find the file specified. " The same link is opened in other browsers.

    I used to open the link" http://supportdocs.sonybiz.net/indexes/pi%5CLFS%5CMay_2004%5C00035186.pdf" in firefox earlier. Now I use version 5.0. Recently I noticed that such links in pdf are not opening with firefox and getting an error that "The system cannot find the file specified. " But the same is opened in other browsers. I do not know whether it is a settings problem or limitation of firefox.
    It is very much helpful if someone can help me in resolving this issue.

    That link has backslashes (%5C) that need to be changed to forward slashes:
    *http://supportdocs.sonybiz.net/indexes/pi/LFS/May_2004/00035186.pdf

  • Golden gate -  Unable to open file (error 2, The system cannot find the file specified.)

    Hi Everyone.
    I have configured GoldenGate on Win2008 R2, but when I start replicat, this fall.
    Initially:
    GGSCI (WIN-NKC50KUIT0G) 19> start replicat rep1 
    Sending START request to MANAGER ...
    REPLICAT REP1 starting
    GGSCI (WIN-NKC50KUIT0G) 20> info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING
    REPLICAT    STOPPED     REP1        00:00:00      00:37:53 
    GGSCI (WIN-NKC50KUIT0G) 21> info replicat rep1
    REPLICAT   REP1      Initialized   2013-11-02 22:23   Status STOPPED
    Checkpoint Lag       00:00:00 (updated 00:40:28 ago)
    Log Read Checkpoint  File C:\app\Oracle\product\gg\dirdat\tr000000
                         2013-11-02 22:23:55.000000
    With VIEW GGSEVT:
    2013-11-02 23:15:31  INFO    OGG-01815  Oracle GoldenGate Delivery for Oracle, R 
    EP1.prm:  Virtual Memory Facilities for: COM 
        anon alloc: MapViewOfFile  anon free: UnmapViewOfFile 
        file alloc: MapViewOfFile  file free: UnmapViewOfFile 
        target directories: 
        C:\app\Oracle\product\gg\dirtmp. 
    2013-11-02 23:15:31  ERROR   OGG-00446  Oracle GoldenGate Delivery for Oracle, R 
    EP1.prm:  Extract file not found or no records beyond begin time.   why??? 
    2013-11-02 23:15:31  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, R 
    EP1.prm:  PROCESS ABENDING. 
    After I tried with:
    GGSCI (WIN-NKC50KUIT0G) 8>Alter rep1, EXTSEQNO 0
    but
    GGSCI (WIN-NKC50KUIT0G) 9> info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING
    REPLICAT    ABENDED     REP1        00:00:00      01:11:50
    why??? abended??
    In logs:
    2013-11-03 14:07:02  INFO    OGG-00996  Oracle GoldenGate Delivery for Oracle, REP1.prm:  REPLICAT REP1 started. 
    2013-11-03 14:07:02  ERROR   OGG-01091  Oracle GoldenGate Delivery for Oracle, REP1.prm:  Unable to open file ".\dirdat\tr000000" (error 2, The system cannot find the file specified.).  why???
    2013-11-03 14:07:02  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, REP1.prm:  PROCESS ABENDING.
    GGSCI (WIN-NKC50KUIT0G) 12> info rep1, detail
    REPLICAT   REP1      Last Started 2013-11-03 14:30   Status ABENDED
    Checkpoint Lag       00:00:00 (updated 01:19:03 ago)
    Log Read Checkpoint  File .\dirdat\tr000000
                         First Record
      Extract Source                          Begin             End
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   2013-11-03 12:54
    Current directory    C:\app\Oracle\product\gg
    Report file          C:\app\Oracle\product\gg\dirrpt\REP1.rpt
    Parameter file       C:\app\Oracle\product\gg\dirprm\REP1.prm
    Checkpoint file      C:\app\Oracle\product\gg\dirchk\REP1.cpr
    Checkpoint table     target.checkpoint
    Process file         C:\app\Oracle\product\gg\dirpcs\REP1.pcr
    Error log            C:\app\Oracle\product\gg\ggserr.log
    GGSCI (WIN-NKC50KUIT0G) 13> view param rep1
    REPLICAT rep1
    ASSUMETARGETDEFS
    USERID target, PASSWORD oracle
    discardfile .\discard\rep1_discard.txt, append, megabytes 10
    DDL
    map source.*, target target.*;
    I don´t understand it, How I could solve?? Please help me!
    Thank you.

    What steps did you use to add the Replicat?  Can you list those commands out.
    Also, does this file actually exist on the server where Replicat is running: C:\app\Oracle\product\gg\dirdat\tr000000

  • Known Issue: MIDL fails to compile IDL files in UAP projects. Gives following error: midlrt : error MIDL4034: Failed to load a dependency file. Windows.winmd (HRESULT:0x80070002 - The system cannot find the file specified. )

    Visual Studio gives the following error:
    midlrt : error MIDL4034: Failed to load a dependency file. Windows.winmd (HRESULT:0x80070002 - The system cannot find the file specified. )
    This is because Visual Studio is looking for a WinMD file that contains the base types.  Unfortunately the metadata path passed by default to MIDL through Visual Studio does not resolve to the correct file.

    Work around:
    Update the "Additional Metadata Directories" for MIDL to include the Windows.Foundation.FoundationContract.WinMD
    To update the “Additional Metadata Directories” in Visual Studio, do the following:
    1)  Right click on your C++ Project file.
    2)  Choose properties.
    3)  Under Configuration Properties, click MIDL
    4)  Under MIDL choose “Command Line”
    5)  In the Additional Options text box enter:
    /Metadata_dir "C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.FoundationContract\1.0.0.0”
    or on X86 machines
    /Metadata_dir "C:\Program Files\Windows Kits\10\References\Windows.Foundation.FoundationContract\1.0.0.0”

  • Flash CS6 AIR error: CreateWinProcess failed with error 2. The system cannot find the file specified

    I created an AIR application in Adobe Flash CS6, but when I test, debug or publish it, an error always occured.
    CreateWinProcess failed with error 2. The system cannot find the file specified.
    When I clicked OK, Flash suddenly stops responding, so I need to end the process using Task Manager.
    I created a blank FLA document and tested and published it, everything's fine there. It was exported properly. But when I do it with the AIR app, Flash can't even start exporting the SWF of the AIP app, and instead gave me the error.
    I speculate that there is something wrong with the Java command line stuff Flash is doing behind the curtain. I tried using ADL myself and get the AIR app working fine.
    I also found out that Flash has its own JRE installed, so I don't have to bother the JRE used by my computer.
    Is there any way to fix this? Thanks in advance. Have a nice day!

    I installed  the update, but I'm sorry to say that it did not solve the problem
    The error is still there as described by Master §ix and Daniel777
    CreateWinProcess failed with error 2. The system cannot find the file specified.
    It happens when trying to test, debug, or publish air applications (AIR 2.5 – AIR 3.4 , desktop, android, iOS)
    In this case, I can't use the simulator to test the applications,
    thanks

  • Flash CS 6 error: CreateWinProcess failed with error 2 - The system cannot find the file specified

    Hi,
    I'm getting the error "CreateWinProcess failed with error 2 - The system cannot find the file specified" whenever I try to test an Air app within the Flash IDE.
    This error even comes up with a new and empty project .fla file. I already updated the Air runtime and Flash to the latest version.
    How to fix this problem? Any ideas welcome!
    Thank you.

    I installed  the update, but I'm sorry to say that it did not solve the problem
    The error is still there as described by Master §ix and Daniel777
    CreateWinProcess failed with error 2. The system cannot find the file specified.
    It happens when trying to test, debug, or publish air applications (AIR 2.5 – AIR 3.4 , desktop, android, iOS)
    In this case, I can't use the simulator to test the applications,
    thanks

  • Installation of Firefox failing with a 7-Zip Error Box stating "The System Cannot find the File Specified"

    When I upgraded to the latest Firefox on my Windows 7 PC , I get a 7-Zip Error Box stating " The System cannot find the file specified". This happens approximately two thirds into the installation. I have tried turning the Virus checker off and re-installing, but to no avail.

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/
    Try this:
    *Download the full Firefox installer and save the file to the desktop<br>https://www.mozilla.org/en-US/firefox/all/
    *Start the installation with a double-click on the desktop icon
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    *https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware

  • Obfuscation Error: C:\Documents (The system cannot find the file specified)

    Hi,
    I want to obfuscate my jar file. for this purpose i followed the steps below.
    1. Copied proguard.jar in C:\WTK2.5.2\bin
    2. Now opened the file ktoolbar.vm , which is present in C:\WTK2.5.2\bin
    my ktoolbar.vm looks like this
    {color:#666699}C:\PROGRA~1\Java\JDK16~1.0_0\bin\java -Dkvem.home="%KVEM_HOME%" -Djava.library.path="%KVEM_HOME%/bin" -Dsun.java2d.ddlock=true -Dsun.java2d.gdiblit=false -cp "%KVEM_HOME%/wtklib/kenv.zip";"%KVEM_HOME%/wtklib/ktools.zip";"%KVEM_HOME%/bin/JadTool.jar";"%KVEM_HOME%/bin/MEKeyTool.jar";"%KVEM_HOME%/wtklib/customjmf.jar";"%KVEM_HOME%/lib/j2me-ws.jar";"%KVEM_HOME%/lib/j2me-xmlrpc.jar";"%KVEM_HOME%/bin/schema2beansdev.jar";"%KVEM_HOME%/bin/j2me_sg_ri.jar";"%KVEM_HOME%/bin/jaxrpc-impl.jar";"%KVEM_HOME%/bin/jaxrpc-api.jar";"%KVEM_HOME%/bin/jaxrpc-spi.jar";"%KVEM_HOME%/bin/activation.jar";"%KVEM_HOME%/bin/mail.jar";"%KVEM_HOME%/bin/saaj-api.jar";"%KVEM_HOME%/bin/saaj-impl.jar";"%KVEM_HOME%/bin/xsdlib.jar";"%KVEM_HOME%/wtklib/nist-sip-1.2.jar";"%KVEM_HOME%/wtklib/JainSipApi1.1.jar";"%KVEM_HOME%/wtklib/jain-sip-presence-proxy.jar" com.sun.kvem.toolbar.Main{color}
    3. my project or my workspace is at location D:\workspace\WTK
    4. Also my wtk is located at C:\WTK2.5.2
    5 Now i renamed ktoolbar.vm to ktoolbar.bat and the edited the file then added 2 lines at the beginning of ktoolbar.bat
    SET USER_HOME=D:\workspace\WTK
    SET KVEM_HOME=C:\WTK2.5.2
    6 Also i added -Duser.home=%USER_HOME% in the next line.
    7 Now my ktoolbar.bat looks like this.
    {color:#800080}SET USER_HOME=D:\workspace\WTK SET KVEM_HOME=C:\WTK2.5.2 C:\PROGRA~1\Java\JDK16~1.0_0\bin\java -Dkvem.home="%KVEM_HOME%" -Duser.home=%USER_HOME% -Djava.library.path="%KVEM_HOME%/bin" -Dsun.java2d.ddlock=true -Dsun.java2d.gdiblit=false -cp "%KVEM_HOME%/wtklib/kenv.zip";"%KVEM_HOME%/wtklib/ktools.zip";"%KVEM_HOME%/bin/JadTool.jar";"%KVEM_HOME%/bin/MEKeyTool.jar";"%KVEM_HOME%/wtklib/customjmf.jar";"%KVEM_HOME%/lib/j2me-ws.jar";"%KVEM_HOME%/lib/j2me-xmlrpc.jar";"%KVEM_HOME%/bin/schema2beansdev.jar";"%KVEM_HOME%/bin/j2me_sg_ri.jar";"%KVEM_HOME%/bin/jaxrpc-impl.jar";"%KVEM_HOME%/bin/jaxrpc-api.jar";"%KVEM_HOME%/bin/jaxrpc-spi.jar";"%KVEM_HOME%/bin/activation.jar";"%KVEM_HOME%/bin/mail.jar";"%KVEM_HOME%/bin/saaj-api.jar";"%KVEM_HOME%/bin/saaj-impl.jar";"%KVEM_HOME%/bin/xsdlib.jar";"%KVEM_HOME%/wtklib/nist-sip-1.2.jar";"%KVEM_HOME%/wtklib/JainSipApi1.1.jar";"%KVEM_HOME%/wtklib/jain-sip-presence-proxy.jar" com.sun.kvem.toolbar.Main{color}
    8 Now i opened the command promt and i executed the bat file.
    9 Now when i try to open the WTK toolkit it gives me the following error
    Fatal error : File: C:\WTK.2.5.2\bin\ktoolbar.vm does not exist
    Please help me to resolve this issue or suggest me some different way.
    Also i would like to tell that my project is completely build using netbeans 6.5 . but when i try to make the obfuscation level high using the scroll that is provided by netbeans , it gives me following error.
    {color:#ff0000}C:\Documents and Settings\SShete\My Documents\NetBeansProjects\vtms_test_lwuit_Backup\nbproject\build-impl.xml:459: Error while expanding C:\Documents and Settings\SShete\My Documents\NetBeansProjects\vtms_test_lwuit_Backup\build\obfuscated.jar
    java.io.FileNotFoundException: C:\Documents and Settings\SShete\My Documents\NetBeansProjects\vtms_test_lwuit_Backup\build\obfuscated.jar (The system cannot find the file specified)
    BUILD FAILED (total time: 8 seconds){color}
    Also i dont know what changes are to be done to the build.xml so that obfuscation can be done .
    Thats the reason why i am now opening the same project using wtk and trying to obfuscate it.

    hi....
    i have tried another way out ,
    i followed the procedure below
    In order to integrate this plug-in in the toolkit, you'll have to put the following lines in the file {j2mewtk.dir}/wtklib/Linux/ktools.properties or {j2mewtk.dir}\wtklib\Windows\ktools.properties (whichever is applicable).
    obfuscator.runner.class.name: proguard.wtk.ProGuardObfuscator
    obfuscator.runner.classpath: /usr/local/java/proguard/lib/proguard.jar
    Please make sure the class path is set correctly for your system.
    Once ProGuard has been set up, you can apply it to your projects as part of the build process. The build process is started from the WTK menu bar:
    Project -> Package -> Create Obfuscated Package
    The Toolkit obfuscates other sample projects
    However now my project gets build without errors , but when i try to create a obfuscated package it gives me the following error
    Error preverifying class bc
    VERIFIER ERROR bc.a(Z)Lhx;:
    Incompatible object argument for invokespecial
    com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
    Build failed
    Please help..

  • Obfuscation error (The system cannot find the file specified)...

    Hii....friends
    I extracted proguard.jar file in C:\WTK2.5.2\bin\ directory
    I edited the following enteries in ktools.properties file as following....
    obfuscator.runner.class.name: com.sun.kvem.ktools.RunPro
    obfuscator.runner.classpath: C:\WTK2.5.2\bin\proguard.jar
    when I create Obfuscated package Error is occured.
    Error: C:\Documents (The system cannot find the file specified)
    Obfuscation failed.
    Build failed
    Please help this is very essential for me...my application is incompleted.

    I had the same problem)))
    My WTK:
    C:\Program Files\Java\SonyEricsson_SDK\WTK2My project:
    C:\Program Files\Java\SonyEricsson_SDK\WTK2\apps\myprojectMy error:
    Error: C:\Program (The system cannot find the file specified)
    Obfuscation failed.
    Build failedMy solution:
    1) Find and open ktoolbar.BAT
    2) Replace(Ctrl+H in notepad) all "Program Files" to "PROGRA~1"
    Edited by: k06a on Aug 24, 2009 12:16 AM

  • Error message on my development workstation: The system cannot find the file specified.

    Post Author: cseverin
    CA Forum: Crystal Reports
    Hi,
    I am currently developing an ASP.NET website using Visual Studio.NET 2005. I am using the .NET 2.0 framework, VB.NET as my programming language and I connect successfully to a SQL Server 2005 database.  I can select, insert, update and delete data from the database elsewhere in my project, so I know basic connectivity isn't an issue.  The problem seems to be with Crystal Reports. 
    I created a folder called 'Reports' in my project and added a Crystal Report file (OpenFiles.rpt) to it.  I designed the report and initally used a hard-coded SQL query as its datasource so I could quickly get the database fields onto the report and preview them.  All worked fine. 
    To make the report accessible to the rest of the website, I created an .xsd dataset file containing the three tables (and their corresponding tableadapters) that the report requires and then redeveloped the report using the dataset as the datasource for the report.  After doing this, the preview no longer worked.
    Next, I added a page to the website and dragged a Crystal Report Viewer Control onto it.  In the code behind the page I wrote:
    Option Strict On
    Imports System.Data
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Partial Class Reports
         Inherits System.Web.UI.Page
         Private objOpenFilesreport As OpenFilesReport
         Private rptOpenFiles As ReportDocument
         Private strLastErrorMessage As String = Nothing
         Private errLastException As Exception = Nothing
         Dim strFileKey As String
         Dim strJurisdictionCode As String
         Dim strStaffId As String
         Dim strReportId As String
         Private Sub ConfigureCrystalReports()
              Dim reportPath As String = Server.MapPath("OpenFiles.rpt")
              Dim rptopenfiles As New ReportDocument
              rptOpenFiles.Load(reportPath)  <== I checked this during execution and the value correctly points to the OpenFiles.rpt file in the Reports     folder of my project
              Dim ConnectionInfo As ConnectionInfo = New ConnectionInfo()
              ConnectionInfo.DatabaseName = my database
              ConnectionInfo.UserID = login id of user
              ConnectionInfo.Password = user's password
              SetDBLogonForReport(ConnectionInfo, rptopenfiles)
              CrystalReportViewer1.ReportSource = rptopenfiles
         End Sub
         Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
             ConfigureCrystalReports()
         End Sub
         Private Sub SetDBLogonForReport(ByVal ConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
              Dim myTables As Tables = myReportDocument.Database.Tables
              For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
                   Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
                   myTableLogonInfo.ConnectionInfo = ConnectionInfo
                   myTable.ApplyLogOnInfo(myTableLogonInfo)
              Next
         End Sub
    End Class
    I added a hyperlink to one of the existing pages on the website to navigate to this page with the report viewer on it.  When I run the website in Visual Studio and click on the hyperlink I get the following:
    Server Error in '/MyTest' Application.
    The system cannot find the file specified.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The system cannot find the file specified.Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
    &#91;COMException (0x80004005): The system cannot find the file specified.
    &#93;
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +126
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +442
    &#91;Exception: Load report failed.&#93;
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +513
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1378
       CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() +149
       CrystalDecisions.CrystalReports.Engine.ReportDocument.get_DataDefinition() +85
       CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ParameterFields() +158
       CrystalDecisions.Web.CrystalReportSource.BindControlParameter(Parameter parameter) +130
       CrystalDecisions.Web.CrystalReportSource.DataBindParameters() +191
       CrystalDecisions.Web.CrystalReportSource.EnsureParameters(Boolean forceDataBind) +90
       CrystalDecisions.Web.CrystalReportSource.LoadCompleteEventHandler(Object sender, EventArgs e) +47
       System.Web.UI.Page.OnLoadComplete(EventArgs e) +96
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4086
    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 
    Any ideas, anyone?
    Also, assuming I can get past this error, I will need to figure out how to fill the tables in the .xsd dataset file.  I have written a class for the dataset that includes functions that populate the tables in the dataset from the database by executing SQL queries.  But how do I call these functions at the time the report is run?
    This is my first Crystal report written in .NET and I've been struggling with it for days now.  Any help would be most appreciated!
    Thanks very much!
    Chris Severin

    hello, the error message is obviously coming from one of the installed mcafee extensions. please directly contact mcafee technical support - they can likely give you more detailed guidance and are the only ones who can fix bugs or make necessary adjustments in the addon.

Maybe you are looking for

  • Trying to watch a home-burned DVD on my Mac Pro.

    When I pop this DVD in (which works fine on Windows), the Mac Pro freezes and I get a message in 4 languages saying I "must restart" by holding down the power button. Once I do this, and restart it, I get the same freeze/error message. Any ideas how

  • Share same display calibration

    I just got two Dell LCD monitors and I calibrated one of them using Apple's display calibration and saved it. For some reason the calibration doesn't show up in the other displays lists of choices. How can I get it to share the exact same calibration

  • Oracle Not Avaliable on 8.1.6 for Linux with JDBC Thin Connection

    HI All, While I m trying to connect the Oracle 8.1.6 server with the JDBC Thin driver I m getting Error ORA - 01034 Oracle not Available. I m using jdk 1.2.2 and in the Classpath I have given the path for classes12.zip. I have tried using classes111.

  • Can't open an "Open TL" file in Logic 9.

    I'm trying to open an "Open TL" file saved from PreSonus Capture in Logic 9. The file was saved as set1.tl from Capture. When I try to open it in Logic 9, the file name is grayed out, even though I chose "Open TL" as the file type in Logic 9. Any ide

  • Automatically start in an applet

    Hi, i want to call an method when my applet starts. I tried to call this method from init() but the applet didn't start properly. It appeared Applet Loaded and not Applet Started. I want this method to be called as soon as applet is started, that is,