Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá, estou usando os serviços da amazon na versão teste onde estou usando um servidor gratuíto windows server 2012 r2 para hospedar minha aplicação em asp net mvc 4, fiz a configuração do IIS, hospedei primeiro um site em html e asp classic e funcionou normalmente, porém quando subi minha aplicação em asp net mvc 4, está apresentando uma mensagem de erro e gostaria de ajuda, pois já fiz algumas configurações no IIS porém a mensagem persiste:
Server Error in '/' Application.
Could not load file or assembly 'System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
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.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
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.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
Eu subi manualmente e subi tb a pasta bin + os assembly que indicaram em um tutorial, hoje instalei o ASP.NET MVC 4 para Visual Studio 2010 SP1 e Visual Web Developer 2010 SP1 local está este erro:
Server Error in '/SAC' 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: Could not load type 'Sac.Seguranca.MyRoleProvider'.
Source Error:
Source File: C:\inetpub\wwwroot\web.config Line: 62
e no link publicado com p domínio permanece o erro postado no inicio deste post
Isso esta estranho, são erros completamente diferentes. De qualquer forma primeiro resolva o problema local para depois publicar seu projeto.
Como publicou sua aplicação ? Usou o publish do visual studio e subiu todos os arquivos, incluindo a pasta bin ?