[ASP] Fout op scherm na maken extranet

Pagina: 1
Acties:
  • 107 views sinds 30-01-2008
  • Reageer

  • Davidoff402
  • Registratie: Oktober 2000
  • Laatst online: 24-03-2022

Davidoff402

The more you tweak....

Topicstarter
Misschien een veel voorkomend probleempje, maar ik heb deze nog nooit gezien.

Ik benader een SQL database via Internet.
Keurig krijg je het login scherm te zien.
Je vult je username + pass in en ik krijg deze foutmelding:

Response object error 'ASP 0156 : 80004005'

Header Error

/CheckUser.asp, line 57

The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.

Als ik inlog via het intranet dan werkt alles prima...

in de checkuser.asp lijn 59 staat:


'Name Not in db ?
If rs.EOF Then
Session_OnEnd

Response.redirect "login.asp"
end if

'Invalid password ?
If UCase(rs.Fields("Password")) <> UCase(sCheckPW) Then
Session_OnEnd
--->>Response.redirect "login.asp" <<---
End if


Iemand een idee wat er fout gaat en hoe ik dit kan oplossen?

Sempron 3800+ 8k9a7i


  • MrBrown
  • Registratie: Augustus 2000
  • Laatst online: 11-06 15:51

MrBrown

Reservoir Dog

Probeer even boven aan je pagina "response.buffer=true" te zetten en kijk wattie dan doet...

Powered by Manetti (compiled by Jura)


  • LuCarD
  • Registratie: Januari 2000
  • Niet online

LuCarD

Certified BUFH

-->> Weg halen :+

[Ontopic]
Je hebt al output gegeven voordat je redirect wilt doen. Meestal is het een spatie/enter voor de <% kan ook in de includes zitten!

MrBrowns optie werkt ook..

Programmer - an organism that turns coffee into software.


  • PhoneTech
  • Registratie: Mei 2000
  • Laatst online: 16-09 15:46
Dit is idd een enorm irritante fout!
Ik had ook de error 80004005 Unexpected Error. Op mijn zoektocht op MSDN bleek dat ik een nieuwe versie van MDAC moest installeren. In mijn zoektocht kwam ik ook jouw probleem

http://support.microsoft.com/support/kb/articles/Q229/6/57.ASP

To resolve this problme, set the HTTP Headers, such as Redirect statements or cookie information, before you send HTML output.

For example, to avoid this error with redirection, buffer or withhold the ASP page during its processing and issue the redirection after processing. There are two ways to accomplish buffering: on an application level or on a page level.

NOTE: Ensure that the redirection is issued after all ASP scripts. If it is issued prior to ASP scripts, the ASP page will redirect without processing the ASP code.

On an application level, all ASP pages within the Web application will be buffered when they are processed. To set buffering on an application level, follow these steps:

In the Microsoft Management Console (MMC), locate the Web site where your Web application resides.


Click to expand the Web site to display the virtual directories and Web applications.


Right-click the Web application, and then click Properties.


On the Virtual Directory tab, click Configuration.

NOTE: If the Configuration button is unavailable, the virtual directory is not a Web application. Click Create to create the virtual directory to a Web application.


In the Application Configuration dialog box, on the App Options tab, click Enable buffering.


To set buffering on a page level, add code after the @LANGUAGE line on an ASP page as shown below:
<% @LANGUAGE = "VBScript" %>
<% Response.Buffer = True %>
Other ASP/Clientside scripts or HTML ...
<% Response.Redirect %>
In addition, you can use cookies to set buffering on a page level, as the following code demonstrates. This code snippet writes the cookie prior to the sending the <HTML> tag (element).
Response.Cookies("Name")=value
<HTML>
...content...
</HTML>

  • Davidoff402
  • Registratie: Oktober 2000
  • Laatst online: 24-03-2022

Davidoff402

The more you tweak....

Topicstarter
Dankjewel! ik ga het straks proberen!

Sempron 3800+ 8k9a7i


  • Davidoff402
  • Registratie: Oktober 2000
  • Laatst online: 24-03-2022

Davidoff402

The more you tweak....

Topicstarter
Geweldig... ut werukt! :9

Sempron 3800+ 8k9a7i


  • PhoneTech
  • Registratie: Mei 2000
  • Laatst online: 16-09 15:46
Mooi zo...In het vervolg moet je bij dit soort fouten even in MSDN kijken..Daar staat echt een berg informatie
Pagina: 1