Globa.asa, IIS 7.5 and MySQL
I used ASP with MySQL on Windows XP. I migrated my PC to Windows 7 and IIS 7.5, now I can not run an application that uses global.asa.
I think I set something to run before it was only put in the folder and ran normal. Does anyone know how to fix this?
Follow the code below: global.asa:
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
'Conexao MySQL
Application("ConexaoSql") = "DRIVER={MySQL ODBC 5.1 Driver};SERVER=127.0.0.1;
PORT=3306;DATABASE=bhcosmeticos;USER=root;PASSWORD=insins;OPTION=3;"
'Https
Application("UsarHttps") = "Nao" 'Usar: "Sim" ou "Nao"
Application("UrlSiteHttps") = "localhost/localhost/clientes/lojas/novaloja" 'Sem http://
'Multi-Shopping
Application("NomeMultiShopping") = "Kits Digitias"
Application("SloganMultiShopping") = "Os melhores produtos digitais estão aqui"
Application("UrlSiteMultiShopping") = "localhost/localhost/clientes/bhcosmeticos/novaloja"
Application("EmailSuporteMultiShopping") = "lojavirtual@kitsdigitais.com"
'Email/Smtp
Application("EmailSmtp") = "mail.kitsdigitais.com"
Application("EmailUsuarioSmtp") = "lojavirtual@kitsdigitais.com"
Application("EmailSenhaSmtp") = "sjtp4614"
'Visa
Appli开发者_如何转开发cation("PastaVBV") = "C:\"
End Sub
Sub Session_OnStart
End Sub
</SCRIPT>
I have other applications running on Classic ASP on IIS 7.5 with MySQL but this just does not work that uses global.asa.
Thanks for your help and attention!
精彩评论