Click here to Skip to main content
15,904,828 members
Home / Discussions / C#
   

C#

 
Question3D data visualization Pin
ehsan salehi27-Apr-09 6:47
ehsan salehi27-Apr-09 6:47 
GeneralRe: 3D data visualization Pin
harold aptroot27-Apr-09 7:41
harold aptroot27-Apr-09 7:41 
GeneralRe: 3D data visualization Pin
ehsan salehi27-Apr-09 19:29
ehsan salehi27-Apr-09 19:29 
GeneralRe: 3D data visualization Pin
harold aptroot28-Apr-09 2:12
harold aptroot28-Apr-09 2:12 
GeneralRe: 3D data visualization Pin
ehsan salehi29-Apr-09 1:50
ehsan salehi29-Apr-09 1:50 
GeneralRe: 3D data visualization Pin
harold aptroot4-May-09 3:46
harold aptroot4-May-09 3:46 
Questionformatting data in a datagridview Pin
bwood202027-Apr-09 6:28
bwood202027-Apr-09 6:28 
QuestionHow to get rid of clr20r3 error and show "Office not found" message in the application. Pin
lastpunisher27-Apr-09 5:56
lastpunisher27-Apr-09 5:56 
Hello Smile | :)

I have soft of a half problem, where i know the cause of the problem, but don't know how to solve it exactly.

What i want to achieve: I want to check if outlook, excel and word are installed in the host computer when the user launches the program and inform the user if there are some complications.

My problem: I have application that uses excel, word and outlook. In every computer that has Office installed the program works and i even don't have to publish my application, instead copying the release folder is enough. But the application doesn't even launch on hosts, instead i get cut off very beginning and therefore i can't even show my informative messages, that don't have office installed and i get clr20r3 error.

How far im to solve the problem: I have found a problem cause in the following quote
Reference to problem cause http://social.msdn.microsoft.com/forums/en-US/winformssetup/thread/53c2de93-ab33-41d0-b5dd-7ca5fbfa5c24/[^]
post 4

Hi all,<br />
<br />
I have found the solution to this issue, it is due to dependancies. (I've just found out one of my employee's installed a second program onto the first virtual machine) This is why it gives a filenotfound exception as it is trying to load this program.<br />
<br />
When you use third party dll's that are not installed on windows by default the built in publishing tool inside VS.NET will not include these in the distributable it builds for you. I do not understand why i doesnt do this but i am switching all my distribution to Install Shield from now on.<br />
<br />
To fix your applications what you need to do is to look at your references (in solution explorer and in insertable objects) and make sure that you copy these dll's and dependancys onto the machine you want to install to and do a regsvr32 -i <dll><br />
<br />
I hope this helps you guys,<br />
<br />
Kind Regards,<br />
Chris Allen<br />
Technical Director<br />
UK National Networks LTD</dll>


This post also explained shortly what i can do to solve this problem, tho it didn't help me much.

What i want to achieve: I would like to by pass this error and still be able to launch my program. And then show some informative messages to the user and take necessary actions.

What i have tried to solve the problem: I made sure that i had following 3 DLL files in my release folder and when i published they would be included.
Interop.Microsoft.Office.Interop.Outlook.dll
Interop.Microsoft.Office.Interop.Excel.dll
Interop.Microsoft.Office.Interop.Word.dll
So that all the DLL files for my dependencies in program would be there. And what happened was that i got a bit different error
PLATFORM VERSION INFO
	Windows 			: 5.1.2600.131072 (Win32NT)
	Common Language Runtime 	: 2.0.50727.1433
	System.Deployment.dll 		: 2.0.50727.1433 (REDBITS.050727-1400)
	mscorwks.dll 			: 2.0.50727.1433 (REDBITS.050727-1400)
	dfdll.dll 			: 2.0.50727.1433 (REDBITS.050727-1400)
	dfshim.dll 			: 2.0.50727.1433 (REDBITS.050727-1400)

SOURCES
	Deployment url			: file:///H:/IOMailer.application

IDENTITIES
	Deployment Identity		: IOMailer.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=943730f75ed49f00, processorArchitecture=msil

APPLICATION SUMMARY
	* Installable application.

ERROR SUMMARY
	Below is a summary of the errors, details of these errors are listed later in the log.
	* Activation of H:\IOMailer.application resulted in exception. Following failure messages were detected:
		+ Downloading file:///H:/Application Files/IOMailer_1_0_0_0/IOMailer.exe.manifest did not succeed.
		+ Could not find a part of the path 'H:\Application Files\IOMailer_1_0_0_0\IOMailer.exe.manifest'.
		+ Could not find a part of the path 'H:\Application Files\IOMailer_1_0_0_0\IOMailer.exe.manifest'.
		+ Could not find a part of the path 'H:\Application Files\IOMailer_1_0_0_0\IOMailer.exe.manifest'.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
	No transaction error was detected.

WARNINGS
	There were no warnings during this operation.

OPERATION PROGRESS STATUS
	* [27.04.2009 16:52:45] : Activation of H:\IOMailer.application has started.
	* [27.04.2009 16:52:45] : Processing of deployment manifest has successfully completed.
	* [27.04.2009 16:52:45] : Installation of the application has started.

ERROR DETAILS
	Following errors were detected during this operation.
	* [27.04.2009 16:52:45] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
		- Downloading file:///H:/Application Files/IOMailer_1_0_0_0/IOMailer.exe.manifest did not succeed.
		- Source: System.Deployment
		- Stack trace:
			at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
			at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
			at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
			at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
			at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
			at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
			at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
			at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension)
			at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
		--- Inner Exception ---
		System.Net.WebException
		- Could not find a part of the path 'H:\Application Files\IOMailer_1_0_0_0\IOMailer.exe.manifest'.
		- Source: System
		- Stack trace:
			at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
			at System.Net.FileWebRequest.GetResponse()
			at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
		--- Inner Exception ---
		System.Net.WebException
		- Could not find a part of the path 'H:\Application Files\IOMailer_1_0_0_0\IOMailer.exe.manifest'.
		- Source: System
		- Stack trace:
			at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
			at System.Net.FileWebRequest.GetResponseCallback(Object state)
		--- Inner Exception ---
		System.IO.DirectoryNotFoundException
		- Could not find a part of the path 'H:\Application Files\IOMailer_1_0_0_0\IOMailer.exe.manifest'.
		- Source: mscorlib
		- Stack trace:
			at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
			at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
			at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
			at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
			at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

COMPONENT STORE TRANSACTION DETAILS
	No transaction information is available.

I have also tried to dig into this problem, but in all the explanation there are things that i don't understand and therefore can't rinse out the right solution.

Summary: I hope i have given enough information so you would be able to suggest me with simple solutions Smile | :)

Thanks
Hendrik
AnswerRe: How to get rid of clr20r3 error and show "Office not found" message in the application. Pin
Rolando CC27-Apr-09 6:03
professionalRolando CC27-Apr-09 6:03 
GeneralRe: How to get rid of clr20r3 error and show "Office not found" message in the application. Pin
lastpunisher27-Apr-09 6:23
lastpunisher27-Apr-09 6:23 
AnswerRe: How to get rid of clr20r3 error and show "Office not found" message in the application. Pin
lastpunisher27-Apr-09 8:44
lastpunisher27-Apr-09 8:44 
QuestionCryptography - why can't I load the IV directly? Pin
OriginalGriff27-Apr-09 5:55
mveOriginalGriff27-Apr-09 5:55 
AnswerRe: Cryptography - why can't I load the IV directly? Pin
musefan27-Apr-09 6:01
musefan27-Apr-09 6:01 
GeneralRe: Cryptography - why can't I load the IV directly? Pin
OriginalGriff27-Apr-09 6:13
mveOriginalGriff27-Apr-09 6:13 
QuestionReturn the Stack Trace of another process. Pin
Chris Sims27-Apr-09 5:36
Chris Sims27-Apr-09 5:36 
QuestionStored Procedure Pin
kibromg27-Apr-09 5:34
kibromg27-Apr-09 5:34 
AnswerRe: Stored Procedure Pin
Le centriste27-Apr-09 5:44
Le centriste27-Apr-09 5:44 
AnswerRe: Stored Procedure Pin
Member 103390727-Apr-09 9:00
Member 103390727-Apr-09 9:00 
GeneralRe: Stored Procedure Pin
kibromg28-Apr-09 0:36
kibromg28-Apr-09 0:36 
GeneralRe: Stored Procedure Pin
Member 103390730-Apr-09 4:45
Member 103390730-Apr-09 4:45 
Questionaraye Pin
mostafatajamolian27-Apr-09 5:30
mostafatajamolian27-Apr-09 5:30 
AnswerRe: araye Pin
Nagy Vilmos27-Apr-09 5:52
professionalNagy Vilmos27-Apr-09 5:52 
JokeRe: araye Pin
OriginalGriff27-Apr-09 6:16
mveOriginalGriff27-Apr-09 6:16 
AnswerRe: araye Pin
Rolando CC27-Apr-09 5:53
professionalRolando CC27-Apr-09 5:53 
AnswerRe: araye Pin
Rolando CC27-Apr-09 6:19
professionalRolando CC27-Apr-09 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.