解析器部署ASP.NET应用程序时出错 [英] Parser Error when deploy ASP.NET application

查看:175
本文介绍了解析器部署ASP.NET应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完成了简单的asp.net web应用程序项目,编译它,并尝试在本地IIS上测试。我创建了虚拟目录,将其映射到物理目录,然后将所有必需的文件放在那里,包括所有.dll的
的bin文件夹在项目设置中,构建部分,输出路径为bin \
当我尝试浏览我的应用程序时,我得到:

 '/'应用程序中的服务器错误。 
---------------------------------------------- ----------------------------------

解析器错误
说明:解析服务此请求所需的资源时发生错误。请查看以下特定解析错误详细信息,并适当修改源文件。

解析器错误消息:无法加载类型AmeriaTestTask.Default。

源错误:


第1行:<%@ Page Language =C#AutoEventWireup =trueCodeBehind =Default.aspx.cs Inherits =AmeriaTestTask.Default%>
第2行:
第3行:<%@ Register assembly =AjaxControlToolkitnamespace =AjaxControlToolkittagprefix =ajaxToolkit%>


源文件:/virtual/default.aspx行:1



已阅读类似的问题帖子和解决方案是将输出路径设置为bin\,但它是我的项目的defalut。

解决方案

解决了这个问题。
解决方案是不要在虚拟目录中手动复制应用程序文件,而是使用添加应用程序...选项。
这是帮助我的帖子 http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/7ad2acb0-42ca-4ee8-9161-681689b60dda/


I've finished simple asp.net web application project, compiled it, and try to test on local IIS. I've create virtual directory, map it with physical directory, then put all necessary files there, including bin folder with all .dll's In the project settings, build section, output path is bin\ So when i try to browse my app i got:

Server Error in '/' 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 'AmeriaTestTask.Default'.

Source Error: 


Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AmeriaTestTask.Default" %>
Line 2:  
Line 3:  <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>


Source File: /virtual/default.aspx    Line: 1 

Have read similar problem posts and solution was to set output path to bin\, but it is defalut for my project.

解决方案

I've solve the issue. The solution is to not making virtual dir manualy and then copy app files here, but use 'Add Application...' option. Here is post that helped me http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/7ad2acb0-42ca-4ee8-9161-681689b60dda/

这篇关于解析器部署ASP.NET应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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