Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Rodrigues

[Resolvido] Erro Global.asa

Recommended Posts

Olá comprei um sisteminha asp com mysql que da erro nbo global pois quando eu o apago do servidor a pagina aber quando eu coloco que devolta ja erra, ja tentei alterar o diretorio no arwquivo global e tudo to postando aqui o original para ver se podem me ajudar. valeu

 

 

segue o codigo

<script LANGUAGE="VBScript.Encode" RUNAT="Server">
'========================
Sub Application_onstart
'========================
'### Check these Fileman global settings!
Application("strConn")="DBQ=" & server.mappath("database/fileman.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;"
'Application("UseNTAuthentication")=True '### Use integrated NT authentication if available. Anonymous access from fileman needs to be revoked in IIS. Also create FM accounts for the NT Users! ###
Application("DefaultRootFolder")="c:\temp\%user%" '### Default root folder for new accounts. Variable %user% will be replaced with the new user name, the new folder will be created.###
Application("RequireRootFolder")=False '### Verify on logon that the user has a rootfolder defined, exit if not (not for admins). ###
Application("OnlyAllowedIPList")="" '### Comma delimited list of allowed IP numbers/ranges. Example: "192.*,10.0.0.*" ###
Application("MaxHistoryItems")=20 '### Remember last folders in user selectable listbox ###
Application("MaxLengthOfHistoryItems")=30 '### Names of items in history listbox will be shortened if longer than this value ###
Application("UnEditableExtensions")="com,exe,dll,ocx,386,sys,drv,bin,jpg,gif,bmp,zip,arj,rar,mdb,xls,mp3,mpg,avi,mov"
Application("CustomButtons")="" '### If defined, this custom html string will be added to the toolbar. This gives admins the option to add functionality to FileMan (buttons are 20x20 pixels). ###
Application("ExtraErrorMsg")= "" '### Optional customizable additional error message string that is displayed in case of an error, for example how to contact the helpdesk. ###
Application("FMRecyclerName")="FMRecycler_" '### If defined, this subfolder of RootFolder will be used to move deleted files to if configured for the user (username will be added to this name, not for users with no RootFolder). Example: "FMRecycler". ###
Application("NumUploadFields")=6
Application("MinPassLength")=4
Application("ShowDrives")=True '### Show drive icons if no rootfolder is defined. ###
Application("DownloadInNewWindow")=False
Application("AlwaysDownload")=False '### Treat all downloads as attachments (always show the "Save as" dialog). If False, the browser will display txt, html, images in the browser window etc.###
Application("ZipSupport")=True '### Use ZIP functions (if the component is installed). ###
Application("LogFile")="fileman.log"
Application("LogLevel")=1 ' 0: Off, 1: Show user actions like Login/Logout/Edit/Del/Upload/Download, 2: Also show: Find/Listing/Denied, 3: Show full matching process

'**Start Encode**#@~^VwsAAA==@#@&B:[a,Ztm0~l	N~0KDhCDPla2VbmlDrGx,\mDdP::[@#@&ba2VbmCObWxcEwH#+MdbWUr#{J&c*1E@#@&b2w^k^CDkW	cJ~oZKsGD_+mNnDEb{JT!ZT%ZJ@#@&zwwsr1lOkKUvJ$TZKVWMsKsNDdJ*'E9GffA3J@#@&ba2sk1lDkGxcE~o/W^GDwksnkJ#xEA232w0r@#@&zwaVk1lDrW	`Estb22&/q	rYblVb"nNr#{K.En@#@&b2w^rmmYrG	`J6U^X)V^GS+[&ndk/DJ*xIwsl1+c)awVb^lDkW	cEr	VHbsVGAN(ndr/DJbSreJSEr#@#@&&W,b2aVbmlDkKU`rSGowksnr#@!@*EJ,b1G~(xkYM`)w2sbmCYbGxvJJGTsksnr#SJ=wr#xZPz1f,q	dYM`)waVr^mYkKU`rSWTorVJ*~E-wE*'TP:4+	P)2aVk^CDkGxvEdWLwk^+J*'UnD7+.Rtl22mYtv)waVk1COkKxvJJWLobVnJ*b@#@&@#@&v[aa~!Y~+XrkYr	o,0k^+,OXa+~k1WUdcPa[:@#@&?+D~W/K'U+.\n.cZ.+mO+}4%n1Y`Ej1DrwDr	o wk^+?H/Dn:}4%+1YEb@#@&?OPK0W^[nD{0kW onO6WsN.`U+.-DR\CawCY4crqhTJ*#@#@&?OPKsrV/xGwWV9nDc0k^nd@#@&bawsk^CDkGxvEKHwn(1WxdE*'#4:C(@#@&wWMP+mm4~0,kUPKsrs/@#@&7q6Pj;Cd+v0kW MnOA6O+	dkKxHCs+`Wb*'EM&orP)gf,qxkYMcFB0 xm:nSrY{rSF*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
Compartilhar em outros sites

ele gera algum número de erro ???

se sim, poste o número e linha !!

Compartilhar este post


Link para o post
Compartilhar em outros sites

especifique mais , dê mais detalhes, para podermos ajudar melhor

Compartilhar este post


Link para o post
Compartilhar em outros sites

é dificil de explicar, pq não da um erro especifico o erro que da na pagina é esse

O site não pode exibir a página

HTTP 500

Causas prováveis:

•O site está em manutenção.

•O site tem um erro de programação.

 

Você pode tentar:

Digite o endereço novamente.

 

Voltar para a página anterior.

 

Mais informações

 

 

Bom desculp galera eu ja cheguei a fazer u,m curso de asp mas a um bom tempo não mecho comprei um sistema de loja pq sou tecnico e gostaria de parcelar cerviços e peças p meus clientes já que não tenho loja aberta mas fui enrolado, não seu se vai ser util mas quem quizer dar uma olhada na loja e tentar corrigir segue o download www.suportetotalinfo.com/loja.rar valeu por toda ajuda

Compartilhar este post


Link para o post
Compartilhar em outros sites

vai em opções no browser, desabilita a opção de exibir mensagens de erro HTTP amiveis, depois execute-o, verifique o numero de erro e linha do code e poste junto com o trecho do script

Compartilhar este post


Link para o post
Compartilhar em outros sites

posta a linha do code que gera o erro...

Compartilhar este post


Link para o post
Compartilhar em outros sites

me desculpe a ignorancia mas diz que é a linha 0

seria a primeira então? Vou postar o codigo do global. Fui reclamar isso com quem me vendeu ele falou que é culpa do server e não dele, pode ser?

 

<script LANGUAGE="VBScript.Encode" RUNAT="Server">
'========================
Sub Application_OnStart
'========================
'### Check these Fileman global settings!
Application("strConn")="DBQ=" & server.mappath("database/fileman.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;"
'Application("UseNTAuthentication")=True '### Use integrated NT authentication if available. Anonymous access from fileman needs to be revoked in IIS. Also create FM accounts for the NT Users! ###
Application("DefaultRootFolder")="c:\temp\%user%" '### Default root folder for new accounts. Variable %user% will be replaced with the new user name, the new folder will be created.###
Application("RequireRootFolder")=False '### Verify on logon that the user has a rootfolder defined, exit if not (not for admins). ###
Application("OnlyAllowedIPList")="" '### Comma delimited list of allowed IP numbers/ranges. Example: "192.*,10.0.0.*" ###
Application("MaxHistoryItems")=20 '### Remember last folders in user selectable listbox ###
Application("MaxLengthOfHistoryItems")=30 '### Names of items in history listbox will be shortened if longer than this value ###
Application("UnEditableExtensions")="com,exe,dll,ocx,386,sys,drv,bin,jpg,gif,bmp,zip,arj,rar,mdb,xls,mp3,mpg,avi,mov"
Application("CustomButtons")="" '### If defined, this custom html string will be added to the toolbar. This gives admins the option to add functionality to FileMan (buttons are 20x20 pixels). ###
Application("ExtraErrorMsg")= "" '### Optional customizable additional error message string that is displayed in case of an error, for example how to contact the helpdesk. ###
Application("FMRecyclerName")="FMRecycler_"  '### If defined, this subfolder of RootFolder will be used to move deleted files to if configured for the user (username will be added to this name, not for users with no RootFolder). Example: "FMRecycler". ###
Application("NumUploadFields")=6
Application("MinPassLength")=4
Application("ShowDrives")=True '### Show drive icons if no rootfolder is defined. ###
Application("DownloadInNewWindow")=False
Application("AlwaysDownload")=False '### Treat all downloads as attachments (always show the "Save as" dialog). If False, the browser will display txt, html, images in the browser window etc.###
Application("ZipSupport")=True  '### Use ZIP functions (if the component is installed). ###
Application("LogFile")="fileman.log"
Application("LogLevel")=1 ' 0: Off, 1: Show user actions like Login/Logout/Edit/Del/Upload/Download, 2: Also show: Find/Listing/Denied, 3: Show full matching process

'**Start Encode**#@~^VwsAAA==@#@&B:[a,Ztm0~l	N~0KDhCDPla2VbmlDrGx,\mDdP::[@#@&ba2VbmCObWxcEwH#+MdbWUr#{J&c*1E@#@&b2w^k^CDkW	cJ~oZKsGD_+mNnDEb{JT!ZT%ZJ@#@&zwwsr1lOkKUvJ$TZKVWMsKsNDdJ*'E9GffA3J@#@&ba2sk1lDkGxcE~o/W^GDwksnkJ#xEA232w0r@#@&zwaVk1lDrW	`Estb22&/q	rYblVb"nNr#{K.En@#@&b2w^rmmYrG	`J6U^X)V^GS+[&ndk/DJ*xIwsl1+c)awVb^lDkW	cEr	VHbsVGAN(ndr/DJbSreJSEr#@#@&&W,b2aVbm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7ZKxxcna+1ED+c?}J*@#@&d;Gx	R/sK/+@#@&i?nY,/KxU{1KYtbxT@#@&iqWPzw2sbmlDrW	`JdGLsbVJb@!@*ErPPtU@#@&d7jYPWdK'j+M-D ;DlYr(%+1YcJUm.raYk	LRwkVjz/D+sr8Ln^DJb@#@&7dU+O~6SWLx6/GR}2xP6Dsk^+v)waVrmmYrG	`JdGowkVEb~R~:D;+b@#@&d70dGoc.rD+SrUPHWS~LP#(Ym4PLPUn/kkGxvJidDJ*~[,.4DC8PLPU+d/rG	`EqhE#,[~#(Kl8~LPESKLKEO,`U+/kkKUPDkh+KEObr@#@&i70dWoc^sWk+@#@&7djnDPW/Kx1KY4r	o@#@&7Ax[P&W@#@&7zwaVk1lDrW	`E1!:/G	xJ*xbawVb^CYbW	`E1;h;WUxrbO8@#@&3	NP(W@#@&3x9~UE8@#@&DFkDAA==^#~@</SCRIPT>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Cara, pelo que entendi, a linha 0 seria o arquivo Global.asa, uma vez que ele é executado antes mesmo do arquivo .Asp

 

Verifique se o arquivo se existe o arquivo fileman.mdb na pasta database na raiz do seu sistema, conforme descreve:

Application("strConn")="DBQ=" & server.mappath("database/fileman.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;"

 

 

Lembro-me de que Server.MapPath("") não funciona corretamente quando utilizado no arquivo global.asa, isso porque se você acessar um arquivo que está na raiz, você terá um retorno X do MapPath, mas se você acessar um arquivo que está dentro de um diretório Y, seu resultado será X\Y

 

Pesquisando no Google, achei: http://stackoverflow.com/questions/496524/classic-asp-server-mappath-doesnt-work-as-expected-in-global-asa que diz exatamente isto.

 

 

 

Outra possibilidade é seu server não permitir a utilização de Server.MapPath("") conforme está sendo utilizado no seu sistema ae.

Compartilhar este post


Link para o post
Compartilhar em outros sites

galera muito obrigado a todos! REsolvido ontem o alexandre mandou comentar a linha 6 e funcvionou beleza!' Application("strConn")="DBQ=" & server.mappath("database/fileman.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;"aleu a todos que ajudaram!!

Compartilhar este post


Link para o post
Compartilhar em outros sites

ok, beleza...

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.