Nein ich meinte das er eine Exception schmeißt, obwohl ein Try/Catch
Block drumrum ist.

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Alexander Zeitler
Gesendet: Freitag, 17. Oktober 2003 13:24
An: [EMAIL PROTECTED]
Betreff: Re: [Asp.net] Exceptions nicht Exception?


>
>c:\inetpub\wwwroot\ostermeyer\Templates\template.ascx 
>Description: An unhandled exception occurred during the execution of
the
>current web request. Please review the stack trace for more information
>about the error and where it originated in the code. 
>
>Exception Details: System.IO.FileNotFoundException:
>c:\inetpub\wwwroot\ostermeyer\Templates\template.ascx
>
>Source Error: 
>
>
>Line 36:                       // In /Templates liegt die Hauptseite
>Line 37:                       try {
>Line 38:
>plcContent.Controls.Add(Page.LoadControl("Templates/template.ascx"));
>Line 39:                       } catch (Exception ex) {
>Line 40:                               Label myLabel = new Label();
>

wenn ich das richtig verstanden habe, liegt die Seite im
gleichen Verzeichnis wie das Template. Dann mußt Du 
entweder .LoadControl("/Templates/template.ascx"))
oder .LoadControl("template.ascx")) verwenden.

Oder ich habs falsch verstanden.

Gruss

Alex

_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net

_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net

Reply via email to