好吧,这已经是一个非常简单的问题。我似乎无法在任何地方找到答案。首先 - 我不是任何类型的网络开发人员,我是一个老派的C编程人员 - 所以不要为我可能是一些相当琐碎的东西而激怒我:)安装ASP.NET应用程序
我需要编写一个小的证明 - 使用ASP.NET的概念web应用程序。我第一次尝试创建一个“Hello World!”应用程序。所以我打开了Visual Studio,并创建了一个新的Web应用程序。我有我的Default.aspx文件,它调用Visual Studio自动创建的helloworld.dll中的C#函数。
我在本地机器上安装了IIS,并在wwwroot子目录中创建了一个虚拟目录。我把Default.aspx和helloworld.dll放在那个目录下。现在,当我浏览到该页面时,我看到以下内容。
Server Error in '/test' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'HelloWorld._Default'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HelloWorld._Default" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /test/default.aspx Line: 1
显然,IIS不知道在哪里寻找.dll或类似的东西。我只是不知道如何注册.dll与IIS(或谁管理这些东西在.net中),以便它可以找到它需要的功能。
有人可以让我知道如何在IIS上“安装”ASP.NET应用程序吗?
你的代码是什么样的?在.aspx和.aspx.cs中 – 2008-11-17 23:45:56