Salve a tutti!
Sono nuovo di questo forum e un novizio di questo linguaggio.
Mi sono imbarcato in quest'avventura ma sono già incappato in un problema che non so proprio come risolvere e spero proprio che voi mi possiate dare una mano.
Vi espongo il mio problema:
ho scritto un programmino di test sul mio pc che sfrutta come DB SQL Server 2005 Express e fin qui tutto bene, sembrava che tutto funzionasse molto bene.
Poi ho spostato il tutto sul server per testare ancora l'applicazione e sono iniziati i problemi, ovvero non si connette al DB! Ohi...
Allora il server è un "Windows 2003 Small Business edition" SP1.
Ho intsallato il framework 2 di .NET
Ho installato SQL Server 2005 Express
Ho ricreato un un nuovo DB e sembra tutto funzionare o meglio:
Le pagine ASPX funzionano.
Tramite il tool di gestione del DB riesco ad utilizzare e modificare il DB creato(quindi select,update tutto funzionante)...ma quando arrivo a connettermi dall'applicazione APSX mi da il seguente errore:
Non so dove mettere le mani e vorrei proprio risolvere questo problema.codice:Impossibile aprire il database "MY_NEWDB" richiesto dall'account di accesso. Accesso non riuscito. 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.Runtime.InteropServices.COMException: Impossibile aprire il database "MY_NEWDB" richiesto dall'account di accesso. Accesso non riuscito. Source Error: Line 59: myCon.Open("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;" & _ Line 60: "Data Source=" & mySessionInfo.DataSource & ";" & _ Line 61: "Initial Catalog=" & mySessionInfo.DataBase) Source File: c:\inetpub\wwwroot\aspxtest\App_Code\User.vb Line: 59 Stack Trace: [COMException (0x80004005): Impossibile aprire il database "MY_NEWDB" richiesto dall'account di accesso. Accesso non riuscito.] ADODB.ConnectionClass.Open(String ConnectionString, String UserID, String Password, Int32 Options) +0 User.LogOnUser(String sUserName, String sPassword, SessionInfo mySessionInfo) in c:\inetpub\wwwroot\aspxtest\App_Code\User.vb:59 _Default.btnLogIn_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\aspxtest\Default.aspx.vb:31 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Spero che mi possiate dare una mano a capire oltre che risolvere questo problema.
Saluti a tutti.

Rispondi quotando
