while running my page showing error one error. The error is :
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'CreateResourceBasedLiteralControl'
is not a member of 'ASP.staff_hod_site_master'.
Source Error:
Line 23: Line 24: Line 25: Line 26: This shop requires
JavaScript to run correctly. Please activate JavaScript in your
browser. Line 27:
Help me to find a proper solution. Thank you.
Check your Page directive and make sure it is inheriting the proper file.
<%# Page Language="VB" AutoEventWireup="false" CodeFile="Index.aspx.vb" Inherits="Reports_Index" %>
And check the partial class too.
Partial Class Reports_Index
This typically happens if you renamed the file.
Check for other/additional dependencies which you might've missed. The last time I had this error it was because I only deployed the files which were part of my current build, instead of all of the files in my ./bin/ folder. I looked in my (currently working) dev machine, in the project/bin/ folder and found a few additional files (which were not in my newest build). Once I added those to my server, problem-solved.
Related
Source Error:
Parser Error Message: Could not load type 'MyProject.MvcApplication'.
Line 1: <%# Application Codebehind="Global.asax.cs"
Inherits="MyProject.MvcApplication" Language="C#" %>
I have implemented all solution provided on below links and many more, but I'm not able to fix this issue. Is this related to the IDE? If so, I will open this app in something other than VS2019, then this issue would not occur.
IIs Error: Application Codebehind=“Global.asax.cs” Inherits=“nadeem.MvcApplication”
https://social.msdn.microsoft.com/Forums/windows/en-US/7ad2acb0-42ca-4ee8-9161-681689b60dda/bin-folder-location-causes-quotparser-error-message-could-not-load-typequot-problem?forum=winformssetup
https://www.c-sharpcorner.com/forums/i-am-facing-problem-during-build-my-asp-net-mvc-application
To resolve the issue you could try below workaround:
1)Delete all files from the bin folder of the project. Right-click on the project and click clean and build.
2)Check your global.asax and global.asax.cs are correctly formated.
3)try to remove the site from the iis and recreate it by your self.
If the above way is not working then I suggested you to restart the application OR remove the temporary files in the computer by Run command temp and %temp% OR include the obj folder in to the project and rebuild and run.
Refer this below link for more detail:
"Parser Error Message: Could not load type" in Global.asax
Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication'
I have a webapplication running on framework 3.5 and is installed on multiple clients, working perfectly.
Except this one client... where all webservices that the application provide fail with the following error message:
Compilation Error Description: An error occurred during the
compilation of a resource required to service this request. Please
review the following specific error details and modify your source
code appropriately.
Compiler Error Message: CS0103: The name 'Encoding' does not exist in
the current context
Source Error:
Line 100: string EscapedFileName { Line 101: get { Line
102: return HttpUtility.UrlEncode(FileName, Encoding.UTF8);
Line 103: } Line 104: }
Source File:
c:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\DefaultWsdlHelpGenerator.aspx
Line: 102
Google points me toward the application might be targeting the client version of the framework or the system missing the system.web dll.
I've checked that both this possibilities are not the cause... Any ideas?
Try to use the namespace
using System.Text;
Check your web.config for any <clear /> elements for the namespaces.
Also, check your App Pool settings. If possible, can you create a new App Pool and try again?
I was able to fix this by locating the DefaultWsdlHelpGenerator.aspx file at the specified path and adding this to the Imports at the top:
<%# Import Namespace="System.Text" %>
In my case, I was also seeing a similar error about HtmlUtility not existing, which I was able to fix by adding:
<%# Import Namespace="System.Web" %>
Recently we have moved our project to web app and everything is good but suddenly I do not know when I am trying to debug my application its showing me the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
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 'NavigateWebApp.Global'.
Source Error:
Line 1: <%# Application Codebehind="Global.asax.cs" Inherits="NavigateWebApp.Global" Language="C#" %>
Source File: /global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4971; ASP.NET Version:2.0.50727.4971
I am sure that there are no build errors.
This is probably caused by your 'NavigateWebApp.Global' class/namespace not being available in the location you've specified.
Check where you define this and ensure it's accessible to the Global.asax page.
The root of the problem is your Global.asax file is referencing a class which no longer exists (or at least at the location you have specified). Simple fix is to update the Inherits attribute with the fully qualified path to your Global.asax class name (which you will find in the Global.asax.cs file).
When I transfer my project to a server, I now get this error message. What does it mean and how do I fix it?
Server Error in '/HD' Application.
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 'HD._Default'.
Source Error:
Line 1: <%# Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="HD._Default" %>
Line 2:
Line 3: <%# Register Assembly="FormControls" Namespace="FormControls" TagPrefix="FC" %>
Source File: /helpdeskform/HD/default.aspx Line: 1
The #Page directive included this attribute: Inherits="HD._Default".
This means that there is a class _Default in the HD namespace associated with this page.
The error means that this class cannot be found.
A fix depends on how the site is setup and deployed:
You can solve this by copying the class to the correct location
Use the Visual Studio deployment tool (right click the web project then Deploy)
I prefer using the deployment tool - you can deploy to a local folder to ensure all dependencies are there, then upload to a server if you are not comfortable or able to use the direct to server options.
In my application i am using youtubevide (www.aspnet-video.com). I installed and write the code. when i run this application it is showing like this.....
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type 'ASPNetVideo.WindowsMedia' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\youtubevideo\fe0d5a9d\4d87ccb0\assembly\dl3\690f1934\002677f1_a2eec901\ASPNetVideo.NET3.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\youtubevideo\fe0d5a9d\4d87ccb0\assembly\dl3\b377a6f8\17e0b64d_33fcca01\ASPNetVideo.NET2.DLL'
Source Error:
Line 11:
Line 12:
Line 13:
Line 14:
It seems you have included tho different assemblies defining the same class. Have a look at your project references.