分析器错误消息:无法加载类型... [英] Parser Error Message: Could not load type...

查看:79
本文介绍了分析器错误消息:无法加载类型...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只有在我将ASP.NET项目上传到网络后才会收到以下错误。我已经试图解决这个问题好几天了,我找到了很多解决方案,但是我的问题没有解决。有没有人有这方面的经验?



我在Windows 7 64位系统上使用VS2010。



I'm getting the error below only after I upload my ASP.NET project to the web. I've been trying to resolve this issue for several days and I've found many solutions but non-fixed my problem. Has anybody here had any experience with this?

I'm Using VS2010 on a Windows 7 64bit system.

<pre lang="msil">Server Error in '/' Application.<br />
--------------------------------------------------------------------------------<br />
<br />
Parser Error<br />
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.<br />
<br />
Parser Error Message: Could not load type 'WebApplication3._Default'.<br />
<br />
Source Error:<br />
<br />
<br />
Line 1:  <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication3._Default" %><br />
Line 2:<br />
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<br />
Source File: /cm485a8/Default.aspx    Line: 1<br />
<br />
<br />
--------------------------------------------------------------------------------<br />
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618</pre>

推荐答案

您是否编译了项目并进行了部署?

你的网络应用程序的根目录中是否有一个/ bin文件夹?



如果其中任何一个的答案都没有那么你没有正确部署项目,你可能想要阅读一些这些文章。
Have you compiled your project and deployed it?
Is there a "/bin" folder in the root of your web application?

If the answer to either of these is no then you haven't deployed the project correctly and you may want to read up on some of these articles.


你去(里面的解释)



无法加载类型'_Default' [ ^ ]



无法加载类型'xxxxxxx.xxx.UI.Admin.Test' - ASP.NET 2.0错误和解决方案 [ ^ ]
Here you go (explanations there inside)

Could not load type '_Default'[^]

Could Not Load Type 'xxxxxxx.xxx.UI.Admin.Test' - ASP.NET 2.0 Error and Solutions[^]


Go到你的网站的属性,并在那里找到应用程序名称,然后单击创建,然后单击确定



它适用于我的同样问题。
Go to properties of your web site and find Application name there and click create and then click ok

its works for my same problem.


这篇关于分析器错误消息:无法加载类型...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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