Ragazzi ho un problema con una pagina ASP NET di seguito il codice della pagina e del web.config
La cosa strana è che mi reindirizza alla pagina di errore
fate la prova
www.event-promotion.it/forexpoapartaments/aspnet/prova.aspx
pagina web.config
codice:<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="ConnectionString" value="server=****************;trusted_connection=true;"/> <add key="MaximumRequests" value="2" /> </appSettings> <system.web> <httpRuntime delayNotificationTimeout="60" /> <compilation debug="true"/> <customErrors mode="RemoteOnly" defaultRedirect="errorpage.html"> <error statusCode="404" redirect="404.html" /> </customErrors> <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /> <sessionState timeout="10" mode="SQLServer" sqlConnectionString="Data Source=62.149.153.42;database=MSSql67230;uid=MSSql67230;pwd=5d10a9b7;" cookieless="false" /> <globalization culture="IT-it" uiCulture="IT-it" requestEncoding="latin9" responseEncoding="latin9" /> </system.web> </configuration> <script runat="server"> Private Sub Page_Load() conferma_importo.Visible = False send.Visible = False End Sub Private Sub Invia(sender As Object, e As EventArgs) Dim adesso As DateTime = DateTime.Now Dim adesso_stringa As String Dim store_id As String Dim importo_hash As String Dim shared_secret As String Dim hash_hex As String Dim hash_sha1 As String adesso_stringa = adesso.ToString("yyyy:MM:dd-HH:mm:ss") adesso_stringa = adesso_stringa.replace(".",":") txndatetime.Value = adesso_stringa chargetotal.value = importo.Text store_id = "08000001_S" shared_secret = "xHosiSb08fs8BQmt9Yhq3Ub99E8=" importo_hash = importo.Text hash_hex = strToHex(String.Concat(store_id, adesso_stringa, importo_hash, "EUR", shared_secret)) hash_sha1 = FormsAuthentication.HashPasswordForStoringInConfigFile(hash_hex, "sha1").toLower() hash.Value = hash_sha1 importo.visible = False conferma_importo.Text = conferma_importo.text & importo.text & ".<br><br>Vuoi proseguire? " conferma_importo.Visible = True check.Visible = False send.Visible = True End Sub Private Function strToHex(myStr As String) As String Dim hexStr As String Dim hexTmp As String Dim i% For i = 1 To Len(myStr) hexTmp = Hex(Asc(Mid(myStr, i, 1))) hexStr = hexStr & hexTmp Next strToHex = hexStr.ToLower() End Function </script> <html> <head> <title>BNL e-POSitivity</title> </head> <body> <form id="positivity" runat="server"> <p><b>Transazione su BNL e-POSitivity</b></p> <p>Inserire l'importo e premere 'Acquista'; confermare premendo su 'Continua'.</p> <asp:HiddenField id="txntype" Value="PURCHASE" runat="server"/> <asp:HiddenField id="timezone" Value="CET" runat="server"/> <asp:HiddenField id="txndatetime" Value="" runat="server"/> <asp:HiddenField id="hash" Value="" runat="server"/> <asp:HiddenField id="storename" Value="08000001_S" runat="server"/> <asp:HiddenField id="mode" Value="payonly" runat="server"/> <asp:HiddenField id="currency" Value=" EUR" runat="server"/> <asp:HiddenField id="language" Value="IT" runat="server"/> <asp:HiddenField id="chargetotal" Value="" runat="server"/> <asp:HiddenField id="responseSuccessURL" Value="http://www.event-promotion.it/forexp...ents/index.asp" runat="server"/> <asp:HiddenField id="responseFailURL" Value="http://www.event-promotion.it/forexp...ents/index.asp" runat="server"/> <asp:Textbox id="importo" Text="10.00" runat="server"/> <asp:Label id="conferma_importo" Text="Procedi con il pagamento di EUR " runat="server"/> <asp:Button id="check" runat="server" Text="Acquista" OnClick="Invia"/> <asp:Button id="send" runat="server" Text="Continua" PostBackUrl=" https://pftest.bnlpositivity.it/service/"/> </form> </body> </html>

Rispondi quotando
