Asp.net 分析器错误消息:无法加载类型';PatronWebUserUtility.PatronWebUserMaintenance';
我们正试图发布一个简单的单页ASPX/VB.NET应用程序,该应用程序管理数据库中的一个表,但遇到了麻烦。当我们在VisualStudio中运行应用程序时,它运行得非常好。但是,在发布到IIS服务器(使用Visual Studio与PC分离)后,应用程序会收到此错误。我们从其他帖子中尝试了很多建议,但在我们的例子中似乎没有什么不同 应用程序配置为针对.NET 4生成,IIS应用程序池也设置为.NET 4。IIS服务器版本为8.0,在Windows server 2012 v6.2上运行 将应用程序发布到服务器时,会生成以下文件结构: 垃圾箱(文件夹) -用户WebUserUtility.dll -用户webuserutility.pdb -用户webuserutility.xml 用户WebUserMaintenance.ASPX Web.Config 我之所以包含上述内容,是因为我不确定所有内容都是按应有的方式发布的,但我不知道如何验证DLL中实际发布的内容。我想ASPX.VB页面会包含在那里,但我只是不知道 我们在ASP方面一点经验都没有,我们只是想在没有ASP开发人员的情况下艰难地完成这个小项目。下面的代码块在我们实际的应用程序代码之前停止,我不认为这对于这个查询是必要的,但是如果您需要更多信息来帮助,请询问 错误消息: Web配置:Asp.net 分析器错误消息:无法加载类型';PatronWebUserUtility.PatronWebUserMaintenance';,asp.net,vb.net,iis,Asp.net,Vb.net,Iis,我们正试图发布一个简单的单页ASPX/VB.NET应用程序,该应用程序管理数据库中的一个表,但遇到了麻烦。当我们在VisualStudio中运行应用程序时,它运行得非常好。但是,在发布到IIS服务器(使用Visual Studio与PC分离)后,应用程序会收到此错误。我们从其他帖子中尝试了很多建议,但在我们的例子中似乎没有什么不同 应用程序配置为针对.NET 4生成,IIS应用程序池也设置为.NET 4。IIS服务器版本为8.0,在Windows server 2012 v6.2上运行 将应用程
根据您的描述,我想您可能会将IIS网站的物理文件路径设置为父路径而不是正确的路径 我建议您可以尝试修改物理文件路径,然后重试 更多详细信息,请参考以下步骤: 1.打开IIS管理控制台: 2.查找您使用过的网站 3.右键单击网站,然后选择“管理网站和高级设置” 4.修改CustomerWebUserMaintenance的物理路径,而不是inetpub文件夹
您现在可以告诉我您的IIS网站的文件夹目录吗?IIS似乎找不到bin文件夹。该文件夹在服务器上的inetpub文件夹中名为PatrontWebUserMaintenance。物理路径已设置为“c:\inetpub\PatrontWebUserMaintenance”。您是否建议将目录移出inetpub,那么路径就是c:\PatronWebUserMaintenance?您能告诉我您在vs中创建了哪个项目吗?ASP.NET网站或ASP.NET Web表单应用程序“?ASP.NET Web应用程序(.NET Framework)Visual Basic
Parser Error Message: Could not load type 'PatronWebUserUtility.PatronWebUserMaintenance'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="PatronWebUserMaintenance.aspx.vb" Inherits="PatronWebUserUtility.PatronWebUserMaintenance" MaintainScrollPositionOnPostback="true"%>
Line 2:
Line 3: <!DOCTYPE html>
Source File: /patronwebusermaintenance/PatronWebUserMaintenance.aspx Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36480
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="PatronWebUserMaintenance.aspx.vb" Inherits="PatronWebUserUtility.PatronWebUserMaintenance" MaintainScrollPositionOnPostback="true"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Patron Web User Maintenance</title>
</head>
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Imports System.Data.OleDb
Imports System.Web.UI
Public Class PatronWebUserMaintenance
Inherits System.Web.UI.Page
<configuration>
<appSettings/>
<connectionStrings>
<add name="PatronWebTestConnectionString" connectionString="Data Source=SQLSERVER;Initial Catalog=PatronWebTest;Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>
<httpRuntime/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
</system.web>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="PatronWebUserMaintenance.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>