应用程序codebehind =" global.asax.cs"继承= QUOT; bond.server.webapi.webapiapplication"语言= QUOT; C#" [英] Application codebehind="global.asax.cs" inherits="bond.server.webapi.webapiapplication" language="C#"
本文介绍了应用程序codebehind =" global.asax.cs"继承= QUOT; bond.server.webapi.webapiapplication"语言= QUOT; C#"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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 'Bond.Server.WebAPI.WebApiApplication'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Bond.Server.WebAPI.WebApiApplication" Language="C#" %>
运行代码时出现上述错误。
我的尝试:
I am getting the above error while running the code.
What I have tried:
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Global.asax.cs" company="Centrica Plc">
// Copyright (c) 2009-2013 Centrica Plc. All rights reserved. This computer program is the property of Centrica Plc of Windsor, Berkshire, England
// </copyright>
// <summary>
// Defines the WebApiApplication type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using System;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;
[assembly: CLSCompliant(true)]
namespace Bond.Server.WebAPI
{
public class WebApiApplication : HttpApplication
{
推荐答案
它应该是
Inherits="Bond.Server.WebAPI.Global"
和
and
public class Global: HttpApplication
这篇关于应用程序codebehind =" global.asax.cs"继承= QUOT; bond.server.webapi.webapiapplication"语言= QUOT; C#"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文