VSTO.dll The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Hello,
I'm trying to install a VSTO on a clients machine and get the following error message.
Could this be something wrong with the .Net Version?
Application Domain: AWAddinInstaller.exe
Assembly Codebase: update files/AWAddinInstaller.exe
Assembly Full Name: AWAddinInstaller, Version=9.2.0.14, Culture=neutral, PublicKeyToken=null
Assembly Version: 9.2.0.14
Assembly Build Date: 11/12/2013 12:12:58 PM
Exception Source: mscorlib
Exception Type: System.IO.FileNotFoundException
Exception Message: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Exception Target Site: nLoadFile
---- Stack Trace ----
System.Reflection.Assembly.nLoadFile(path As String, evidence As Evidence)
AWAddinInstaller.exe: N 00000
System.Reflection.Assembly.LoadFile(path As String)
AWAddinInstaller.exe: N 00084
AWAddinInstaller.AWAddinInstaller.RegisterAddin(forceVSTO As Boolean)
AWAddinInstaller.exe: N 00602
Hello AntronD,
The installer complained that The system cannot find the file specified. However I'm confused that why the VSTO is related to AWAddinInstaller.exe.
Could you please navigate to your %temp% folder and search for your VSTO logs out and paste it here? I need it to check for details.
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.
Similar Messages
-
Fusion log:
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\PROGRA~1\MICROS~2\Office12\OUTLOOK.EXE
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = XP-2007\Administrator
LOG: DisplayName = Blue Jeans Outlook Addin, Version=3.0.233.24954, Culture=neutral, processorArchitecture=MSIL
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Blue Jeans Outlook Addin, Version=3.0.233.24954, Culture=neutral, processorArchitecture=MSIL | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Program Files/Blue Jeans/Outlook Addin/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = OUTLOOK.EXE
Calling assembly : (Unknown).
===
LOG: Start binding of native image Blue Jeans Outlook Addin, Version=3.0.233.24954, Culture=neutral, PublicKeyToken=null.
WRN: No matching native image found.
LOG: IL assembly loaded from C:\Documents and Settings\Administrator\Local Settings\Application Data\assembly\dl3\LZMMEM67.CTT\397DNQ77.1W9\c337c5e7\0023f77f_891ed001\Blue Jeans Outlook Addin.dll.
The required correct settings file is present in the location C:\Program Files\Blue Jeans\Outlook Addin but the .NET created user.config in AppData have wrong entries. The machine is installed with VSTO 2010 and .NET 4.0 Client Profile. Also the KB 976477 is
already installed the registry entry EnableLocalMachineVSTO (KB 976811) is made. May someone please give me a clue on why the user.config file is created with wrong entries and also, why this assembly binding error happening?
Thanks in advance.
Prasadthis might help:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/2601334c-d5cb-4f51-a99a-4d8ea9217938/userconfig-file-problem-after-upgrading-to-outlook-2010-from-2007?forum=vsto
VSTO Word add-in user.config lost every update -
When I start Firefox, the following message appears before the home page opens:
"COMMONSHELL: McShield.dll
The specified resource language ID cannot be found in the image file.
McShield.dll: The system cannot find the file specified."
I click OK, Firefox opens normally and everything seems to operate as expected, no further problems.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.
-
I am using labview2009, when I create a installer, there is an error report as blow:
Error: Windows SDK function returned an error. (Error code -12)
Error accessing a resource module "E:\工作资料\项目资料\绿盾\builds\Untitled Project 1\...\Volume\supportfiles\customResource2052.dll".
The system cannot find the file specified.
*** Error Details:
Error in MDF API function: _MDFBuildDist_Build
Error in MetaToolbox::UpdateResourceString.
strId: 3; New String: ; LangId: 2052
Windows function LoadLibraryEx returned an error. Error code: 2
*** End Error ReportHi super008,
The error can be due to some improper installation of a driver or any NI SW that the Installer requires.
Have you recently installed or Uninstalled any NI Software ?
Also -
You can see in the KB below -
That it could also happen due to some incompatibility with the .NET framework or adding exception in the AntiVirus.
SDK Error Code -12 When Building a LabVIEW Installer or Installing LabVIEW
http://digital.ni.com/public.nsf/allkb/AFC375154EFBD6AE8625760B005FB723?OpenDocument
One more question :
Do you have any idea what is this resource :
E:\工作资料\项目资料\绿盾\builds\Untitled Project 1\...\Volume\supportfiles\customResource2052.dll ????
is "Untitled Project 1" your project ? -
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 -
I am trying to use SQL Server 2008 Developer on Windows Server 2008. Whenever I try to connect to the server, I get this error: "Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
or one of its dependencies. The system cannot find the file specified."
I found some info at
http://blogs.msdn.com/b/ashishme/archive/2009/08/15/could-not-load-file-or-assembly-microsoft-sqlserver-diagnostics-strace-version-10-0-0-0-culture-neutral-publickeytoken-89845dcd8080cc91-or-one-of-its-dependencies-the-system-cannot-find-the-file-specified.aspx,
but this didn't help me because it is not on my system, even after reinstalling both SQL Server and .NET Framework 4. I also saw a this page: http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/1115cd55-721d-4974-99b1-d142d1e6a927,
but this also didn't fix my problem.
What can I do, or where can I get the missing assembley?
Thanks in advance.You can get the missing assembly (Microsoft.SqlServer.Diagnostics.STrace.dll)
by installing the "Shared Features" of SQL Server 2008.
You could only install SQL Server 2008
R2 (any edition) on Windows 7.
Do not install more than 1 SQL Server 2008 R2 edition
into the same computer; Some of the components are not compatible.
E.g: BIDS from R2 Express Advance edition cannot
recognize Integration Service from R2 Enterprise Trial edition - it would throw above missing dll error. -
Hi All,
I am using Virtual box to connect to Sharepoint 2013 VPC. Due to an unexpected sutdown of my machine the VPC got some issue. Now I restored it using my bak up file. But after this when I deploy my sharepoint 2013 farm solution Iam getting the following error.
Error occurred in deployment step 'Recycle IIS Application Pool': Could not load file or assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified..
Editing the web.config and adding dependentAssembly didnt worked for me.
What could be the issue? Any suggestions ?
Thanks in advance...
Regards
Nimisha
[email protected]Hi,
Please try to do as follows:
1. Check your farm solution whether reference the Microsoft.SharePoint.dll. Or try to add the Microsoft.SharePoint.dll into the bin folder.
2. Execute the iisreset command.
3. Create a new farm solution and check whether the issue still occurs or not.
Best Regards
Dennis Guo
TechNet Community Support -
Getting ComException (0x80004005):The system cannot find the file specified
Our customer is getting an error from her remote location via the internet, running a report that has not changed in a year. None of our other customers are having this problem. When we sign in from our office with her credentials, we do not get the error. We've had her reboot, clear cache, etc. She has tried from Firefox and IE ... same result.
She is running WindowsXP and signs into our website VB program on a 2008Server under IIS aspx.net and SQL Server. We are using Crystal Reports 2008 v12.2.0.290 full.
The error is:
[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) +95
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +356
[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +419
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +895
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84
nettax.newtax_cr_1.GenerateReport(String Reportname) in F:\the cloud nettax with codebehind\nettax\newtax_cr_1.aspx.vb:137
nettax.newtax_cr_1.page_load(object sender, eventargs e) in F:\the cloud nettax with codebehind\nettax\newtax_cr_1.aspx.vb:1316
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Again, we have made no changes ... it has just stopped working for her, yet other remote users are creating the report just fine .... BUT, each has their own SQL database that the report is being created from. Any help??I moved your post to the .NET - SAP Crystal Reports forum.
Only idea I have at this time is to get [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] on this. You'll have to download it on to the server. Filter for the worker process so you limit the log size. Then have the customer attempt to load the report. Once she gets the error, you can save the log. Look for any errors re. load of files (DLLs, rpt files, etc.) and also look for "Access Denied" errors on files as well as registries.
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] -
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? -
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. -
Hi,
I am facing an issue when I deploy the application to Azure. Not sure what's causing the issue, It runs fine when debugged locally.
XmlSerializer s = new XmlSerializer(typeof(List<SomeClass>));
Below exception is thrown :
Could not load file or assembly 'mscorlib.XmlSerializers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException
I have set to "CopyToLocal = True" for System.Xml dll in the references, this does not fix the issue. The application and all its required projects are running under .NET 4.5.
Anybody faced this issue earlier ? Appreciate any help.
Thanks.I'm guessing now. but:
The system might be generating a serializer for the whole of mscorlib, which could be very slow.
You could probably avoid this by wrapping the system type in your own type and serialising that instead - then you'd get a serializer for your own assembly.
You might be able to build the serializer for mscorlib with sgen.exe, which was the old way of building serializer dlls before it got integrated into VS.
Davide 'n3wt0n' Benvegnù
If you found my answer helpful, please vote it.
If you think that my answer resolve your issue, plase "Mark it as answer". -
I am getting following error message when I publish my code on server. I am using VS 2010 as development tool and we are using framework 2.0.
Could not load file or assembly 'CrystalKeyCodeLib, Version=9.1.5000.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies.
The system cannot find the file specified.I was the error from my side I was refering wrong DLL.
-
Hi,
Our development team is trying to run a report on our report server through web application but they are getting the below error. Report Viewer both version 10 and 11 are already installed on our reporting server.
[System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
The files are in place in assembly folder 'C:\Windows\assembly' and DLLs are also in place in folder 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer.
Can anyone please help us with this issue.
ThanksHi Saurabh,
This error means you're using the SQL Server Reporting Services ReportViewer control in your web application and the server can't find the proper DLL.
Please check details information below to add the 'Microsoft.ReportViewer.WebForms.dll 10.0.0.0 to see if your problem will be resolved:
Go to right click on project name to select the properties
Check the References on the left and click "Add", then click Browse to the path "C:\Windows\assembly\GAC_msil" to select Microsoft.ReportViewer.WebForms.dll 10.0.0.0 , then click ok
If above didn't help. please also the web.config file which path like:
C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportManager
C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer
Please check to add below configuation:
<system.web>
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
validate="false" />
</httpHandlers>
</system.web>
Similar thread in below article for your reference:
http://praveenbattula.blogspot.com/2010/03/fix-to-report-viewer-problems-in-iis-7.html
User can not run a winForm with the ReportView Control
Can not load Reportviewer
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
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.
-
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
Maybe you are looking for
-
Autopopulate PO instructions to vendor in shopping cart in SRM 7.0
Dear Experts, I need to autopopulate PO instructions (Free Text) in SRM shopping cart for each product category at item level. Auto-populate instructions to vendor based on product category (ability to add or remove on SC or PO). Instructions may be
-
What is / does grock SRVM.DATABASE.NODEAPPS ???
Hey, I am not quite sure that my configuration is ok. What is grock ??? Haven´t seen it in the past... Are these messages normal ? They are repeating every minute. I get these messages in the ocssd.log CSSD]2011-02-01 08:48:02.623 [2600392464] >TRACE
-
Most of the music that I purchased on I Tunes I bought and downloaded on my old I Mac which I replaced with this I Mac about 9 months ago. When I"m using I Movie on this I Mac and try to open I Tunes tab in I Movie, most of the files are not accessi
-
Trying to understand character encoding.
I am new to Java, new to our appliction and I am seeing something being done in the code that I do not understand. It works, sort of, so maybe I should not care, but it puzzles me why it is being done and was hoping someone out there could clue me in
-
Reverse Proxy Configuration Help
I am running OFM 11.1.1.6. Web Cache is running on port 8888. Portal's OHS (the WebCache origin server) is running on 7777. Reports' OHS (for /reports/rwservlet) is running on 8890. Non-Oracle Apache 2.2 is running as a reverse SSL proxy for Portal o