Why won't my ASP pages work in IIS 6.0?

Source: Internet
Author: User
Tags html interpreter servervariables microsoft iis
Document directory
  • Related Articles
Why won't my ASP pages work in IIS 6.0? After deploying a Web site to a Windows Server 2003, You might find that your ASP pages aren't working. Let's examine a few possible scenarios.
 
Server cocould not be found 
 
Windows Server 2003 is locked down quite heavily by default; rather than leaving the surface very wide open for administrators to find all the holes and patch them, this version of Windows makes the Administrator consciously decide to open certain services (e.g. IIS ).
 
So, it might be that IIS is not even installed-you can do so using the configure your server wizard (in the Administrative Tools Folder), and setting up the application server role.
 
404-page not found 
 
This is the most common problem with a new site under IIS 6.0. by default, Microsoft IIS 6.0 is only allowed to serve static content. no ASP, no ASP. net... so callto ASP pages will actually trigger a 404 error. see article #2147 for directions on enabling dynamic content.
 
As it turns out, Microsoft published kb #315122 in March of 2004 (six months after this article was added-but who's counting <G> ).
 
Can't use COM objects 
 
If you are trying to use cdonts, you can't... cdonts has been deprecated, and no longer ships in the Windows Server 2003 family (see kb #810702 ). microsoft has published instructions on migrating cdonts. DLL from a Windows 2000 machine to 2003-but I'm not sure if the practice meets all licensing requirements, and I doubt the configuration is supported.
 
