Kourvoisier

Application has encountered a problem and needs to close.

1. My code debugs and runs perfectly fine.

2. I publish my application to a shared file server.

3. I log on to the target machine and browse to the folder I published my application files.

4. I click the setup.exe

5. It begins verifying application requirements.

6. Are you sure u want to install this application dialog pops up - Install or Don't Install button

7. I click the install button.

8 Acts as if it begins to install then Error -

{APPLICATION NAME} has encountered a problem and needs to close. We are sorry for the inconvience..

9. Button that says Send Error Report and button that says Dont Send

10. Also hyperlink on form that says "What data does this error report contain"

11. If i click the link gives me some wierd information - keywords in the info below

Event Type: clr20r3 Mscorlib system.io.directorynotfound

It does not tell me what the problem is.

I am clueless. can somebody help me please.

Thanks in advance

paul



Re: .NET Framework Setup Deploying Visual C# express application Fails on target cpu

insik

Does the target machine has the .net runtime




Re: .NET Framework Setup Deploying Visual C# express application Fails on target cpu

Kourvoisier

.net framework 1.0 is installed

.net framework 2.0 is installed

please help me on this one. Thanks!!!





Re: .NET Framework Setup Deploying Visual C# express application Fails on target cpu

Kourvoisier

Would Someone please respond to this thread. I need help asap as my deadline is approaching like a bat out of hell!!!!





Re: .NET Framework Setup Deploying Visual C# express application Fails on target cpu

Jabba dabba do

Excactly the some problem here cant find what to do about it either. though instead of:

"Event Type: clr20r3 Mscorlib system.io.directorynotfound" i get

"Event Type: clr20r3 Mscorlib system.io.filenotfound"

help appriciated





Re: .NET Framework Setup Deploying Visual C# express application Fails on target cpu

Kourvoisier

Once again i ask does anyone know what the problem is

any have a clue as to what could have possibly went wrong here.

help well be very much appreaciated...





Re: .NET Framework Setup Deploying Visual C# express application Fails on target cpu

Dave4510

I had the same problem today in VB.net 2005. It ended up being the way I referenced a network drive. I used the mapped drive name. Example K:\. This ran fine in testing off my pc, but the server it was running off of did not recognize K:\. I had to reference the drive with the full network path. Hope this can help you out.



Re: .NET Framework Setup Deploying Visual C# express application Fails on target cpu

Gabriel Lozano-Moran

Using tools like Process Monitor or File Monitor you can see what directory and or file could not be located and maybe this will ring a bell:






Re: .NET Framework Setup Deploying Visual C# express application Fails on target cpu

Kourvoisier

Thanks for the help. In my initial form load method i was trying to write to a file or open a file in a directory that did not exist. I manually created the directory on the target computer and everything worked just fine.

After looking a little deeper when it was erroring out i did notice that the application did install on the target cpu because it was in the add/remove programs list.

So it basically was a file did not exist run time error exception that i did not catch in my try catch clause. Thanks again guys for helping figure this one out.

Kourvoisier