“解析为此请求提供服务所需的资源时出错”。请查看以下特定解析错误详细信息并适当地修改源文件“。我有... [英] "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". I Have...

查看:88
本文介绍了“解析为此请求提供服务所需的资源时出错”。请查看以下特定解析错误详细信息并适当地修改源文件“。我有...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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 'ShoeFun.User'.

Source Error:


Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="User.master.cs" Inherits="ShoeFun.User" %>
Line 2:
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Source File: /User.Master    Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

推荐答案

它的工作原理:



1-将构建操作设置为内容

2-将复制到输出目录设置为始终复制



步骤设置这些选项:



===>右键单击Web表单(Defoult.aspx)

===>然后点击属性

===>将构建操作设置为内容



有时如果您没有将Ajax工具箱管理器与Global一起使用。
It's Works by :

1- Set the "Build Action" to Content
2- Set the "Copy to Output Directory" to Copy always

Steps to set these options:

===> Right click on Web-form (Defoult.aspx)
===> then click Properties
===> Set the "Build Action" to Content

Sometimes if your are not put Ajax toolkit Manager with Global .


错误意味着它说的是什么。编译器找不到'ShoeFun.User'类。为什么你认为它应该能够?
The error means what it says. The compiler cannot find the 'ShoeFun.User' class. Why do you think it should be able to ?


另一个解决方案是:由于各种原因....你/我不小心忘记在项目中包含aspx及其代码。因此,当编译为DLL时,不包含该文件,并且会弹出该错误。
Another solution is: for various reasons.... you/i accidentally forgot to include that aspx and its code behind in the project. So when compiling as DLL that file is not included and that error will pop up.


这篇关于“解析为此请求提供服务所需的资源时出错”。请查看以下特定解析错误详细信息并适当地修改源文件“。我有...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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