当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·javax.servlet.http not found问题    »显示摘要«
    摘要: 我的classpath=.;c:\jdk\lib 我把servlet.jar copy 到c\jdk\lib目录下, 但总是提示我javax.servlet.http not found 我写java程序没问题,写jsp也没问题,请问这是怎么回事? ......
 ·两个变量,用什么函数啊    »显示摘要«
    摘要: 两个变量,用什么函数啊?两个变量,用什么函数啊?两个变量,用什么函数啊? ......


,这个是不是IIS的问题,怎么解决

Microsoft   VBScript   编译器错误   错误   800a03f6    
   
  缺少   End    
   
  /iisHelp/common/500-100.asp,行242    
   
  服务器对象   错误   ASP   0177   :   800401f3    
   
  Server.CreateObject   失败    
   
  index.asp,行6    
   
  无效的   ProgID。   若要获取关于此消息的更多的信息,请访问   Microsoft   联机支持站点:   http://www.microsoft.com/contentredirect.asp   。    
 

NO.1   作者: hchxxzx

有没有可能是这个文件500-100.asp坏了?还有你这个manhuanews.news是不是一个数据库啊,改名也不能这样改啊。

NO.2   作者: webdevelop

将系统中的/help/iisHelp/common/500-100.asp修改成以下代码:  
   
   
  <%@   language="VBScript"   %>  
  <%  
  Option   Explicit  
   
  Const   lngMaxFormBytes   =   200  
   
  Dim   objASPError,   blnErrorWritten,   strServername,   strServerIP,   strRemoteIP  
  Dim   strMethod,   lngPos,   datNow,   strQueryString,   strURL  
   
  If   Response.Buffer   Then  
  Response.Clear  
  Response.Status   =   "500   Internal   Server   Error"  
  Response.ContentType   =   "text/html"  
  Response.Expires   =   0  
  End   If  
   
  Set   objASPError   =   Server.GetLastError  
  %>  
  <!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   3.2   Final//EN">  
   
  <html   dir=ltr>  
   
  <head>  
  <style>  
  a:link   {font:9pt   宋体;   color:FF0000}  
  a:visited   {font:9pt   宋体;   color:#4e4e4e}  
  </style>  
   
  <META   NAME="ROBOTS"   CONTENT="NOINDEX">  
   
  <title>本页出错</title>  
   
  <META   HTTP-EQUIV="Content-Type"   Content="text-html;   charset=gb2312">  
  <META   NAME="MS.LOCALE"   CONTENT="ZH-CN">  
  </head>  
   
  <script>    
  function   Homepage(){  
  <!--  
  //   in   real   bits,   urls   get   returned   to   our   script   like   this:  
  //   res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm    
   
  //For   testing   use   DocURL   =   "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"  
  DocURL=document.URL;  
   
  //this   is   where   the   http   or   https   will   be,   as   found   by   searching   for   ://   but   skipping   the   res://  
  protocolIndex=DocURL.indexOf("://",4);  
   
  //this   finds   the   ending   slash   for   the   domain   server    
  serverIndex=DocURL.indexOf("/",protocolIndex   +   3);  
   
  //for   the   href,   we   need   a   valid   URL   to   the   domain.   We   search   for   the   #   symbol   to   find   the   begining    
  //of   the   true   URL,   and   add   1   to   skip   it   -   this   is   the   BeginURL   value.   We   use   serverIndex   as   the   end   marker.  
  //urlresult=DocURL.substring(protocolIndex   -   4,serverIndex);  
  BeginURL=DocURL.indexOf("#",1)   +   1;  
  urlresult=DocURL.substring(BeginURL,serverIndex);  
   
  //for   display,   we   need   to   skip   after   http://,   and   go   to   the   next   slash  
  displayresult=DocURL.substring(protocolIndex   +   3   ,serverIndex);  
  document.write(   <A   HREF="   +   escape(urlresult)   +   ">   +   displayresult   +   "</a>");  
  }  
  //-->  
  </script>  
   
  <body   bgcolor="FFFFFF">  
   
  <ul>  
  <li>错误类型:<br>  
  <%  
  Dim   bakCodepage  
  bakCodepage   =   Session.Codepage  
  Session.Codepage   =   936  
  Response.Write   Server.HTMLEncode(objASPError.Category)  
  If   objASPError.ASPCode   >   ""   Then   Response.Write   Server.HTMLEncode(",   "   &   objASPError.ASPCode)  
  Response.Write   Server.HTMLEncode("   (0x"   &   Hex(objASPError.Number)   &   ")"   )   &   "<br>"  
   
  If   objASPError.ASPDescription   >   ""   Then   Response.Write   Server.HTMLEncode(objASPError.ASPDescription)   &   "<br>"  
  %>  
  </li>  
  <p>  
  <li>错误位置:<br>  
  <%  
  blnErrorWritten   =   False  
   
    Only   show   the   Source   if   it   is   available   and   the   request   is   from   the   same   machine   as   IIS  
  If   objASPError.Source   >   ""   Then  
  strServername   =   LCase(Request.ServerVariables("SERVER_NAME"))  
  strServerIP   =   Request.ServerVariables("LOCAL_ADDR")  
  strRemoteIP   =   Request.ServerVariables("REMOTE_ADDR")  
  If   (strServername   =   "localhost"   Or   strServerIP   =   strRemoteIP)   And   objASPError.File   <>   "?"   Then    
  Response.Write   Server.HTMLEncode(objASPError.File)  
  If   objASPError.Line   >   0   Then   Response.Write   ",   第   "   &   objASPError.Line   &   "   行"  
  If   objASPError.Column   >   0   Then   Response.Write   ",   第   "   &   objASPError.Column   &   "   列"  
  Response.Write   "<br>"  
  Response.Write   "<font   style=""COLOR:000000;   FONT:   9pt   宋体""><b>"  
  Response.Write   Server.HTMLEncode(objASPError.Source)   &   "<br>"  
  If   objASPError.Column   >   0   Then   Response.Write   String((objASPError.Column   -   1),   "-")   &   "^<br>"  
  Response.Write   "</b></font>"  
  blnErrorWritten   =   True  
  End   If  
  End   If  
   
  If   Not   blnErrorWritten   And   objASPError.File   <>   "?"   Then  
  Response.Write   "<b>"  
  Response.Write   Server.HTMLEncode(objASPError.File)  
  If   objASPError.Line   >   0   Then   Response.Write   Server.HTMLEncode(",   第   "   &   objASPError.Line   &   "   行")  
  If   objASPError.Column   >   0   Then   Response.Write   ",   第   "   &   objASPError.Column   &   "   列"  
  Response.Write   "</b><br>"  
  End   If  
  %>  
  </li>  
  <p>  
  <li>错误描述:<br>  
  <%  
  response.write   Server.HTMLEncode(objASPError.description)  
  %>  
  </li>  
  <p>  
   
  </body>  
  </html>  
 


    摘要: 为什么连接access数据库的时候提示“catalog tables coule not be created and are not available for use” 但是程序还是能照常进行,就是一旦用database连接access数据库时就弹出这个警告 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE