Re: Strange problem when not in debugger



Positive that the string return the same value. Even when I hardcode the URL + path without calling any variable I get the same error.

I running a debug version outside visual studio,yes.

The timestamps are correct, The exe is newer than the .cs files ( a few minutes).

"Family Tree Mike" <FamilyTreeMike@xxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht news:E269F45E-FEA9-4C92-BDE5-5BA13BB2C093@xxxxxxxxxxxxxxxx
Two and a half questions:

Are you positive the code returns the same string for F1.FTPServer in all
cases?

Are you running the debug version from outside Visual Studio, or the release
version? Are you sure the external version timestamp and the source code
time stamps match?



"Rinaldo" wrote:

The translated text is from dutch and I can't chage it easaly because my
whole system is dutch.

I've tryed
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new
Uri("ftp://ftp.lampiesoft.nl"; + FTnaam));
where FTnaam = /backup/map/file.pdf

I've removed FTnaam, but the same error appears.

The strange thing is, while debugging in debugger there is no error.


"Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx> schreef in bericht
news:op.t89zg9ga8jd0ej@xxxxxxxxxxxxxxxxxxxxxxx
> On Mon, 07 Apr 2008 21:10:16 -0700, Rinaldo
> <zwartehoofdpiet@xxxxxxxxxxxxxxxxxx> wrote:
>
>> Hi Peter,
>>
>> The error is: The type-initialisation function for System.Uri has made
>> an exception
>
> That's obviously not the literal text for the exception. I'm assuming > you
> translated it from some other language? Would it be possible to
> temporarily change your system's language so that it emits the > exception
> in English?
>
>> 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
>
> It that really the text that winds up in "uri"? If so, I'd suggest > that
> the third '/' character after "ftp:" is probably causing a problem.
>
> Other than that, your reply does not appear to describe the exact data
> being used. I understand if you don't feel you can include the actual
> server and file names, but the fact is given that those are critical in
> the initialization of the Uri instance, you _must_ tell us precisely > the
> exact strings for that information to be useful in answering your
> question.
>
> Still, it may well be that even if you provide those details, the > answer
> can't be provided without a concise-but-complete code sample reliably
> demonstrating the problem.
>
> Pete

.



Relevant Pages

  • RE: Detailed ASP.Net info not displaying in browser
    ... HTTP 500 page when an exception is thrown from the web service. ... at VOSE.Data.DataRequest.dr_DB2Process.DeleteCommRows(String company, String ... objQueue, tOrderManagementIndicator omindicator, Int32 intTriggerId) in ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.xml)
  • RE: Detailed ASP.Net info not displaying in browser
    ... HTTP 500 page when an exception is thrown from the web service. ... at VOSE.Data.DataRequest.dr_DB2Process.DeleteCommRows(String company, String ... objQueue, tOrderManagementIndicator omindicator, Int32 intTriggerId) in ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.xml)
  • Re: App_data - ASPNETDB.MDF
    ... is only because I want my site work, without exception. ... Server Error in '/' Application. ... serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Could not load file or assembly...
    ... The problem shows when EL exception handling ... context, ExceptionHandlerData objectConfiguration, IConfigurationSource ... configurationSource, ConfigurationReflectionCache reflectionCache) ... context, String name, IConfigurationSource configurationSource, ...
    (microsoft.public.dotnet.framework)
  • Re: Error handling not working
    ... Dim exception As Exception = Server.GetLastError.GetBaseException ... Dim ErrorString as String ... GetBaseException retrieves the "real" innerException object. ... CustomErrors in my webconfig file: ...
    (microsoft.public.dotnet.framework.aspnet)

Loading