参考书是飞思科技的《delphi7网络应用开发》要在asp.net中使用delphi作为脚本语言,需要进行如下设置:
一、设置iis虚拟目录,这个不用说了。
二、在该虚拟目录中放置如下两个文件:web.config和DelphiProvider.dll。web.config是配置文件。DelphiProvider.dll是delphi for .net预览版中带的,我将它放在虚拟目录的bin文件夹中。我试着写了一个页面,在测试的时候出了点问题,提示错误信息如下:Server Error in '/delphi' Application.
--------------------------------------------------------------------------------Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load type borland.delphi.delphicodeprovider from assembly delphiprovider.Source Error: 
Line 6:          </assemblies>
Line 7:          <compilers>
Line 8:             <compiler language="delphi" extension=".pas"
Line 9:                 type="borland.delphi.delphicodeprovider,delphiprovider"/>
Line 10:         </compilers>
 Source File: H:\delphi.net\web.config    Line: 8 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 页面源码如下:
<%@ page language="delphi" runat="server" %><script runat="server">
procedure button1click(sender:system.object,e as eventargs);
begin
  if password.text='delphi' then
  begin
    message1.text:=username.text+':';
    message2.text:='你好! 密码正确,欢迎进入!'
  end
  else begin
    message1.text:='密码不正确!';
    message2.text:='';
  end;
end;
</script><body>
<form runat="server">
  姓名:
  <asp:textbox id="username" runat=server/><br>
  密码:
  <asp:textbox id="password" runat=server/><br>
  <asp:button text="提交" onlick="button1click" runat=server/>
</form><p><b><asp:label id="message1" runat=server/></b></p>
<p><b><asp:label id="message2" runat=server/></b></p></body>
</html>烦请各位大大帮忙看看,问题出在哪里?