Merhaba arkadaşlar boş bir Asp.net mvc 5 projesi hazırladım, merhaba dünya yazıyor klasik olarak bu projem localhost ve azure platformunda sıkıntısız yayınlayabiliyorum. Yalnız kendi satın aldığım hostingde yayınlayamıyorum. Visual studio içerisinden publish ediyorum.

publish seçeneklerim



Publish bittikden sonra filezilladan publish etmek istediğim dizinin görüntüsü



Sonuçta bomboş bir proje aldığım hatalar ise

Kod:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace: 

 [SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +34
   System.Security.CodeAccessPermission.Demand() +46

İşin içinden çıkabilmek için denediklerim

  • Trust leveli medium yapınca ne localde ne hostingde çalısıyor ( zaten hostingde hiç çalıştıramadım) Full yapınca localde çalısıyor yine hosting tarafında birşey yok..

  • Bazı dll dosyalarını copy local true yaptım sonuç aynı

  • Hosting sağlayıcımla konuştum trust leveli medium yap, full istiyorsan vds al dedi aylık 40 dolar felan, çok büyük bir projem varya vds alayım.

  • Son olarak code first ile oluşturduğum veritabanı ile bir projem vardı onu azure'da hiç birşey ayarlamadan sorunsuzca publish ettim, fakat bomboş bir projeyi satın aldığım farklı bir hostinge yüklerken böyle sıkıntılarla karşılaşıyorum.


Birçok yere yazdım sonuç alamadım. Tecrübeli arkadaşlar yardım ederse sevinirim. Filezilladaki görünüme dikkatinizi çekmek isterim şüphelendiğim tek yer orası. Sadece Http ve Logs klasörleri var. Acaba farklı bir klasör mü açıp yüklemem lazım bilemedim yada herhangi bir eklenti yazılımmı yüklemem lazım hostinge ?
şimdiden teşekkür ederim.