Explained Error: The directory /App_Code is not allowed... Hatası

0

Sayın Hocalarım ve Arkadaşlarım ben asp.net'de indirmiş olduğum bir projede bu hatayı alıyorum. araştırdım hatanın sebebini ama yabancı dilim yok anlayamadım. Bende şöyle bir hata  var:

Bunun yanıtı ise bu sayfa da http://www.beansoftware.com/ASP.NET-FAQ/Directory-App_Code-Not-Allowed.aspx bana bunun ne anlama geldiğini açıklayabilirmisiniz nasıl düzeltirim?

Server Error in '/s' Application.

The directory '/s/App_Code/' is not allowed because the application is precompiled.

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: The directory '/s/App_Code/' is not allowed because the application is precompiled.

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): The directory '/s/App_Code/' is not allowed because the application is precompiled.]
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +9750572
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
   System.Web.Compilation.BuildManager.CompileCodeDirectories() +382
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +252

[HttpException (0x80004005): The directory '/s/App_Code/' is not allowed because the application is precompiled.]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +62
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +427
   System.Web.Compilation.BuildManager.CallAppInitializeMethod() +31
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +535

[HttpException (0x80004005): The directory '/s/App_Code/' is not allowed because the application is precompiled.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9931948
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +456


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36330

notify notify (538)
8 yıl önce sordu

    Toplam 1 Cevap


    0

    The directory '/s/App_Code/' is not allowed because the application is precompiled. hatasını almanzın sebeb muhtemelen derlenmiş bir uygulamayı sunucuya atıyorsunuz ve atılan dosya, klasörler içinde App_code klasörü de var.

    App_Code klasörü Asp.Net'te özel bir klasördür. App_Code klasörü içinde pek çok  derlenmemiş dosya bululabilir.

    Uygulamanız derlenmiş bir uygulama ise o zaman App_Code klasörüne ihtiyacınız yok. /S klasörü altındaki App_Code klasörünün adını değiştirin ya da silin.

    murat murat (12492)
    8 yıl önce cevaplandı

      üyelik gerektirir

      Cevap yazabilmek için üye girişi yapmalısınız.

      Eğer uzmanim.net üyesiyseniz giriş yapabilirsiniz: üye girişi yap
      uzmanim.net'e üye olmak çok kolaydır: hemen kayıt ol