Re: Strange problem when not in debugger
- From: "Rinaldo" <zwartehoofdpiet@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 8 Apr 2008 06:10:16 +0200
Hi Peter,
The error is: The type-initialisation function for System.Uri has made an exception
private void Upload(string filename, string FTnaam) // filename @"c:\'map\somefile.pdf FTnaam /backup/map/somefile.pdf
{
FileInfo fileInf = new FileInfo(filename);
string uri = "ftp://" + F1.FTPserver + FTnaam; // ftp:///ftp.someserver.nl/backup/map/somefile.pdf
FtpWebRequest reqFTP;
// Create FtpWebRequest object from the Uri provided
reqFTP = (FtpWebRequest) FtpWebRequest.Create(new Uri("ftp://" + F1.FTPserver + FTnaam)); // error
The maps are already created by another routine that is working.
"Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx> schreef in bericht news:op.t89qwkqz8jd0ej@xxxxxxxxxxxxxxxxxxxxxxx
On Mon, 07 Apr 2008 15:00:59 -0700, Rinaldo <zwartehoofdpiet@xxxxxxxxxxxxxxxxxx> wrote:
Hi,
When I start my program in the debugger, there is no problem, but when not I get an exception.
What exception do you get? What are the values you're passing to the Create() method?
It's possible that with answers to those questions, an explanation can be given. But if not, you're going to have to post a concise-but-complete code sample that reliably demonstrates the problem.
Pete
.
- Follow-Ups:
- Re: Strange problem when not in debugger
- From: Peter Duniho
- Re: Strange problem when not in debugger
- References:
- Strange problem when not in debugger
- From: Rinaldo
- Re: Strange problem when not in debugger
- From: Peter Duniho
- Strange problem when not in debugger
- Prev by Date: Just checking: BindingList<T> is the only generic list supporting change notifications?
- Next by Date: Re: 3 questions related to ImageList, ListView and ComboBox
- Previous by thread: Re: Strange problem when not in debugger
- Next by thread: Re: Strange problem when not in debugger
- Index(es):
Relevant Pages
|
Loading