App-v 4.6: cannot find the file specified
Hi,
Please see my previous
post.
In short: an application needs Internet Explorer activex, then a plugin for Excel. My App-v package is working (Internet Explorer opening), but the Excel plugin does not work. It says "cannot find the file specified".
I copied the excel shortcut from start menu to q:\packagename.
Please advise.
J.
Jan Hoedt
In .osd file of Excel plugin, there is the following:
<CODEBASE HREF="RTSP://%SFT_SOFTGRIDSERVER%:554/WindowsX64/Application/1.0/excelplugin.sft" GUID="9FA88591-089E-4E57-89D5-C23239E83238" PARAMETERS="" FILENAME="%CSIDL_PROGRAM_FILES%\Microsoft Office\Office12\EXCEL.EXE"
SYSGUARDFILE="applic.001\osguard.cp" SIZE="305879730"/>
<WORKINGDIR>%CSIDL_PROGRAM_FILES%\Microsoft Office\Office12</WORKINGDIR>
The CSIDL_PROGRAM_FILES%, is that correct? If not, can I change it and how? Should I then reimport the package?
I might have found a solution but please advise:
http://blog.gridmetric.com/2011/09/26/possible-caveats-in-mixing-32-bit-and-64-bit-app-v-packages-and-environments/
Office is x86, so I probably should change the %CSIDL_Programfiles% to %programfiles(x86)%?
Changing CSIDL_PROGRAM_FILES to %programfiles(x86)% is worth a try.
A common reason for that 'cannot find the file..' error message also often can be resolved by removing the Workingdir entry (<WORKINGDIR></WORKINGDIR> or just <WORKINGDIR/>.
The way to apply the change depends on your deployment scenario. With an App-V Management Server (and for a test packae) you could modify (a copy of) the original .OSD file in the content share. Make sure you save with 'save as' and then 'Unicode'. Then
re-initiate a Server Refresh from the client, that should download the new OSD.
You also could - if it is permitted - create a copy of the client-local copy of the OSD file (you can figure that out with the Client Management Console). Double-Clicking that modified copy could do the trick.
If you use another deployment method (SCCM, MSI) you would need to moify the OSD file using the App-V Sequencer.
Whatever method you use during troubleshooting: For the 'final' pacage you should open the original package on the Sequencer ('Edit'), make the changes there and re-save + re-deploy the package. This makes sure that all information is consitent across the
various App-V files
Falko
Twitter
@kirk_tn | Blog
kirxblog | Web
kirx.org | Fireside
appvbook.com
Similar Messages
-
Hello,
I am creating an app using NAPA tool in Office 365. I am trying to "Add an attachment" to a custom list item using SPServices. When I am using my code (jquery code) in content editor web part on a page, its working fine, but when I am adding
the same code in an app, its giving me error : "The system cannot find the file specified. (Exception from HRESULT:
0x80070002)" - 500 Internal Server error.
(function () {
// This code runs when the DOM is ready and creates a context object which is
// needed to use the SharePoint object model
$(document).ready(function () {
//alert('In doc ready');
$('.attachmentButton').change(function(event){
var listName = 'UploadTest',
itemId = 2;
handleFileChange(listName,itemId,event.target.files);
function handleFileChange(listName,itemId,files){
alert('In handleFileChange :=' + listName + "" + itemId + "" + files[0]);
alert('files.length :=' + files.length);
var filereader = {},
file = {},
i=0;
//loop over each file selected
for(i = 0; i < files.length; i++) {
alert('In for loop');
file = files[i];
filereader = new FileReader();
filereader.filename = file.name;
alert('filereader.filename :=' + filereader.filename);
filereader.onload = function() {
var data = this.result;
var n=data.indexOf(";base64,") + 8;
//alert('n :=' + n);
//removing the first part of the dataurl give us the base64 bytes we need to feed to sharepoint
data= data.substring(n);
//alert('data :=' + data);
alert('Above SPServices this.filename :=' + this.filename);
$().SPServices({
operation: "AddAttachment",
listName: listName,
asynch: false,
listItemID:itemId,
fileName: this.filename,
attachment: data,
completefunc: function (xData, Status) {
console.log('attachment upload complete',xData,status);
alert('Status :=' + Status);
if (Status.toLowerCase() == "error"){
alert(xData.responseText);
alert(xData.status);
alert(xData.statusText);
filereader.onabort = function() {
alert("The upload was aborted.");
filereader.onerror = function() {
alert("An error occured while reading the file.");
//fire the onload function giving it the dataurl
filereader.readAsDataURL(file);
alert(xData.responseText); - gives error - " "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)""
alert(xData.status); - gives error - "500"
alert(xData.statusText); - gives error - "Internal server error"
Server Publishing infrastructure and Server publishing features are activated on site collection and site respectively.
Any suggestions, why I am getting this error in NAPA ?Hi,
According to your post, my understanding is that you have an issue about adding attachments to list items in app.
To add attachment to list item in the host web, we should first get the list and the list items from the host web, then add the attachments to the list items.
There are two articles about retrieve the list and list items in the host web, you can refer to them.
http://www.dotnetcurry.com/showarticle.aspx?ID=1028
http://www.c-sharpcorner.com/UploadFile/93cb27/retrieve-sharepoint-app-host-web-list-items-in-sharepoint-ho/
What’s more, we can also use the REST API to achieve the same scenario.
http://www.c-sharpcorner.com/UploadFile/472cc1/add-attachments-to-list-items-in-sharepoint-2013-using-rest/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
"system cannot find the file specified" when launching a java app
Hi,
we are receiving an error message saying "The system cannot find the file specified" when launching a java app on a server. Exactly the same configuration on another server does not give the same problem.
The dialog box with the error message only presents one button - OK - and after pressing the button the app continues to run normally. This however is a big problem for us as we are trying to convert the apps into system services using the wrapper (http://wrapper.tanukisoftware.org).
Note: the problem exibits itself with and without the use of the wrapper.
I am not very comfortable about reinstalling the JRE on a production server. Is there any way to see what file it is missing? Debug options or something similar?
The JRE in question is 1.4.2_06. Many thanks in advance for your answers.if not setting Post-Processing option results in a cryptic error why doesn't Adobe do one of at least three things?
1. Don't let user click Export on Export dialog if nothing's selected for Post-Processing.
2. Default Post-Processing to Do Nothing
3. Give the user a hint as to what the problem is when the error occurs instead of issuing cryptic error message.
Allowing this error to persist for so long is ridiculous. -
The method
Windows.Networking.BackgroundTransfer.BackgroundDownloader.getCurrentDownloadsAsync()
will consistently error out for me.
To repro this:
Start a bunch of (preferably large) download operations using the BackgroundDownloader.
Wait for a couple to start.
Kill the app with Alt+F4.
Try to load the previously added downloads using the above method.
For me the method consistently fails and calls the error callback on the promise with the message "The system cannot find the file specified."
Seeing this happen in prod too and it is causing all kinds of havoc. The BackgroundDownloader does not continue to function at all, until the /AC/BackgroundTransferApi folder is removed from the app directory or the app is reinstalled.
Can anyone confirm this? Is there a solution?
Cheers,
FelixHi CensoredUser,
Thank you reporting this issue, I can reproduce it as you provided, but I think this is not the common status in
app life cycle. Can you tell me why you need do ALT+F4 action?
For a quick work around, reinstall app is an option to ignore this issue.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
the survey. -
ORA-20100 The system cannot find the file specified 0RA-06512
I can create and deploy a .NET stored procedure but when I run it either from Visual Studio 2005 Oracle Explorer or TOAD or SQLPlus I get the following:
ORA-20100: The system cannot find the file specified.
ORA-06512: at "SYS.DBMS_CLR", line 211
ORA-06512: at "PROD.GETSEGADDRNO", line 7
ORA-06512: at line 1
It is basically the same C# code as the OTN sample except for accessing a table in my database.
I found a forum thread dated 2006 with basically the same error message and it said the problem was fixed in Oracle Database patched to 10.2.0.2 but I can't find such a patch for 10g R2 Enterprise.
This is my first time setting up Server 2003, Oracle 10g and ODT for .NET
(I successfully created and deployed an external procedures for Oracle 8.1.7 on Windows 2000 a couple of years ago)
This is the code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
// use the ODP.NET provider
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
namespace CLRLibrary1
// Sample .NET stored function returning address number (ADDR_NO) for
// a given segment number (SEG_NO)
public class Class1
public static int GetSegAddrNo(int segno)
int addrno = 0;
// Check for context connection
OracleConnection conn = new OracleConnection();
if (OracleConnection.IsAvailable == true)
conn.ConnectionString = "context connection=true";
else
throw new InvalidOperationException("context connection" +
"not available");
conn.Open();
// Create and execute a command
OracleCommand cmd = conn.CreateCommand();
cmd.CommandText = "SELECT ADDR_NO FROM SEG WHERE SEG_NO = :1";
cmd.Parameters.Add(":1", OracleDbType.Int32, segno,
System.Data.ParameterDirection.Input);
OracleDataReader rdr = cmd.ExecuteReader();
if (rdr.Read())
addrno = rdr.GetInt32(0);
rdr.Close();
cmd.Dispose();
conn.Close();
return addrno;
} // GetSegAddrNo
} // Class1
} // CLRLibrary1
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
was installed from the Oracle downloads site: 10201_database_win32.zip
On Windows Server 2003 R2 Standard Edition SP2
Oracle .NET tools was installed using: ODTwithODAC1020221.exe
The CLR Service is running
Deployment says that it is successfull.
The DLL is in the expected Oraclehome\BIN\CLR folder
The deployment script is:
CREATE OR REPLACE LIBRARY "SYS"."ORATEST6_DLL" AS '$ORACLE_HOME\bin\clr\OraTest6.dll';
GRANT EXECUTE ON "SYS"."ORATEST6_DLL" TO PROD;
GRANT EXECUTE ON "SYS"."DBMS_CLR" TO PROD;
GRANT EXECUTE ON "SYS"."DBMS_CLRTYPE" TO PROD;
GRANT EXECUTE ON "SYS"."DBMS_CLRPARAMTABLE" TO PROD;
CREATE OR REPLACE FUNCTION PROD.GETSEGADDRNO wrapped
a000000
1f
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
8
147 138
ePHIr6kvu6nZ9gYrxgs40akg18owg1zQf/ZqZ3QC2vjqaIs25soMp1nBmBfBj1ZboVvNkdPT
8qhpuEVdmv4n2nlF5ynrhLsm3F0h9ZGrTQ4tGYIybWjMFxYNlDDeBOx1i7O0GviP8AxHys23
kW8aTVA2xV8IuLNlwP7KWFw70tGbg+lUIlRhYo5WmLW6N9wcjOCeLZK6W6s6tvd4zKAQykzc
sIsaneE0FWyV9Q1BD0yJpLoCfWH+f6fVXsne5Feyxu68k5geCJ8F5FCLm2ycvxIiKNKTIpiD
q4wshbsYLTTPHX3F6pA=
The parameter mapping is:
return value int32 number
segno int32 number
Bob Sorrell
[email protected]
863-662-5524These are the Reference Properties for Oracle.DataAccess in the OraTest6 app:
Aliases: Global
Copy Local: False
Description: Oracle.DataAccess.dll
File Type: Assembly
Identity: Oracle.DataAccess
Path: c:\oracle\ora102\odp.net\bin\2.x\Oracle.DataAcess.dll
Resolved: True
Runtime Version: v2.0.50727
Specific Version: False
Strong Name: True
Version: 2.102.2.20
This is what GacUtil shows:
The Global Assembly Cache contains the following assemblies:
Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86
Oracle.DataAccess, Version=1.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342
Number of items = 2
The GAC seems to contain both 2.102.2.20 and 1.102.2.20
Do I need to remove one? -
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 -
ConvertTo-SecureString : The system cannot find the file specified.
I have a Tidal job that executes a PowerShell script. The encrypted password is stored in a password file on the application server. In the PowerShell script, there is the line below that gets the contents of the password file.
$encryptPW = Get-Content "C:\Program Files\MyCompany\MyApp\encryptPW.txt" | ConvertTo-SecureString
On my development enviroment, Tidal was referencing the Agent/Adapter (app server name) and the Runtime User (domain\userID) fine. The script was executing well until recently when the Tidal server was rebooted. After the reboot, the PowerShell script execution is erroring out with the message "ConvertTo-SecureString : The system cannot find the file specified." It appears that when the PowerShell script is executed from Tidal, it is unable to find the password file using the Runtime User specified in the Tidal job.
The Runtime User has the proper access on the application server because we must sign-on as that user in order to generate the password file to hold the encrypted password for the Runtime User.
It is as if Tidal is not passing the right credentials when it is executing the PowerShell script. Has anyone come across this issue?If you rebooted then it may be possible that your remoting setup was reset, was session based, or winrm service was set to manual, etc.
Try these on the server that was rebooted
get-service winrm
Status Name DisplayName
Running winrm Windows Remote Management (WS-Manag... get-service winrm
Check execution policy settings:
get-executonpolicy if this is restricted... you'll have problems
you can try enable-psremoting you should get:
WinRM is already set up to receive requests on this computer.
WinRM is already set up for remote management on this computer.
We use a similar setup however we use a certificate (installed on agent) and password file w/ thumbprint (on central drive) to run with alternative credentials -
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 -
I am getting error on creating even the empty web application project. The error message is as given below:
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
I am using following build of Visual Studio:
Visual Studio Professional 2013. Version 12.0.30723.00 Update 3
Looks like it is the problem with the installation of the visual studio. But I can't take risk of re-installing now because it would stop my going on development work.
Any would help to resolve this would be appreciated.
P.S. I am also having Visual Studio 2010 and Visual Studio 2012 Ultimate on my system.
Regards, RandeepHello Randeep,
Will you get the same error when creating any other apps, like C# WinForm?
If only web application project has the problem, you can try the following to reset the templates:
Please open Windows Explorer, and navigate to <Visual Studio Installation Path>\Common7\IDE (by default is C:\Program Files \Microsoft Visual Studio 12.0\Common7\IDE);
Delete the ItemTemplatesCache, ProjectTemplatesCache folder;
Open Visual Studio Tools/Developer Command Prompt for VS2013
under Start menu -> All Programs -> Microsoft Visual Studio 2013 -> Visual Studio Tools (run it with Administrator privilege: right-click the program -> Run as administrator);
Run the devenv /InstallVSTemplates switch;
Run the devenv /Setup switch
If all your projects get this error, please try repair the installaiton from control panel first. By the way, can you use Visual Studio Web projects before you get this error? And have you tried to use the Visual Studio Update 4, I see you still used
Update 3, is there any reason for you to still use the Update 3 version?
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I purchased Microsofts "All My Storage Pro" and so fare its been one disappointment after another but I won't go into all the problems I've had just the latest one. I was attempting to upload a file from my c:\Download folder to my OneDrive and
received a "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)". Now I know the file is there because I just installed it from there, So whats the deal? and can I get my money back from Microsoft
for this disaster of an app?
Robert L. MassieI purchased Microsofts "All My Storage Pro" and so fare its been one disappointment after another but I won't go into all the problems I've had just the latest one. I was attempting to upload a file from my c:\Download folder to my OneDrive and
received a "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)". Now I know the file is there because I just installed it from there, So whats the deal? and can I get my money back from Microsoft
for this disaster of an app?
Robert L. Massie -
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 -
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 -
Issue: We have upgraded TFS 2013 App Server and Build Servers from TFS 2013 RTM to TFS 2013 update 4. Everything looks good but we are receiving the below error:
Could not load file or assembly 'LibGit2Sharp, Version=0.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Kindly share your thoughts/inputs to resolve the issueHi John,
Hope there is nothing wrong with the update.
Yesterday, Our developers were troubleshooting the issue with the builds and found that
Build Activities dll has the reference of LibGit2Sharp.dll
version 01.12.0.3051.0. After TFS upgrade, Build activities does not have a reference for the new version of
LibGit2Sharp.dll [required] which has caused the issue in the build process.
Error: Could not load file or assembly 'LibGit2Sharp, Version=0.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Resolution: New version of LibGit2Sharp.dll
was added and referenced to Microsoft.TeamFoundation.Build.Activities.dll
which has resolved the issue with the builds.
I think this should be referenced somewhere regarding TFS Update 4 so that everyone will be able to spot the issue and fix the issue without any issues. -
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:
[COMException (0x80004005): The system cannot find the file specified.
]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +126
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +442
[Exception: Load report failed.]
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 Severinhello, 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.
-
I started getting this error message for the first time today. When I look in the event log I see it every time anyone tries to sync to a mobile device to the exchange server. I've also had this problem trying to connect using
Outlook. I believe it is an IIS issue but I'm not absolutely sure so I'm posting this in the Exchange forum as well.
The event viewer has the following information...
3008
A configuration error has occurred.
5/1/2014 10:41:08 PM
5/2/2014 5:41:08 AM
7539d8a38c8b47869eda3f1749aba08d
1
1
0
/LM/W3SVC/1/ROOT/Microsoft-Server-ActiveSync-75-130434828686436855
Full
/Microsoft-Server-ActiveSync
C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\sync\
SERVER
16284
w3wp.exe
NT AUTHORITY\SYSTEM
ConfigurationErrorsException
Could not load file or assembly 'System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
https://remote.testserver.com:443/Microsoft-Server-ActiveSync/default.eas?User=user.name&DeviceId=ApplC39GQ5xxxxxx&DeviceType=iPhone&Cmd=Ping
/Microsoft-Server-ActiveSync/default.eas
174.224.130.31
False
NT AUTHORITY\SYSTEM
24
NT AUTHORITY\SYSTEM
False
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
I have tried most, if not all, of the different post's suggestions to no avail.
The steps I have taken are as follows...
1. Repaired .Net 4 (Both the client and extended)
2. Uninstalled and reinstalled .Net Framework 4.0.
3. Verified that the dll exists.
4. Checked the applicationHost.config file. It contains the follow statement...
<add name="ServiceModel-4.0" type="System.ServiceModel.Activation.ServiceHttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0"
/>
5. Changed the following line in web.config to include the runtimeVersion...
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0" />
6. Executed aspnet_regiis.exe -iru from the ...\Framework64\v4.0.30319 directory.
7. Went to inetpub\history to use an applicationHost.config file from yesterday but it only has history from 9PM tonight. It probably had what I needed before I started changing it tonight.
I still receive the same error message.
Like I said everything was working yesterday. In fact I didn't hear or see any issue until after 1PM today.
Any help would be very appreciated!Hi,
Please confirm whether users can access their mailboxes from Outlook Web Access or not. We can do the following changes to have a try:
1. In IIS > Application Pools, change the .NET Framework Version to v2.0 and restart IIS service.
2. If it doesn’t work, explore the Default Web site.
3. Renamed the web.config file to web.config.old
4. Reset IIS using iisreset command to have a try.
Thanks,
Winnie Liang
TechNet Community Support
Maybe you are looking for
-
Does apple needs to make a external hard drive?
me personally. i think if apple would make a external hard drive or make the ipad/iphone/ipod compatible with a third party hard drive i wouldnt have a need for a computer the apple system would be a all in one. Im going to get a ipad 2 but was inter
-
TV shows come on line...when?
I missed the season finale of 24! How long after the show was originally broadcast must I wait until it's available on iTunes Music Store?! PS- Don't tell me how it ends!
-
Space around textboxes and images
I'm not familiar with the exact name for this function in the english version (I'm using the Swedish version), but I'll try to explain the problem as well as I can. Whenever I create a new textbox, rectangel or place an image in my document InDesign
-
Photoshop Elements 13 mit der Twain Schnittstelle
How I Scan. Photoshop Elements 13 with the Twain interface Which file should be moved or copied. With element 11 everything was working properly. I work with Win. 8 Wie Scanne ich mit Photoshop Elements 13 mit der Twain Schnittstelle. Welche Datei mu
-
Video won't open in this ver of windows 7
when i try to open a video in photoshop cc, error message says can not play video in this version of windows 7.