分析器错误,当部署ASP.NET应用程序 [英] Parser Error when deploy ASP.NET application

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

问题描述

我已经完成了简单的asp.net web应用程序项目,编译它,并尝试测试本地IIS。我已经创建的虚拟目录,用物理目录映射它,然后把所有必需的文件存在,包括所有的.dll的bin文件夹
在项目设置,建设部分,输出路径是BIN \\
所以,当我尝试浏览我的应用程序我得到:

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 

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

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

推荐答案

我已经解决了问题。
解决的办法是赚不到虚拟目录manualy然后复制在这里的应用程序文件,但使用添加应用程序...选项。
下面是帖子,帮助我<一个href=\"http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/7ad2acb0-42ca-4ee8-9161-681689b60dda/\" rel=\"nofollow\">http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/7ad2acb0-42ca-4ee8-9161-681689b60dda/

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

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