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

    Online non funge perchè?

    ciao,

    ho messo online una parte del sito, in locale funziona perfettamente mentre online non va:
    codice:
    Sub Login(ByVal sender As Object, ByVal e As System.EventArgs)
    	dim ObjDatabase as new TYASPNET.database()
    		
    	ObjDatabase.ConnectionString = "provider=Microsoft.Jet.OLEDB.4.0; data source=" & Server.MapPath("../mdb-database/fg-tunisie.mdb")
    	
    	Dim objReader As OleDbDataReader
    	
    	objReader = objDatabase.SelectSQL("SELECT id FROM Admin WHERE Nome='"& ObjDatabase.Controlla_Stringa(Nome.text) &"' AND Pwd='"& ObjDatabase.Controlla_Stringa(Pwd.Text) &"' ")
    	
    	if not objReader is nothing then
    		Session("Admin")="ok"
    		objReader.Close
    		response.redirect ("index.aspx")
    	else
    		Errore.Visible = True
    		Errore.Text = "ERRORE"
    	end if
    
    End Sub
    vado sempre nella parte ELSE come mai? da cosa può dipendere?

  2. #2
    quando provo ad inserire o a modificare un record ricevo questo:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".




    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>


    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.




    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>



    è possibile che dipenda da un problema di permessi settati sull'utente ASP_NET?

  3. #3
    Utente di HTML.it
    Registrato dal
    Nov 2002
    Messaggi
    236

    certo...

    che database utilizzi??? niente di + facile che ti manchino i permessi per lavorare sul db....con SQL SERVER è necessario impostare un utente per poter accedere al db corettamente

    koning

  4. #4

  5. #5
    credo sia proprio quello il punto....devi settare il permesso di scrittura e lettura all'utente /ASPNET per la cartella in cui risiede il database...

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.