This is my Code , i publish my Windows Application Form with ClickOnce ,
There is a button in form it is supposed to start an installation of the Screen Share software when it is clicked.
Here is my Publish Folder Path : \\192.168.0.1\PUBLiC\Akmal\ProcessEndLastFTP\
Here is my Installation URL : \\192.168.0.1\PUBLiC\Akmal\ProcessEndLastFTP\
File is placed on UNC Path ,
PROBLEM
When i publish it , it starts the installation of windows form. But when i click the Button it shows an exception
System.ComponentModel.Win32Exception The network name cannot be fount etc....
NOTE
It invoke the installation behind button in windows XP but shows Exception in WIndows 7
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace ApplicationShield
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Process p = new Process();
try
{
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = @"\\192.168.0.1\public\Akmal\IBTalk_Screenshare.exe";
p.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
MessageBox.Show("Installation Canceled");
}
}
}
}