Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
[No relevant source lines]
Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a6f9ad3e\7d6f22eb\App_Web_ckcrdejl.4.cs Line: 0
I am keep getting this error when i try to post the data into the database in production server
Related
I made asp.net website, that work well on local (run debug in VS). But after I succesfully publish it (using VS) to a webhosting, the website does not work.
Problems started after I added references to some 3rd party DLLs and using them.
Did I miss something when referencing these DLLs?
Thank you for your time!
Error message is:
Server Error in '/' Application.
Request timed out.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request timed out.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Request timed out.]
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0
i've added a simple Cshtml there's nothing in it but when i run the project i get this error and i know there's sth wrong with this file bin\roslyn\csc.exe"
Server Error in '/' Application.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: The file or
directory is corrupted and unreadable
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[Win32Exception (0x80004005): The file or directory is corrupted and
unreadable]
[ExternalException (0x80004005): Cannot execute a program. The command
being executed was "c:\users\mostafa\documents\visual studio
2017\Projects\InstagramAutomationPosts\Instagram_Automation_Posts\bin\roslyn\csc.exe"
/shared /keepalive:"900" /noconfig /fullpaths
#"C:\Users\Mostafa\AppData\Local\Temp\Temporary ASP.NET
Files\vs\a17df867\580bcfa2\mauhk4p3.cmdline".]
My view
#{
ViewBag.Title = "Index";
}
<h2>Index</h2>
how can i solve this issue?
Rebuilding the project solved the issue for me
i know it's not correct way to answer but what i did was (and might help someone in future),i made another project and copied everything there and it got fixed
I am getting this error whenever I try to visit my site: www.adityaagroindustries.com
The error is as follows:
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: The compiler failed with error code -1073741502
Can anyone please help.
Thanks in advance.
i've updated to the new mvc 4 RC version released this week and after deployment to azure, i got the error message:
Method not found: 'System.Web.Http.Services.DependencyResolver System.Web.Http.HttpConfiguration.get_ServiceResolver()'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found: 'System.Web.Http.Services.DependencyResolver System.Web.Http.HttpConfiguration.get_ServiceResolver()'.
I'm using the GlobalConfiguration.Configuration object to configure all the stuff and everything works on my machine.
Could you help me with this please?
Thanks!
I was trying upgrading to .net 4 for my WebForms asp.net project.
Now I'm getting this when I try going to the .asmx webservice.
Server Error in '/' Application.
Type 'Chickenweb.WebServ.WebServ' does not inherit from 'System.Web.UI.Page'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Type 'Chickenweb.WebServ.WebServ' does not inherit from 'System.Web.UI.Page'.
It was because I'm using IIS and was using incorrect Application pool. Thanks for all your answers!
It looks like IIS thinks your .asmx file is a .aspx file. You should check the mappings in IIS to see that .asmx is enabled and properly set up.