Küçük bir web uygulamam var. Uygulamama iki genericHandler ekleyene kadar iyi çalışıyordu.
Http işleyicisi için aşağıdaki değişiklikleri yaptım
<system.web>
<authentication mode="Forms" >
<forms protection="All" timeout="720" defaultUrl="Default.aspx" loginUrl="Login.aspx" >
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<compilation debug="true" targetFramework="4.0" />
<httpHandlers>
<!--Code Log Handler-->
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" />
<add verb="*" type="InfoDomeNewUI.Handler.SendOWA" path="SendOWA.ashx" />
<add verb="*" type="InfoDomeNewUI.Handler.SendSOS" path="SendSOS.ashx" />
</httpHandlers>
<customErrors mode="Off">
<error statusCode="404" redirect="Templates/PageNotFound.html" />
</customErrors>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<!--Code Log Handler-->
<add name="LogHandler1" path="SendOWA.ashx" verb="*" type="InfoDomeNewUI.Handler.SendOWA"/>
<!-- SMS SENDER-->
<add name="SendSOS" path="SendSOS.ashx" verb="*" type="InfoDomeNewUI.Handler.SendSOS"/>
</handlers>
</system.webServer>
Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Asp.net4.0 ve C # kullanıyorum.
Yerel ana bilgisayarda MVC kullanmıyorum
, iyi çalışıyor.
Ancak yayınlanan kodu barındırdığımda bana yukarıdaki hatayı veriyor.
Yığın izleme:-
[FileNotFoundException: Dosya veya 'Microsoft.Web.Infrastructure, Sürüm = 1.0.0.0, Culture = nötr, PublicKeyToken = 31bf3856ad364e35' veya bağımlılıklarından biri yüklenemedi. Sistem belirtilen dosyayı bulamıyor.] System.Web.Http.WebHost.SuppressFormsAuthRedirectModule.Register () +0
[InvalidOperationException: Uygulama öncesi başlatma başlatma yöntemi Start on type System.Web.Http.WebHost.PreApplicationStartCode, aşağıdaki hata iletisiyle bir istisna attı: Dosya veya derleme yüklenemedi 'Microsoft.Web.Infrastructure, Version = 1.0.0.0, Kültür = tarafsız, PublicKeyToken = 31bf3856ad364e35 'veya bağımlılıklarından biri. Sistem belirtilen dosyayı bulamıyor ..] System.Web.Compilation.BuildManager.InvokePreStartInitMethods (ICollection`1 yöntemleri) +11708830 System.Web.Compilation.BuildManager.CallPreStartInitMethods () +465 System.Web.Hosting.HostingEnvironment.Initialize ( ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLeve
[HttpException (0x80004005): Uygulama öncesi başlatma başlatma yöntemi Start on type System.Web.Http.WebHost.PreApplicationStartCode aşağıdaki hata iletisiyle bir istisna attı: Dosya veya derleme yüklenemedi 'Microsoft.Web.Infrastructure, Sürüm = 1.0 .0.0, Culture = nötr, PublicKeyToken = 31bf3856ad364e35 'veya bağımlılıklarından biri. Sistem belirtilen dosyayı bulamıyor ..] System.Web.HttpRuntime.FirstRequestInit (HttpContext bağlamı) +11697760 System.Web.HttpRuntime.EnsureFirstRequestInit (HttpContext bağlamı) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate) +4866485