Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    Cambiare la directory dei temi

    Salve a tutti,
    con ben sappiamo, i temi sono delle cartelle con all'interno il file .css tutte situate dentro la cartella speciale App_Themes.

    Essendo che devo fare un pannello (per il mio cms) per l'installazione di fogli di stile di terze parti, quando esegue l'istruzione per copiare il file da locale sul server nella cartella App_Themes mi da errore di protezione ( MALEDETTO ARUBA ).

    Ovviamente so già che mi risponderete che per fasr ciò ti serve un server dedicato.
    Chiedo comunque c'è un modo per far prendere il tema da una pagina diversa?

    Aruba mi permette di copiare i file SOLO nella cartella Public.
    Da sorgente assegno il tema con Page.Theme = "TemaMio"; che se lo va a cercare di default dalla cartella speciale App_Themes.

    Non c'è un modo per dargli un percorso del tema??

    Creando un PageTeme non so...

    Grazie in anticipo
    Response.Write("Tonyhhkx Programmer32");

  2. #2
    questa è la risposta del server per intenderci:

    codice:
    Access to the path 'D:\Inetpub\webs\accelerautocom\/App_Themes/tema mio' is denied.
    
    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.UnauthorizedAccessException: Access to the path 'D:\Inetpub\webs\accelerautocom\/App_Themes/tema mio' is denied. 
    
    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. 
    
    To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
    
    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.
    Response.Write("Tonyhhkx Programmer32");

  3. #3
    Prova a cambiare l'accesso di quella directory nel web.config come fai per il login. E' solo una prova , non so se aruba comunque nega l'accesso a livello server.
    Se non funziona così non credo tu possa usare in altro modo temi fuori dalla cartella di dafault "Theme"
    Secondo me fai prima ad inserire dinamicamente un bel tag <link> con il tema desiderato
    Sul mio blog qualche utile risorsa per JQuery, HTML5 , CSS3 , PHP , ASP.NET , WCF SERVICE REST & SOAP ed altro ancora http://zannino1973.wordpress.com

  4. #4
    Originariamente inviato da frank2tek
    Prova a cambiare l'accesso di quella directory nel web.config come fai per il login. E' solo una prova , non so se aruba comunque nega l'accesso a livello server.
    Se non funziona così non credo tu possa usare in altro modo temi fuori dalla cartella di dafault "Theme"
    Secondo me fai prima ad inserire dinamicamente un bel tag <link> con il tema desiderato
    il fatto che è dinamica la cosa, non è un tema fisso devo sempre poter scegliere.
    Comunque avevo risolto in altro modo
    Response.Write("Tonyhhkx Programmer32");

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.