I am making my very first asp.net project live and running into what I assume is configuration options. Note that there are similiar threads on StackOverflow regarding this but I have already gone through those answers but no success.
The project is working perfectly in my dev environment but on the production server it fails to work. I have restarted IIS, I have currently only this site in the config and the namespace is correct.
Having limited experience in this I am hoping someone can explain what the underlying issue is :)
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 'PrintMan.MvcApplication'.
Source Error:
Line 1: <%# Application Codebehind="Global.asax.cs" Inherits="PrintMan.MvcApplication" Language="C#" %>
Source File: /global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274
Related
I created an ASP.NET webforms application and it runs successfully, but after few when I open my project and run in VS then my project shows the error shown here. I searched about the error but I can't get exact solution.
The main problem not in path or link the main issues on my system because when I run application, I get the same issue, but then I off my antivirus, then it's working.
But now if I off the antiviruses then I will not working it's showing me the same problem.
Error Message
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Login.aspx
Version information:
Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0
I've deployed the application on Server (HostGator), and on Preview it gives me following error
Server Error in '/' Application. Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the
specific error details below and modify your configuration file
appropriately.
Parser Error Message: This configuration section cannot be used at
this path. This happens when the site administrator has locked access
to this section using from an
inherited configuration file.
Source Error:
An application error occurred on the server. The current custom error
settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could,
however, be viewed by browsers running on the local server machine.
Source File:
D:\InetPub\vhosts\accleague.org\admin.accleague.org\web.config
Line: 24
But when same application deployed on another Server, it runs smoothly on 1st try.
Tried every possibility mentioned on internet but unable to resolve the issue.
I just moved an Umbraco 4.0.3 application to a shared hosting, with asp.net 4 classic mode.
i have copied all the source to the new location, uploaded the database and changed the connection string.
But i get the following parse error:
Parser Error Message: Could not load type
'Umbraco.Web.UmbracoApplication'.
Source Error:
Line 1: <%# Application Inherits="Umbraco.Web.UmbracoApplication"
Language="C#" %> Line 2:
Source File: /global.asax Line: 1
Here is a snapshot of the error page
I had to rename the project locally from using 'umbraco' to resolve the same error.
http://jondjones.com/installing-umbraco-7-in-visual-studio-via-nuget/
I am moving some of my code from azure to my local server but it is giving me wierd errors when browsing the site.
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 create type 'dtu._02267.LameDuck.LameDuckService'.
Source Error:
Line 1: <%# WebService Language="C#" CodeBehind="LameDuckService.asmx.cs" Class="dtu._02267.LameDuck.LameDuckService" %>
http://dtu.02267.sogaard.us/LameDuck/LameDuckService.asmx
The default.aspx file is also giving errors
http://dtu.02267.sogaard.us/LameDuck/
it is the same code as hosted on azure, and it is workign fine there:
http://sogaardlameduck.azurewebsites.net/LameDuckService.asmx
http://sogaardlameduck.azurewebsites.net/
The wierd thing is the my local iss server is also hosting a MVC site and it is working fine:
http://redcloud.sogaard.us/
Update:
I'm creating a website with Entity Framework, and have had quite a bit of fun due to changing from VS2010 to VS2012 (which deals with DBContexts instead of ObjectContexts). I had to recreate the Entity Model a couple of times, and I think I've got it all sorted out, but I'm now getting the following error on the staging machine:
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: No Conceptual Schema node to embed as a resource
Source Error:
[No relevant source lines]
Everything is working on the local machine. The data model is pointing to the same sql server database on the network for both local and staging (for now, the next trick is to get the staging to point to the live data, but that's a problem for a different SO question :).
I have found little info on the 'No conceptual schema ...' error message, but I have checked that 'Enable 32-Bit Applications' is set to true as advised here: Compilation Error: [No relevant source lines]
Does anyone know how to deal with this error? I'm lost.