[Mono-bugs] [Bug 350543] New: Rtf solved but process.start bug
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Dec 23 06:36:53 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=350543
Summary: Rtf solved but process.start bug
Product: Mono: Runtime
Version: SVN
Platform: i686
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: interop
AssignedTo: mono-bugs at ximian.com
ReportedBy: surfzoid2002 at yahoo.fr
QAContact: mono-bugs at ximian.com
Found By: DeveloperNet
with the last version this feature is corectly implemented :
https://bugzilla.novell.com/show_bug.cgi?id=342516
But now, when click on a web link there is a strange error, about a parameter i
don't use!
The code from designer file :
//
// process1
//
this.process1.StartInfo.Domain = "";
this.process1.StartInfo.LoadUserProfile = false;
this.process1.StartInfo.Password = null;
this.process1.StartInfo.StandardErrorEncoding = null;
this.process1.StartInfo.StandardOutputEncoding = null;
this.process1.StartInfo.UserName = "";
this.process1.SynchronizingObject = this;
//
The code from the source file :
private void richTextBox1_LinkClicked(object sender,
LinkClickedEventArgs e)
{
try
{
this.process1.StartInfo.FileName = e.LinkText;
this.process1.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + Environment.NewLine +
ex.StackTrace, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Debug.WriteLine(DateTime.Now + ": " + ex.Message +
Environment.NewLine + ex.StackTrace);
}
}
My form "About.cs" is localized, when i run the app compiled with MS VC i have
this error message when click on a web link :
UserShellExecute must be false if an explicit UserName is specified when
starting a process
at System.Diagnostics.Process.Start_common
(System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process
process) [0x00000]
at System.Diagnostics.Process.Start () [0x00000]
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
at CsObexFtp.About.richTextBox1_LinkClicked (System.Object sender,
System.Windows.Forms.LinkClickedEventArgs e) [0x00000]
But if i compil the app with MD, when i open the form i have :
Exception has been thrown by the target of an invocation.
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00082] in
/root/tmp/mono-latest/mono-20071223/mcs/class/corlib/System.Reflection/MonoMethod.cs:163
at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object
value, BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] index, System.Globalization.CultureInfo culture) [0x00064] in
/root/tmp/mono-latest/mono-20071223/mcs/class/corlib/System.Reflection/MonoProperty.cs:249
at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object
value, System.Object[] index) [0x00000] in
/root/tmp/mono-latest/mono-20071223/mcs/class/corlib/System.Reflection/PropertyInfo.cs:102
at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName,
System.Globalization.CultureInfo culture) [0x0012a] in
/root/tmp/mono-latest/mono-20071223/mcs/class/System/System.ComponentModel/ComponentResourceManager.cs:91
at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName) [0x00000] in
/root/tmp/mono-latest/mono-20071223/mcs/class/System/System.ComponentModel/ComponentResourceManager.cs:54
at CsObexFtp.About.InitializeComponent () [0x00153] in
/home/eric/Projects/CobexFtp/CobexFtp/cs-obexftp/trunk/src/About.Designer.cs:64
at CsObexFtp.About..ctor () [0x0000d] in
/home/eric/Projects/CobexFtp/CobexFtp/cs-obexftp/trunk/src/About.cs:48
at (wrapper remoting-invoke-with-check) CsObexFtp.About:.ctor ()
at CsObexFtp.MainForm.AboutToolStripMenuItemClick (System.Object sender,
System.EventArgs e) [0x00000] in
/home/eric/Projects/CobexFtp/CobexFtp/cs-obexftp/trunk/src/MainForm.cs:362
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list