related to .net - Parser Error Message: Could not load type
I am running the .net application but i got this 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: 开发者_StackOverflow中文版Could not load type 'WebApplication10.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication10.Global" Language="C#" %>
Source File: /global.asax Line: 1 "
I dont know why its was giving this error
WebApplication10
needs to be included as a reference in your app.
Here is some info from Microsoft Support
http://support.microsoft.com/kb/306155
I'm not familiar with the namespace WebApplication10
so it's either
- A custom assembly
- An assembly I've never heard of / can't find
- The wrong assembly reference.
- A project within your solution that needs to be built
Your resolution steps would be to
- "Build" your solution (if the problem is from #4 above)
- open up the search on your machine and look for
WebApplication10
on your computer. If you find it, add it as an assembly reference, if you don't find it, remove it and see what happens. (if the problem is #1, #2 or #3 above)
Here's what the first line in my Global.asax file looks like
<%@ Application Language="VB" %>
Now I'm not a C# guy, so I've gone to a random Codeplex web application and looked at what's at the top of a C# Global.asax file, and this is what I see.
<%@ Application Language="C#" %>
So I'm thinking you should start there.
Edit
Upon further digging, it appears as though WebApplication10
might have something to do with the .NET 1.0 framework. Do you have .NET 1 installed on your machine? Are you working with a legacy app or is this a brand new project you're working on?
精彩评论