[英]ASP.NET Parser Error:Could not load type (LINE 1)
I'm a newb to ASP.NET and I made an app in VS2010 using NET 4.0 (Working all fine in debug mode) I tried to host my app @ aspspider and I'm getting the following error: 我是ASP.NET的新手,我使用NET 4.0在VS2010中制作了一个应用程序(在调试模式下一切正常),我试图将应用程序托管在@aspspider上,但出现以下错误:
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 'AuthStealerPanel._Default'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="AuthStealerPanel._Default" %>
I also tried to rebuild the .dll and upload it to the /bin/ and application's root. 我还尝试重建.dll并将其上传到/ bin /和应用程序的根目录。 Any help?
有什么帮助吗? :>
:>
当您在页面背后的代码文件中进行任何更改时,您还必须上载.aspx文件;如果您的项目具有用户控件,则还必须上载Masterpage和UserControls文件
If you're seeing this error, then you haven't set up your site in IIS yet. 如果看到此错误,则说明您尚未在IIS中设置站点。 IIS is short for " Internet Information Services " and it's basically your webserver for .net web apps, like Apache would be for php.
IIS是“ Internet信息服务 ”的缩写,它基本上是.net Web应用程序的Web服务器,例如Apache就是php。 Every hosting provider is different, but you will always have a folder you publish your website to.
每个托管服务提供商都不同,但是您将始终拥有一个将网站发布到的文件夹。 You have to configure IIS to recognize this folder as a virtual directory and allow your applications to run in there.
您必须配置IIS才能将该文件夹识别为虚拟目录,并允许您的应用程序在其中运行。
For example: 例如:
With GoDaddy, you have to go to " IIS Managment ", click " Create " to create the virtual directory in IIS (doesn't matter if the directory already exists in the folder structure), and check the box that says " Set Application Root " - this tells IIS you'll be running asp.net code in there. 使用GoDaddy,您必须转到“ IIS管理 ”,单击“ 创建 ”以在IIS中创建虚拟目录(无论目录结构中是否已存在该目录),并选中“ 设置应用程序根目录 ”框“-这告诉IIS您将在其中运行asp.net代码。
With DiscountAsp.net you would go to the " Web Application Tool ", select the folder you've published to and click on " Install Application ". 使用DiscountAsp.net,您将转到“ Web应用程序工具 ”,选择发布到的文件夹,然后单击“ 安装应用程序 ”。 This will associate the directory with a new virtual directory in IIS and set it up to run asp.net code.
这会将目录与IIS中的新虚拟目录相关联,并将其设置为运行asp.net代码。
I haven't used other hosting providers, so these two are all I know. 我没有使用过其他托管服务提供商,所以我只知道这两个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.