经典ASP超级新手的问题 [英] Classic ASP super newbie question

查看:132
本文介绍了经典ASP超级新手的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OK,所以我最近搬进了Web开发的世界花了好几年了pretty简单的专有语言编码后,我的第一份工作之一就是调整一个古老传统的ASP页面的一个我们的客户。
我使用Visual Studio 2008中尝试调试我有一些问题,但该页面将不会加载在所有。如果我浏览该网站在本地使用IIS,则一切正常,没有任何问题可言,所以我不知道我做错了。

OK, So I have recently moved into the world of Web development after spending quite a few years coding in a pretty simple proprietary language, and one of my first jobs is to tweak an old classic ASP page for one of our clients. I'm using Visual Studio 2008 to try debug some problems I am having, but the page won't load at all. If I browse the site locally using IIS, then everything works without any trouble at all, so I am not sure what I am doing wrong.

下面是错误消息我得到;

Here's the error message I get;

Compiler Error Message: BC30451: Name 'VariableName' is not declared.

这是设置,该方式是file1.asp有包括file2.asp

The way this is setup, is that file1.asp has an include for file2.asp

<!-- #include file=./includes/file2.asp -->

然后file2.asp具有形式职位file3.asp

Then file2.asp has a form post for file3.asp

<FORM METHOD="POST" ACTION="/includes/file3.asp">

里面file3.asp是在创建变量,其中

Inside file3.asp is where the variable is created.

因此​​,在运行通过IIS这个网站的时候,一切正常,变量看文件之间传递没有任何麻烦,但是当我尝试使用VS2008调试现场,我得到的BC30451错误code。

So, when running this site via IIS, everything works, the variables look to be passed between files without any trouble, but when I try to debug the site using VS2008, I get the BC30451 error code.

任何人都可以纠正我的船?我已经做了很多谷歌搜索和阅读其他网站,似乎处理这个问题,但很多它会在我的头上。
如果任何人都可以请花时间去解释什么&放大器;这是为什么发生的事情,以及提供某种解决方案,或者指着我的地方,也许能帮助的方向,这将是比大大AP preciated以上。

Can anyone right my ship? I've been doing a lot of googling and reading of other websites that seem to deal with this issue, but a lot of it is going over my head. If anyone could please take the time to explain what & why this is happening, as well as providing some kind of solution, or pointing me in the direction of somewhere that may be able to help, it would be more than greatly appreciated.

干杯,

专利

推荐答案

您的可以调试传统的ASP在Visual Studio 2008中做到这一点涉及到调试器附加到正在运行的进程的方式你ASP页面。 请记住,传统的ASP调试只用IIS工程;它不与VS开发Web服务器(卡西尼)工作的同时,请确保您已启用ASP调试在IIS:

You can debug classic ASP in Visual Studio 2008. The way to do it involves attaching the debugger to the process that is running your ASP pages. Keeping in mind that Classic ASP debugging only works with IIS; it does not work with the VS Development Web Server (Cassini). Also, make sure that you have enabled ASP debugging in IIS:


一旦你在IIS的配置如上所述,这里是如何安装调试器:

Once you have the configuration in IIS as noted above, here is how to attach the debugger:


  1. 打开Visual Studio中的经典ASP文件

  2. 的任何地方设置一个断点要在服务器端code打破

  3. 查看网页在Web浏览器(确保主机进程正在运行)

  4. 在Visual Studio中:调试菜单 - >附加到进程

  5. 找到IIS的ASP辅助进程(W3wp.exe在IIS6,DLLHOST.EXE在IIS5.1)

  6. 附加到脚本code 作为主机进程(参见下面的例子)

  1. Open the Classic ASP files in Visual Studio
  2. Set a breakpoint anywhere you want to break in the server-side code
  3. View the page in a web browser (ensures that the host process is running)
  4. In Visual Studio: Debug Menu -> Attach to Process
  5. Locate the IIS ASP worker process (w3wp.exe on IIS6, dllhost.exe on IIS5.1)
  6. Attach to the script code for the host process (see below for example)

在这一点上,断点应该绑定,你应该能够调试经典的ASP页面。 (您可能需要刷新浏览器页面,以获得$ ​​C $ C再执行一次调试器已附加)

At this point, the breakpoint should bind and you should be able to debug the Classic ASP pages. (you may have to refresh the page in the web browser to get the code to execute again once the debugger has been attached)

这篇关于经典ASP超级新手的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