Sayfalar

Errors etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
Errors etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

21 Ekim 2019 Pazartesi

MVC LOADING TOO SLOW ISSUE


İlgili Application > Advanced Settings >
Satart mode = always Running
Proccesor Afility Enabled = True

8 Ekim 2019 Salı

Mvc Error: The entity type ApplicationUser is not part of the model for the current context.


Db First ile Asp Identity impementasyonu yapıldıysa Web Config Dosyasında iki adet connection string dosyası olmalıdır. İlki EF Ado.Net ile Sql'den Tabloların çekilmesine yarayan string ikincisi ise Microsoft.AspNet.Identity'nin haberleşecği connection string'dir.

Web Congif Dosyasının görüntüsü şöyle olmalıdır.



<connectionStrings>
  <!-- For Identtiy   -->
  <add name="ExpenditureIdentity" 
       connectionString="data source=.\sqlExpress;initial catalog=Expenditure;
       user id=sa;password=*****; Connect Timeout=60;" 
       providerName="System.Data.SqlClient" />
 
 
  <!-- For DB First Entity Framework   -->  
  <add name="ExpenditureEntities" 
       connectionString="metadata=res://*/Models.EF.Expenditures.csdl|res://*/Models.EF.Expenditures.ssdl|res://*/Models.EF.Expenditures.msl;
       provider=System.Data.SqlClient;
       provider connection string=&quot;
       data source=.\sqlExpress;
       initial catalog=Expenditure;
       user id=sa;password=*****;
       MultipleActiveResultSets=True;
       App=EntityFramework&quot;"
       providerName="System.Data.EntityClient" />
  
</connectionStrings>


16 Eylül 2019 Pazartesi

IIS LoginFailed


On Windows10
Error: The login failed.\r\nLogin failed for user 'IIS APPPOOL\\xxx'."

on Server 2012R2
Error: System.Data.Entity.Core.EntityClient.EntityConnection.Open(); Entity Framework Exception “The underlying provider failed on Open


For a local SQL Server:
  • Open SQL Server Management Studio (SSMS) and connect to the SQL Server.
  • Open the Security folder at the server level and not the security folder for the database.
  • Right click on the logins and select New Login.
  • For the login, type IIS APPPOOL\AppPoolName and DO NOT CLICK SEARCH and select OK (If a search is executed, it will resolve to an account with ServerName\AppPool Name and SQL will be unable to resolve the account’s SID since it is virtual)
  • User MappingPage>Select Database > Set User IIS APPPOOL\AppPoolName; setDefault Schema> dbOwner
  • Select the defaults for the account and select OK to close dialog
The same can be accomplished using T-SQL:
CREATE LOGIN [IIS APPPOOL\AuthTest] FROM WINDOWS;
CREATE USER AuthTest FOR LOGIN [IIS APPPOOL\AuthTest];
For a remote SQL Server:
  • Open SQL Server Management Studio (SSMS) and connect to the SQL Server.
  • Open the Security folder at the server level and not the security folder for the database.
  • Right click on the logins and select New Login.
  • For the login, type Domain\ServerName$ and DO NOT CLICK SEARCH
  • Select OK
  • Select the defaults for the account and select OK to close dialog
















IIS Hatası 0x80070021







HTTP Hatası 500.19 - Internal Server Error

Sayfayla ilgili yapılandırma verileri geçersiz olduğundan istenen sayfaya erişilemiyor.

Ayrıntılı Hata Bilgileri:

Modül   IIS Web Core
Bildirim   BeginRequest
İşleyici   Henüz belirlenmedi
Hata Kodu   0x80070021
Yapılandırma Hatası   Bu yapılandırma bölümü bu yolda kullanılamaz. Bu durum, bölüm üst düzeyde kilitlendiğinde oluşur. Kilitleme varsayılandır (overrideModeDefault="Deny") ya da overrideMode="Deny" veya eski allowOverride="false" olan bir konum etiketiyle özel olarak ayarlanmıştır.
Yapılandırma Dosyası   \\?\C:\SunWepApi\web.config



Programs and Features > Turn Windows features on or off > Information Information Services > World Wide Web Services > Application Development Features > Select ASP.NET 4.5

30 Ağustos 2019 Cuma

System.InvalidOperationException



System.InvalidOperationException: 'No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file.

Solution:
You've added EF to a class library project. You also need to add it to the project that references it (your console app, website or whatever).

MVC LOADING TOO SLOW ISSUE