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!
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
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
Any help for how to get out of this error?
An unhandled exception "System.Security.Cryptography.CryptographicException" occurred in w3wp.exe
I'm getting this error whenever I browse for the site I have setup in IIS
(version 7.5.7600.16385)
Other info:
.Net framework: 2.0
PipeLine mode: integrated
AppPool ID: NetworkService
Load User Profile : true
Any help/suggestions appreciated.
Thanks
UPDATE:
I'm just trying to load default page.
System.Security.Cryptography.CryptographicException was unhandled
Message=The system cannot find the path specified.
Source=mscorlib
StackTrace:
at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
at System.Security.Cryptography.SafeKeyHandle._FreeHKey(IntPtr pKeyCtx)
at System.Security.Cryptography.SafeKeyHandle.ReleaseHandle()
at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
at System.Runtime.InteropServices.SafeHandle.Finalize()
InnerException: null
Try this:
Sitecore - System.Security.Cryptography.CryptographicException
Not sure what the problem is - but it sounds similar
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.