{"id":1188,"date":"2010-08-12T22:24:32","date_gmt":"2010-08-12T14:24:32","guid":{"rendered":"http:\/\/fanhaijun.com\/?p=1188"},"modified":"2010-08-12T22:26:10","modified_gmt":"2010-08-12T14:26:10","slug":"%e5%a6%82%e4%bd%95%e8%ae%a9iis7%e6%98%be%e7%a4%baasp%e9%94%99%e8%af%af%e7%9a%84%e8%af%a6%e7%bb%86%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"https:\/\/fanhaijun.com\/?p=1188","title":{"rendered":"\u5982\u4f55\u8ba9IIS7\u663e\u793aASP\u9519\u8bef\u7684\u8be6\u7ec6\u4fe1\u606f"},"content":{"rendered":"<p>\u5728\u7f51\u7ad9\u76ee\u5f55\u4e0b\u5efa\u7acbweb.config\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;   <br \/>&lt;configuration&gt;    <br \/>&#160;&#160;&#160; &lt;system.webServer&gt;    <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;httpErrors errorMode=&quot;Detailed&quot; \/&gt;    <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;asp scriptErrorSentToBrowser=&quot;true&quot;\/&gt;    <br \/>&#160;&#160;&#160; &lt;\/system.webServer&gt;    <br \/>&lt;\/configuration&gt;<\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u91cd\u65b0\u663e\u793a\u8be6\u7ec6\u4fe1\u606f\u4e86\u3002\u5728Godaddy\u7684\u865a\u62df\u4e3b\u673a\u4e0a\u6d4b\u8bd5\u53ef\u884c\u3002<\/p>\n<p>\u539f\u6587\u5982\u4e0b\uff1a<\/p>\n<p>\u5730\u5740\uff1a<a title=\"http:\/\/internetoptimizers.com\/2010\/01\/24\/classic-asp-using-iis7-error-handling-500-internal-server-error-godaddy\/\" href=\"http:\/\/internetoptimizers.com\/2010\/01\/24\/classic-asp-using-iis7-error-handling-500-internal-server-error-godaddy\/\" target=\"_blank\">http:\/\/internetoptimizers.com\/2010\/01\/24\/classic-asp-using-iis7-error-handling-500-internal-server-error-godaddy\/<\/a><\/p>\n<blockquote>\n<p>Classic ASP using IIS7 \u2013 Error Handling \u2013 500 Internal Server <\/p>\n<p>Howdy All, <\/p>\n<p>This is a common problem I see lots of people running into since GoDaddy upgraded from IIS 6 to IIS 7.&#160; The below story is a similar situation that I had while trying to work on a Classic ASP web site hosted at GoDaddy. I have included the answer\/fix below.     <br \/>Original Story:&#160; I am with godaddy for webhosting right now. The have me using IIS7.      <br \/>When I run my ASP page I get the error : <\/p>\n<p>Error 500 :There is a problem with the resource you are looking for,     <br \/>and it cannot be displayed. <\/p>\n<p>Basically, there is an error in my code, however, it doesn\u2019t tell me     <br \/>the line number the error was found on. After searching the web I      <br \/>found out how to turn on the more detailed error reporting\u2026 but you      <br \/>have to do it on the webserver. I don\u2019t have access to the webserver. <\/p>\n<p>After spending allot of time chatting with godaddy, they claim I can     <br \/>turn this on in the web.config file. I know this can be turn on for      <br \/>ASP.NET in the web.config file\u2026 but as far as I know, not classic      <br \/>asp. <\/p>\n<p>OK\u2026. Here is the web.config file I use that gives you the old school error handling data: <\/p>\n<p>Step 1.&#160; Open a text document. <\/p>\n<p>Step 2.&#160; Insert this code: <\/p>\n<p>&lt;configuration&gt;     <br \/>&#160;&#160;&#160; &lt;system.webServer&gt;      <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;httpErrors errorMode=&quot;Detailed&quot;\/&gt;      <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;asp scriptErrorSentToBrowser=&quot;true&quot;\/&gt;      <br \/>&#160;&#160;&#160; &lt;\/system.webServer&gt;      <br \/>&lt;\/configuration&gt; <\/p>\n<p>Step 3.&#160; Save the file as Web.Config <\/p>\n<p>Step 4.&#160; Upload the Web.Config file to your host web directory. <\/p>\n<p>I hope this helps people avoid the few hours I was on the phone with GoDaddy technical support.&#160; :)&#160;&#160; Please let me know if this helps anyone out.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u7f51\u7ad9\u76ee\u5f55\u4e0b\u5efa\u7acbweb.config\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a &#038;lt&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[104],"tags":[258,257,256],"class_list":["post-1188","post","type-post","status-publish","format-standard","hentry","category-technogy","tag-asp500","tag-asp","tag-iis7"],"_links":{"self":[{"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/posts\/1188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1188"}],"version-history":[{"count":0,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/posts\/1188\/revisions"}],"wp:attachment":[{"href":"https:\/\/fanhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}