Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 2nd, 2004, 11:17 PM
silver8_0 silver8_0 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 4 silver8_0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 44 sec
Reputation Power: 0
Unhappy Http 500 Internal Server Error

Hi everyone,

i have been trying to set up my IIS to be able to execute .asp files but it just can't do it.

whenever i try to execute .asp files through http://localhost/Asptest/Test3.asp , it always give me this error, "The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance."

i have try changing the user setting, the directory security, but it just cannot be solve.
other files like html, htm can be execute perfectly.

Pls assists as i really need help.

Thanks.

Reply With Quote
  #2  
Old October 2nd, 2004, 11:21 PM
silver8_0 silver8_0 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 4 silver8_0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 44 sec
Reputation Power: 0
Unhappy Update to my question

my frens told me abt the globa.asa file but i cannot seems to locate it. even in my C:\Inetpub\wwwroot, its not inside. is this file important?

Reply With Quote
  #3  
Old October 3rd, 2004, 02:19 AM
superdave77 superdave77 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Denton County
Posts: 12 superdave77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to superdave77 Send a message via Yahoo to superdave77
Quote:
Originally Posted by silver8_0
my frens told me abt the globa.asa file but i cannot seems to locate it. even in my C:\Inetpub\wwwroot, its not inside. is this file important?

You should have a Global.asa file for your application as it can help you globalize your variables.

Also, to see what your code problem is instead of the generic HTTP 500 page, in Internet Explorer, go to Tools -- Internet Options -- Advanced .... under the 'Browsing' list of options, there's one that says to 'Show Friendly HTTP error messages' ...... uncheck that box and whenever you refresh your browser to debug, the actual line that the error resides will print to the screen, which will give you a better indication as to what your error is....

Here is a sample of the 4 components that a Global.asa file should have...

You can copy and paste this into a text file of your own that you can call Global.asa.

Make sure the Global.asa file is located in your application's root directory...

<SCRIPT LANGUAGE="VBScript" RUNAT="Server">

' *******************
' APPLICATION_OnSTART
' *******************
Sub Application_OnStart()

application("activevisitors")=0

End Sub

' *******************
' APPLICATION_OnEND
' *******************
Sub Application_OnEnd()

End Sub

' *******************
' SESSION_OnSTART
' *******************
Sub Session_OnStart()

application.lock
application("activevisitors")=application("activevisitors")+1
application.unlock

If Application("SessionCount") > 2 Then

Application.Lock
Application("SessionCount") = 0
Application.Unlock

Set ObjMyFile = CreateObject("Scripting.FileSystemObject")
Set OpenMyFile = ObjMyFile.OpenTextFile(Server.MapPath("last-update.txt"))
MyFileValue = OpenMyFile.ReadLine
OpenMyFile.Close

If DateDiff("h",MyFileValue,NOW) > 6 Then

' Here you would put any code you need to run
' do not surround the code with <% %> tags
' For example you might run a database query that checks for expired accounts

Set WriteMyFile = ObjMyFile.CreateTextFile(Server.MapPath("last-update.txt"))
WriteMyFile.WriteLine(NOW)
WriteMyFile.Close

End if

End If

End Sub

' *******************
' SESSION_OnEND
' *******************
Sub Session_OnEnd()

application.lock
application("activevisitors")=application("activevisitors")-1
application.unlock

End Sub
</SCRIPT>

Also, check out www.davesbizarre.com/code.asp for more code samples...

Hope that helps.

Dave

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Http 500 Internal Server Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT