Problem
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'
Çözüm
Eğer ASP.Net 2.0 Membership kullanıyorsanız ve kullanıcı girişi sayfanız Login.aspx ise LoginHere.aspx ya da Giris.aspx gibi bir şeyle değiştirdiğiniz zaman çözülüyor. Daha farklı yolları da var ama bu biraz daha kolay bi çözüm.
Problem
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type '_Default' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\test\97128868\28067d1a\assembly\dl3\2e7cec50\de6107a2_8cccc601\App_Web_lnapizun.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\test\97128868\28067d1a\assembly\dl3\1e34a249\1ef676a2_8cccc601\App_Web_4s-gna1l.DLL'
Çözüm
Eğer Default.aspx sayfasını Rename yaparak adını değiştirmişseniz ve daha sonra projeye bir Default.aspx sayfası eklemişseniz bu tür bir hata olabilir. Kolay çözüm Default.aspx'ten rename yaparak elde ettiğiniz sayfayı silip yeniden Add Item yaparak yeni sayfa ekleyip ilgili sayfayı bu şekilde oluşturmak olabilir.
Problem
Login failed for user ''. The user is not associated with a trusted SQL Server connection.
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.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL Server connection.
Çözüm
web.config dosyasının <connectionStrings> bölümünde bağlantı cümlesini programı yazdığınız makinada Visual Studio 2005, integrated security=SSPI; içerecek şekilde oluşturmuştur. bu ibareyi kaldırıp sunucuda veritabanına bağlanmak için kullanacağınız kullanıcı adı ve şifreyi yazdığınız zaman problem çözülecektir.
Artı aşağıdakine benzer bir bağlantı cümleniz oalcaktır:
<add name="LocalSqlServer" connectionString="server=sunucu_ismi_yada_ip_adresi;
database=veritabani_isim;
Uid=kullanici_adi;
Password=sifre;"
providerName="System.Data.SqlClient" />