473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Strange problem after using OpenFileDialog

We have a very strange problem when we are using the OpenFileDialog component.
Consider the following code:

---------------

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.OpenFileDialog1.InitialDirectory = "a:\"
Me.OpenFileDialog1.ShowDialog()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim WS As New localhost.Service1
WS.Hello()
End Sub
---------------

First we click "Button1" this shows us the filedialog window. this works fine, we insert a diskette and select the file we want to use.

Now we click "Button2" which calls a webservice in my local PC. When doing de NEW statement the progam asks for the the diskette again!!! (Why we don´t now) If we do not insert the diskette the following error is thrown:

(Sorry only got the spanish exception)
Excepción no controlada del tipo 'System.Runtime.InteropServices.ExternalException' en system.dll

Información adicional: No se puede ejecutar el programa. El comando que se estaba ejecutando era "c:\windows\microsoft.net\framework\v1.1.4322\csc. exe" /noconfig @"C:\DOCUME~1\err9839\CONFIG~1\Temp\w0e875t3.cmdli ne".

Can somebody tell why this is happening!!!! because we realy don´t know what is going on here.

Thanks

Richard Ruben

Jul 21 '05 #1
0 1465

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Markus Nilsson | last post by:
This code: --code start-- private void WriteFile() { StreamWriter sw = new StreamWriter(File.Create("test.txt")); sw.Write("test"); sw.Close();
0
by: Andrija | last post by:
Hello I have a strange bug in OpenFileDialog in my application. For some reason it refuses to display thumbnails. If I open a new project and start OpenFileDialog in it, it displays thumbnails....
6
by: chau_fai | last post by:
I have a window Form called "Form2". There is only one button and a panel returned from a static method of the "Coord" in this form. In the panel returned, there is a button that can choose image...
1
by: Austin Jan | last post by:
Hi all, In this code snip try { using(OpenFileDialog dlg = new OpenFileDialog()) { //do something }
2
by: Willem | last post by:
Hi, I am creating a web application in asp.net in which I have to show an openfiledialog box to select the file and display the selected file with its path in a text box. I try to solve this...
0
by: Richard Ruben | last post by:
We have a very strange problem when we are using the OpenFileDialog component. Consider the following code: --------------- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
8
by: marcus.kwok | last post by:
I am having a weird problem and I have can't figure out why it is happening. I create an OpenFileDialog and set a filename filter. When the dialog first opens, the filter works correctly, and...
3
by: Martijn Mulder | last post by:
It strikes me that System.Windows.Forms.OpenFileDialog seems te 'remember' which directory it was in last, even when a new OpenFileDialog-object is created for every access to the file system....
4
by: nightscorpion | last post by:
Hello Gurus, i implemented the OpenFileDialog in my Windows Form Applications and it worked perfectly fine.However when it was run on a remote desktop i got the below error . ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.