ihr hab nicht zuf��lig eine webconfig da ?

hab noch nicht viel ahnung von asp.net, wo muss ich die reinkopieren ?

mFg

C
----- Original Message -----
From: "Kloberg Mac (LAM)" <[EMAIL PROTECTED]>
To: "aspDEdotnet" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 4:07 PM
Subject: [aspdedotnet] RE: Hilfe Mappath


In dem Fall ists natuerlich schwierig zu sagen was der Fehler eigentlich
ist. Was du machen kannst um den eigentlichen Error zu sehen:

1. Ruf die Seite von dem Server aus auf wo deine Applikation drauf laeuft
(sieht so aus als sei das nicht deine lokale maschine).
2. Folge den Instruktionen und bau ein <customErrors mode="Off"/> in deine
web.config rein. Sollte man a ber spaeter wieder rausmachen, wegen
Sicherheit und so.

hth
--
Gruesse,
Mac Kloberg
LIEBHERR AMERICA INC.
http://www.liebherr.com


> -----Original Message-----
> From: Christian [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 10:08 AM
> To: aspDEdotnet
> Subject: [aspdedotnet] RE: Hilfe Mappath
>
>
> leider immer noch nicht
>
> ich bekomme auch keine exakte fehlermeldung sondern dieses
> hier, weiss nicht
> what to do :
>
>
>
> Server Error in '/' Application.
>
>
> Runtime Error
> Description: An application error occurred on the server. The
> current custom
> error settings for this application prevent the details of
> the application
> error from being viewed remotely (for security reasons). It
> could, however,
> be viewed by browsers running on the local server machine.
>
> Details: To enable the details of this specific error message
> to be viewable
> on remote machines, please create a <customErrors> tag within
> a "web.config"
> configuration file located in the root directory of the current web
> application. This <customErrors> tag should then have its
> "mode" attribute
> set to "Off".
>
> <!-- Web.Config Configuration File -->
>
> <configuration>
>     <system.web>
>         <customErrors mode="Off"/>
>     </system.web>
> </configuration>
>
>
> Notes: The current error page you are seeing can be replaced
> by a custom
> error page by modifying the "defaultRedirect" attribute of
> the application's
> <customErrors> configuration tag to point to a custom error page URL.
>
> <!-- Web.Config Configuration File -->
>
> <configuration>
>     <system.web>
>         <customErrors mode="RemoteOnly"
> defaultRedirect="mycustompage.htm"/>
>     </system.web>
> </configuration>
>
>
>
>
> hab jetzt den path so ge�ndert:
>
> File1.PostedFile.SaveAs(Server.MapPath("/v1/V2/upload/") + "\" +
> StrFileName);
>
>
> Danke
>
> C.
>
>
> ----- Original Message -----
> From: "Kloberg Mac (LAM)" <[EMAIL PROTECTED]>
> To: "aspDEdotnet" <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 3:40 PM
> Subject: [aspdedotnet] RE: Hilfe Mappath
>
>
> Und welche? Waehre schon hilfreich... ;)
>
> Aehem, vielleicht hab ich selbst was uebersehen, probier mal:
>
> Server.MapPath("/verzeichnis1/verzeichnis2/upload") + "\" +
> StrFileName
>
> hth
> --
> Gruesse,
> Mac Kloberg
> LIEBHERR AMERICA INC.
> http://www.liebherr.com
>
>
> > -----Original Message-----
> > From: Christian [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 01, 2002 9:40 AM
> > To: aspDEdotnet
> > Subject: [aspdedotnet] RE: Hilfe Mappath
> >
> >
> > kommt leider immer noch eine fehlermeldung :-(
> >
> >
> > ----- Original Message -----
> > From: "Kloberg Mac (LAM)" <[EMAIL PROTECTED]>
> > To: "aspDEdotnet" <[EMAIL PROTECTED]>
> > Sent: Friday, March 01, 2002 3:25 PM
> > Subject: [aspdedotnet] RE: Hilfe Mappath
> >
> >
> > Probier mal:
> >
> > Server.MapPath("/verzeichnis1/verzeichnis2/upload/") + StrFileName
> >
> > hth
> > --
> > Gruesse,
> > Mac Kloberg
> > LIEBHERR AMERICA INC.
> > http://www.liebherr.com
> >
> >
> > > -----Original Message-----
> > > From: Christian [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 01, 2002 9:29 AM
> > > To: aspDEdotnet
> > > Subject: [aspdedotnet] Hilfe Mappath
> > >
> > >
> > > Hi Liste,
> > >
> > > ich habe das folgende Problem. Ich m�chte, dass eine Datei in
> > > ein bestimmtes
> > > Verzeichnis geschrieben wird. Nur leider klappt das mit dem
> > > Mappath befehl
> > > nicht so wie ich es will
> > >
> > > Verzeichnisstruktur:     <root>/verzeichnis1/verzeichnis2/upload/
> > >
> > > Code:
> > >
> > > <script language="C#" runat="Server">
> > > //Event Handler for the upload button
> > > void UploadFile(object Sender,EventArgs E)
> > > {
> > > if (File1.PostedFile !=null) //Checking for valid file
> > > {
> > > // Since the PostedFile.FileNameFileName gives the entire
> > path we use
> > > Substring function to rip of the filename alone.
> > > string StrFileName =
> > > File1.PostedFile.FileName.Substring(File1.PostedFile.FileName.
> > > LastIndexOf("\
> > > \") + 1) ;
> > > string StrFileType = File1.PostedFile.ContentType ;
> > > int IntFileSize =File1.PostedFile.ContentLength;
> > > //Checking for the length of the file. If length is 0 then
> > file is not
> > > uploaded.
> > > if (IntFileSize <=0)
> > > Response.Write(" <font color='Red' size='2'>Dateiupload " +
> > > StrFileName + "
> > > misslungen. </font>");
> > > else
> > > {
> > >
> > > ______PROBLEM______
> > >
> > > File1.PostedFile.SaveAs(Server.MapPath(".\\verzeichnis1\verzei
> > > chnis2\upload\
> > > " + StrFileName));
> > > Response.Write( "<font color='green' size='3'>Die Datei " +
> > > StrFileName + "
> > > des Types " + StrFileType + " und der Gr��e " +
> > > IntFileSize.ToString() + "
> > > Byte, wurde erfolgreich �bertragen.</font>");
> > > }
> > > }
> > > }
> > > </script>
> > >
> > >
> > > Vielen Dank
> > >
> > > C.
> > >
> > >
> > >
> > >
> > >
> > > | [aspdedotnet] als [EMAIL PROTECTED] subscribed
> > > | http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
> > > | Sie k�nnen sich unter folgender URL an- und abmelden:
> > > | http://www.dotnetgerman.com/listen/aspDEdotnet.asp
> > >
> >
> > | [aspdedotnet] als [EMAIL PROTECTED] subscribed
> > | http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
> > | Sie k�nnen sich unter folgender URL an- und abmelden:
> > | http://www.dotnetgerman.com/listen/aspDEdotnet.asp
> >
> >
> >
> >
> > | [aspdedotnet] als [EMAIL PROTECTED] subscribed
> > | http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
> > | Sie k�nnen sich unter folgender URL an- und abmelden:
> > | http://www.dotnetgerman.com/listen/aspDEdotnet.asp
> >
>
> | [aspdedotnet] als [EMAIL PROTECTED] subscribed
> | http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
> | Sie k�nnen sich unter folgender URL an- und abmelden:
> | http://www.dotnetgerman.com/listen/aspDEdotnet.asp
>
>
>
> | [aspdedotnet] als [EMAIL PROTECTED] subscribed
> | http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
> | Sie k�nnen sich unter folgender URL an- und abmelden:
> | http://www.dotnetgerman.com/listen/aspDEdotnet.asp
>

| [aspdedotnet] als [EMAIL PROTECTED] subscribed
| http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
| Sie k�nnen sich unter folgender URL an- und abmelden:
| http://www.dotnetgerman.com/listen/aspDEdotnet.asp




| [aspdedotnet] als [email protected] subscribed
| http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
| Sie k�nnen sich unter folgender URL an- und abmelden:
| http://www.dotnetgerman.com/listen/aspDEdotnet.asp

Antwort per Email an