+393713742262
By Assistenza Informatica Firenze/Aprile 23, 2015/Comments are closed
Se in fase di esecuzione di un pagina asp.Net ricevete questo messaggio di errore :
Server Error in ‘/’ Application.
AccessFile is not valid: C:\ROOT\***.it\httpdocs\App_Data\ASPNetDB.mdb
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.Exception: AccessFile is not valid: C:\ROOT\***.it\httpdocs\App_Data\ASPNetDB.mdb
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.
è bene sapere fin da subito (prima di controllare il codice e/o ConnectionString…) che un database Ms Access viene utilizzato/interpellato solo … se si sta utilizzando la funzione di compatibilità per le applicazioni a 32 BIt di IIS.
E’ necessario assicurarsi di questa caratteristica prima di effettuare qualsiasi modifica.
Se neppure questa impostazione risolve il problema, è possibile impostare un livello trust level=”Full” nel proprio web.config
<system.web>
<trust level=”Full”/>
ma prima bisogna avere la “certezza” di poter fare questa impostazione perchè il server potrebbe “non consentirlo”
Server Error in Application, AccessFile is not valid, Asp.Net AccessFile is not valid, AspNet AccessFile is not valid, AccessFile is not valid ASPNetDB.mdb