Visualizzazione dei risultati da 1 a 9 su 9
  1. #1
    Utente di HTML.it
    Registrato dal
    Apr 2010
    Messaggi
    343

    errore installazione script asp

    Server.MapPath() error 'ASP 0175 : 80004005'

    Caratteri non consentiti nel percorso

    /quickclassifieds/QCConfig.asp, line 84

    Impossibile utilizzare i caratteri ".." nel parametro Path del metodo MapPath.

    mi da sempre questo errore , vi posto anche il file....


    <%
    '************************************************* ******************************
    '* QuickClassifieds Copyright 2003 XCENT - www.xcent.com *
    '* QuickClassifieds is a trademark of XCENT *
    '* This notice may not be removed from this source code file *
    '************************************************* ******************************

    giTableWidth = 600

    giAdRunLength = 10
    giItemsPerPage = 2
    gsMoneySymbol = "$"

    'set whether fields are displayed
    gbShowStreet = TRUE
    gbShowCity = TRUE
    gbShowState = TRUE
    gbShowZipCode = TRUE
    gbShowCountry = TRUE
    gbShowPrice = TRUE

    'Set required fields to post ad (TRUE/ FALSE)
    gbReqEmail = TRUE
    gbReqStreet = FALSE
    gbReqCity = FALSE
    gbReqState = FALSE
    gbReqCountry = TRUE
    gbReqPrice = FALSE


    'This sets the 2 alternating colors for table on the view ads page
    gsColorONE = "#E9E9E9"
    gsColorTWO = "#FFFFFF"

    gsCellColor = "#2B71B7"
    gsLineColor = "#0000A0" 'thin lines around table header and footer (For MSIE Only)
    gsPageBGColor = "#FFFFFF"
    gsHeadingColor = "#c0c0c0"
    gsEmptyCellColor = "#FFFFFF" 'cell to the right of the tab

    'set the fonts for various areas; be sure not to remove double/ triple quotes

    gsFont = "Tahoma,Arial,Sans-Serif"
    gsPlainTextOpen = "<FONT FACE=""" & gsFont & """ SIZE=""2"">"
    gsPlainTextClose = "</FONT>"
    gsCategoryNameOpen = "<FONT FACE=""" & gsFont & """ SIZE=""3""><DIV CLASS=""QCMainCat"">"
    gsCategoryNameClose = "</DIV>
    </FONT>"
    gsPageHeadOpen = "<P align=""CENTER""><FONT FACE=""" & gsFont & """ SIZE=""3"">"
    gsPageHeadClose = "
    </FONT></P>"
    gsTableHeadOpen = "<FONT FACE=""" & gsFont & """ SIZE=""2"">"
    gsTableHeadClose = "
    </FONT>"
    gsTableLineOpen = "<FONT FACE=""" & gsFont & """ SIZE=""2"">"
    gsTableLineClose = "</FONT>"
    gsNavigationOpen = "<FONT FACE=""" & gsFont & """ SIZE=""2"">"
    gsNavigationClose = "
    </FONT>"
    gsAdDetailHeadOpen = "<P align=""Right""><FONT FACE=""" & gsFont & """ SIZE=""3"">"
    gsAdDetailHeadClose = "
    </FONT></CENTER></P>"
    gsPageNavOpen = "<FONT FACE=""" & gsFont & """ SIZE=""2"">"
    gsPageNavClose = "</FONT>"
    'used for the main tab headings in each page
    gsTabTextOpen = "<FONT FACE=""" & gsFont & """ SIZE=""2"" color=""#ffffff"">"
    gsTabTextClose = "
    </FONT>"

    'various headings on the pages, such as on the view item page
    gsSubHeadOpen = "<FONT FACE=""" & gsFont & """ SIZE=""3"" COLOR=""#A0A0A0"">"
    gsSubHeadClose = "
    </FONT>"

    'names of fields on view item page, for example
    gsLabelOpen = "<FONT FACE=""" & gsFont & """ SIZE=""2"">"
    gsLabelClose = "
    </FONT>"

    gsErrorTextOpen = "<FONT COLOR=""#FF0000"">"
    gsErrorTextClose = "</FONT>"




    gsEmbeddedCode = "%CONTENT%"
    gsPageHeader = Server.MapPath("QCTemplate.htm")


    'if you move the database from the root directory, you will have to change this setting
    gsConnect = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("../Data/QuickClassifieds.mdb")

    'System Library Database Configuration Settings
    gsSQLDateDelimiter = Chr(35)
    'gsSQLDateDelimiter = Chr(39)

    'gsSQLWildCardChar = "*"
    gsSQLWildCardChar = "%"

    '***giSQLDateAsSystem = True 'OBSOLETE! If this was TRUE, set giSQLDateFormat = 0, otherwise giSQLDateFormat = 1
    giSQLDateFormat = 0 'Default As System
    'giSQLDateFormat = 1 'SC-SQL
    'giSQLDateFormat = 2 'SC-JET-MDY
    'giSQLDateFormat = 3 'SC-JET-DMY
    %>




    secondo voi qual'è il problema !?!?!??!


    grazie mille

  2. #2
    Ciao,

    te lo dice il messaggio di errore:

    Caratteri non consentiti nel percorso
    /quickclassifieds/QCConfig.asp, line 84
    Impossibile utilizzare i caratteri ".." nel parametro Path del metodo MapPath.


    alla riga 84: Server.MapPath("../Data/QuickClassifieds.mdb")

    con il Server.MapPath devi partire dalla root del sito, tipo ("/mdb-database/Data/QuickClassifieds.mdb").

    fulvio

  3. #3
    Utente di HTML.it
    Registrato dal
    Apr 2010
    Messaggi
    343
    Ciao grazie mille per la risposta..

    le sto provando tutte ma non essendo molto esperto potresti essere più preciso ..

    ho provato a mettere anche :

    alla riga 84: Server.MapPath("http://www.miosito.com/Data/QuickClassifieds.mdb")

    ma mi da sempre errore, anche se provo ad aggiungere cio che hai scritto tu nel suggerimento ....

    ((((((

    Help

  4. #4
    Utente di HTML.it
    Registrato dal
    Apr 2010
    Messaggi
    343
    Aggiunta al mex di prima :


    Mi sa leggendo asp di base su html che devo trovare la mia web root ....

    Ma dove e come la posso trovare , infatti non riesco a far partire neanche i file di esempio ..??



  5. #5
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,133
    prova cosi: Server.MapPath("/Data/QuickClassifieds.mdb") chiaramente la cartella data dovrà avere i diritti di scrittura e lettura, e se il sito risiede su server aruba la cartella designata e mdb-database al posto di data e il db dovrà essere in essa contenuta.
    Cavicchi Andrea
    Problemi con javascript, jquery, ajax clicca qui

  6. #6
    Utente di HTML.it
    Registrato dal
    Apr 2010
    Messaggi
    343
    Andato )))))


    Grazie mille sei un genioooooooooooooo.....

    ora mi da' un'altro errore ma vedro nel manuale ...............

  7. #7
    Utente di HTML.it
    Registrato dal
    Apr 2010
    Messaggi
    343
    Cavolaccio fritto..... mhhhhhhhhhhh ((

    ora mi da sempre questo errore :

    ADODB.Connection error '800a0ea9'

    Provider non specificato e non è stato impostato un provider predefinito.

    /QuickClassifieds/QCLib.asp, line 273

    uffa è un parto

  8. #8
    Utente di HTML.it L'avatar di wallrider
    Registrato dal
    Apr 2003
    Messaggi
    2,755
    che stringa di connessione usi?
    RIP Cicciobenzina 9/11/2010

    "Riseminaciceli, i ceci nell'orto"

  9. #9
    Utente di HTML.it
    Registrato dal
    Apr 2010
    Messaggi
    343
    mhhhhh

    scusa l'ignoranza .....

    Dove posso guardare per fornirti questo dato !??!

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.