Even though there is a workaround, I highly recommend you change your code to use CDO. message instead (see article #2026), or you cocould use a 3rd party COM object (see article #2119) or send mail directly from SQL Server (see article #2403 ). if you are planning on using SMTP directly on the box, rather than connecting to an existing SMTP server, you need to run through the configure your server wizard and make sure you have set up the mail server role, and that the SMTP service is running.
 
Security is tighter in IIS 6.0, so you might get something like this, when trying to create a custom or 3rd party COM Object:
 
Server Object error 'asp 0178: 100'
Server. Createobject Access Error
/<File>. asp, line <line>
The call to server. Createobject failed while checking permissions. access is denied to this object.

 
You also might see "Permission denied" or "path not found" errors when trying to use FileSystemObject to work with files and folders, or generic 80004005 errors when using Microsoft Access. these fall back to standard IUSR_machinename permissions issues-you need to make sure the IUSR_machinename has read/write access to the folder (s) the ASP pages are trying to access, and/or execute privileges on the DLLs they are trying to invoke.
 
To do this (replace "<yourmachinename>" with the actual name of your machine ):

  • Right-click the folder where the MDB file exists;
  • Select "Sharing and security ...";
  • Move to the Security tab;
  • If IUSR _ <yourmachinename> is not in the list, click on "add... "And type <yourmachinename>/IUSR _ <yourmachinename> in the box that says" Enter the object names to select (examples): "And hit OK;
  • Highlight IUSR _ <yourmachinename> and make sure modify, read and write are all checked under allow, and not checked under deny;
  • Hit apply, then OK, then test your ASP page again.

Another error you might come into SS:
 

Active Server Pages error 'asp 0134'
Invalid progid attribute
/<File>. asp, line <line>
The object has an invalid progid of '<Prog. ID> '.

 
The case here is either that your custom or 3rd party COM object has not been installed, or that you are using a built-in COM object that is no longer shipped (for example, mswc. info no longer ships with IIS 6.0 ).
 
If you are using access and IIS seems to hang, see kb #838306.
 
Finally, you might get errors with include files that worked fine in previous version of IIS:
 

Active Server Pages, ASP 0131 (0x80004005)
The include file './.../something. asp' cannot in '..' to indicate the parent directory.

 
Parent paths are disabled by default in IIS 6.0; For more information, see article #2412 and kb #332117.
 

Pages won't refresh 
 
There are some new registry settings in IIS 6.0, involving change notification, that might need to be altered in order to ensure that IIS 6.0 always serves up the freshest copy of your asp files. see this technet article for more information.
 
Session values/cookies won't persist 
 
Keys of the issues with cookies are a result of changes to IE 6 (e.g. as a result of applying Windows XP SP2 or Windows Server 2003 SP1 ). if you are testing your site locally, it is easy to assume that the Service Pack affected the server, and not the "client."
 
Please see article #2157 for information on resolving cookie and session issues.
 
Can't create Visual Studio. NET web applications 
 
If you are having problems creating a web application with Visual Studio. NET, see this iisfaq article.
 
Other resources 
 
For general troubleshooting ideas regarding IIS 6.0, see kb #323358.
 
For information about mappings for user permissions, see kb #812614.
 
You can download the IIS 6.0 migration tool, for helping you migrate sites from IIS 4.0 or IIS 5.0.
 
Microsoft is offering the IIS 6.0 resource kit for download: Get the tools (6 MB) or the chapters (24 MB ).
 
If you know of further information we shoshould include in this article, please let us know. Related Articles

Can I bypass the ten connection limitation in workstation/professional?
Can I Compact/repair an Access database from ASP code?
Can I create an array's size dynamically?
Can I detect the presence of ActiveX controls, like flash, from asp?
Can I dictate the load order of files on the client from asp?
Can I have optional parameters to my subs/functions?
Can I host multiple sites in 2000 Workstation or XP Professional (e.g. PWS )?
Can I mimic TRIM/ltrim/rtrim In JScript?
Can I perform simple encryption/decryption in ASP?
Can I run IIS 5.0/asp 3.0 on Windows NT 4.0 or Windows 9x?
Can I run IIS on Windows Millennium or Windows XP Home?
Can I use IP address to uniquely identify visitors?
Does order matter when using different versions in ASP?
How can I give them a better 404 message?
How can I stop Photoshop from opening ASP files?
How can I track when my site is added to a user's favorites?
How do I access all active sessions on the server?
How do I access my server's registry from an ASP page?
How do I change a list into a set of table rows and columns?
How do I change document names/extensions in IIS/PWS?
How do I change the default server scripting language in InterDev?
How do I cloak/hide URL and querystring information?
How do I comment blocks of ASP code?
How do I control access to an area?
How do I control printing from asp?
How do I convert a name to proper case?
How do I convert exchange rates in ASP?
How do I convert from hex to int and back?
How do I convert numbers into words?
How do I convert old IDC/htx pages to ASP?
How do I count the number of current users/sessions?
How do I count the number of times X occurs in string y?
How do I create a database from asp?
How do I create my own blog?
How do I deal with disappearing Application variables?
How do I decode an encoded URL?
How do I detect enabled cookies/JavaScript?
How do I detect the browser's encryption level/cipher strength?
How do I determine which version of IIS/asp I'm running?
How do I disable the back/forward buttons?
How do I display the euro symbol (€) in my ASP pages?
How do I embed a Tab character into source code?
How do I embed apostrophes (') and quotes (") in an HTML string?
How do I embed ASP delimiters (<% or %>) in a string?
How do I estimate the total size of my web page?
How do I execute a DOS command/batch file/EXE from asp?
How do I execute a ping command from ASP, and retrieve the results?
How do I find out the amount of space left on my server?
How do I fix the: $ data bug?
How do I FTP files from asp?
How do I generate a Treeview from asp?
How do I generate unique guids from asp?
How do I get all the ubound () values in a multi-dimen1_array?
How do I get intelliisense to see ASP 3.0 methods?
How do I get my visitors 'login name/username?
How do I get screen resolution from asp?
How do I get the computer name/IP address of the server?
How do I get the server's timezone information?
How do I get the user's IP address or browser information?
How do I highlight words in a string?
How do I host multiple web sites on one IIS box?
How do I increase timeout values?
How do I iterate through session variables?
How do I know which version of VBScript my server is running?
How do I log/track ASP errors on my Web site?
How do I make hyperlinks out of plain text URLs and E-mail addresses?
How do I make JavaScript send values to ASP?
How do I make my ASP page pause or 'sleep '?
How do I make my ASP page refresh?
How do I make my ASP pages more efficient?
How do I make search engines index pages with querystrings?
How do I make sure an entered string contains only valid characters?
How do I make sure my asp question gets answered?
How do I make sure my servers have the same time?
How do I make sure people go to page X before page y?
How do I make sure the client is still connected before processing?
How do I make Visual InterDev's debugging features work?
How do I manage a session when SS multiple windows?
How do I pad digits with leading zeros?
How do I parse/analyze IIS logs?
How do I parse the domain name out of a URL?
How do I parse the file name out of a path or URL?
How do I perform a whois/DNS lookup from asp?
How do I persist session state without cookies/session variables?
How do I prevent 'invaliduse of null' errors?
How do I prevent my ASP pages from caching?
How do I prevent people from printing my ASP page?
How do I print the first n characters of a large block of text?
How do I prompt a "save as" dialog for an accepted MIME type?
How do I protect my ASP code?
How do I protect my client-side JavaScript code?
How do I protect my images and other visual content?
How do I put my ASP application onto a CD-Rom?
How do I read the contents of a remote web page?
How do I read the event log from asp?
How do I redirect an http: // request to https ://?
How do I refresh global. Asa without restarting the application?
How do I round a number * properly * With VBScript?
How do I run ASP on other Web servers besides IIS?
How do I schedule ASP files?
How do I send a msgbox or inputbox from asp?
How do I set session variables from client-side script?
How do I show a "please wait..." message?
How do I solve 'event ID 5' errors?
How do I solve 'the requested resource is in use 'errors?
How do I solve the server failed to load the application's errors?
How do I solve the specified procedure cocould not be found's errors?
How do I solve ASP 0115 errors?
How do I specify byref/byval In VBScript?
How do I stress test my ASP application?
How do I time my ASP code?
How do I turn a KB article #, like q191987, into a usable URL?
How do I use ASP to [...]
How do I use extensions other than. asp for ASP files?
How do I warn people when their session is about to expire?
How do I zip/unzip files from asp?
I called session. Abandon, why are my session variables still there?
I have plenty of RAM, why do I get an 'out of memory 'error?
Is there an easier way to patch my server (s )?
Shoshould I use adovbs. INC for declaring constants?
Shoshould I use sessionid to uniquely identify users?
Shocould I use the. inc extension for my include files?
Shocould I use VBscript or JScript for ASP?
What do I do when IIS 5.0 will not start?
What do I need to know about response. Redirect?
What is event ID 36, and how can I get IIS running again?
What is this 'could not detect OS type' error with NT 4.0 Option Pack?
What is this error 'an unhandled data type was encountered '?
What is wrong with isnumeric ()?
What is wrong with request. servervariables ("http_referer ")?
What is wrong with session_onend ()?
What kind of object is response. Crackers?
What's the deal with IIS 5.0 and ASP 3.0?
When I run a page in my browser, why does the ASP code not execute?
Where can I find out about. Net?
Where can I find out about running Perl in IIS?
Where can I host ASP pages for free (or at least cheap )?
Where do I get IIS/asp?
Where else can I learn about ASP?
Which editor shocould I use for developing ASP applications?
Which is better, RS (0) or RS ("column_name ")?
Why am I getting 'subscript out of range' errors?
Why am I having problems installing Visual Studio. NET RTM?
Why am I having problems with server. Execute and/or server. transfer?
Why are people telling me to fix my clock/timezone?
Why can't I browse localhost without an Internet connection?
Why can't I grab custom headers from request. servervariables ()?
Why can't I pass querystring information and links to # bookmarks?
Why can't I turn buffering off using response. buffer?
Why can't I use # exec or # echo in an ASP page?
Why do I get 'bof or EOF 'errors?
Why do I get 'HTTP 500-12 Application restarting 'errors?
Why do I get 'HTTP/1.0 invalid application name' errors?
Why do I get 'invalid default script language 'errors?
Why do I get 'name redefined' errors?
Why do I get 'object doesn' t support this property or method 'errors?
Why do I get 'the RPC server is unavailable 'messages?
Why do I get 'Type mismatch' when using the session object?
Why do I get 8000 FFFF/8002802b errors?
Why do I get 80010105 errors?
Why do I get 80010108 errors?
Why do I get 80020003 errors?
Why do I get 80020005 errors?
Why do I get 80020009 errors?
Why do I get 8002000e errors?
Why do I get 80029c84 errors?
Why do I get 8004e00f errors?
Why do I get 80070034/80070035 errors?
Why do I get 80070056 errors?
Why do I get 80070057 errors?
Why do I get 80090016 errors?
Why do I get 800a01c2 errors?
Why do I get 800a01c9 errors?
Why do I get 800a01ca errors?
Why do I get 800a01f4 errors?
Why do I get 800a01f9 errors?
Why do I get 800a03ec errors?
Why do I get 800a03ed/800a03ee errors?
Why do I get 800a03f6 errors?
Why do I get 800a0401 errors?
Why do I get 800a0408 errors?
Why do I get 800a0414 errors?
Why do I get 800a138f errors?
Why do I get a 500 Internal Server Error for all ASP errors?
Why do I get an 'overflow' Error Using CINT?
Why do I get an error about a 'smart HTML interpreter '?
Why do I get ASP 0101 errors?
Why do I get ASP 0113/script timed out errors?
Why do I get ASP 0130/asp 0131 errors?
Why do I get ASP 0138 errors?
Why do I get ASP 0158 errors?
Why do I get errors in the 800a0001-> 800a000f range?
Why do I get errors in the 800a0030-> 800a003a range?
Why do I get errors in the 800a03f1-> 800a03ff range?
Why do I get errors in the 800a0400-> 800a041f range?
Why do I get errors when trying to redirect?
Why do I get HTTP/1.1 400 bad request errors?
Why do I get non-database-related 80004005 errors?
Why do I get script errors on one machine but not another?
Why do I get the error object required :''?
Why do my session/Application variables disappear?
Why does 3.2 + 1.5 = 4.7000000000000002?
Why does 4/5 = 0?
Why does global. Asa not fire?
Why does guid not work correctly with response. Write?
Why does IIS hang and/or stop serving ASP pages?
Why does my page render (properly) in IE and not in Netscape?
Why does recordcount return as-1?
Why does remote_host return an IP address instead of a name address?
Why does session. Abandon not take effect right away?
Why is Netscape slow in IIS 5.0?
Why won't my session variables stick?
Why won't querystring values work with server. Execute/server. transfer?
Why won't Windows Search ASP files?
DLLHOST. exe

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.