Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Che errore č?

  1. #1

    Che errore č?

    ciao,
    in locale funziona perfettamente il mio script, poi appena lo metto sul server ricevo questo errore.

    sapete dirmi di cosa si tratta?

    The given path's format is not supported.
    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.NotSupportedException: The given path's format is not supported.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [NotSupportedException: The given path's format is not supported.]
    System.Security.Util.StringExpressionSet.Canonical izePath(String path, Boolean needFullPath) +230
    System.Security.Util.StringExpressionSet.AddExpres sions(String[] str, Boolean checkForDuplicates, Boolean needFullPath) +461
    System.Security.Permissions.FileIOPermission.AddPa thList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +168
    System.Security.Permissions.FileIOPermission..ctor (FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) +43
    System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +421
    System.IO.FileStream..ctor(String path, FileMode mode) +52
    System.Web.HttpPostedFile.SaveAs(String filename) +48
    Prog_News.news.Upload.Update_Immagine(HtmlInputFil e inputFile, Image Image) in c:\inetpub\wwwroot\Prog_News\varie.vb:155
    Prog_News.update.Aggiorna_Notizia(Object sender, EventArgs e) in c:\inetpub\wwwroot\Prog_News\update.aspx.vb:74
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
    System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
    System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
    System.Web.UI.Page.ProcessRequestMain() +1277



    aiutoooooooooooooo

  2. #2
    dacci qualche info in + ... hai parlato di script quindi non ti vā solo una pagina ? o tutto il sito ?

    li parla di path's (percorsi credo) fai riferimento a file esterni alla cartella link assoluti che ti sei dimenticato o roba del genere ?
    Frate Priore: "Č Lucifero in persona!"
    Trinitā: "Lo conosci?"
    Bambino: "Mai sentito nominare, deve essere un professionista dell'est"

  3. #3
    vedendo lo stack credo che la riga incriminata sia questa:
    inputFile.PostedFile.SaveAs(FileType + APP + filename)

    i valori quando faccio il debug sono questi:
    FileType = "c:\inetpub\wwwroot\Prog_News\public\news\"
    APP = "1408200304044"
    Filename = "320_240.jpg"

    cmq giusto per dire, io questo codice lo utilizzo su altri 2 siti che funzionano e non ho problemi di nessun tipo.

    ora ho questo errore in un 3° sito. L'unica cosa che mi viene da pensare č che ci sono 3 configurazioni diverse visto che questi 3 siti risiedono su 3 server diversi anche se dello hoster.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.