By 23 Aprile 2015 0 Comments

Server Error in ‘/’ Application – AccessFile is not valid – ASPNetDB.mdb

Se in fase di esecuzione di un pagina asp.Net ricevete questo messaggio di errore :

AccessFile is not valid Asp.Net

Server Error in ‘/’ Application.
AccessFile is not valid: C:ROOT***.ithttpdocsApp_DataASPNetDB.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***.ithttpdocsApp_DataASPNetDB.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.

Image21

 

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 

 

Posted in: Asp.Net

About the Author:

shared on wplocker.com