Sadece nhibernate profiler indirdim ve neden çalışmıyor olduğunu anlayamıyorum. Bildiğim kadarıyla, Bağlantı dizesini Seçenekler - Varsayılan bağlantıyı düzenle seçeneğinde ayarlamak için yeterli olması gerekir.NHibernate profiler oturumlarımı almıyor
ben sql server kullanıyorum ve Uygulamamı yürütürken ben nhibernate profilci içeride bir şey yok benim app hata ayıklama modunda bu
Data Source=.\SQLEXPRESS;Initial Catalog=DB_xxx_MyDb;Integrated Security=True;
gibi benim bağlantı dizesi kopyaladık.
Güncelleme: adımlara
- başlangıç NhProf.exe aşağıdaki yaptığım benim MVC3 projesi
HibernatingRhinos.Profiler.Appender.v4.0.dll
Global.asax
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
#if DEBUG
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();
#endif
}
-e doğru Eklendi referansmvc uygulamasını başlatın, bu uygulama sorgularını Ben sorgulamak istiyorum
Nhibernate profiler'da hiçbir şey görünmüyor. Lisans 32 gün çalışıyor. Neden? Başka ne yapmalıyım?
İkinci güncelleme: Hala referans HibernatingRhinos.Profiler.Appender.dll
hiçbir çalışma ile çalıştı. Asp devimi ayarlamak için options-settings-listen portu ile denendi. Sunucu portu, şu anda 5442. Hala hiçbir şey. Kafam karıştı.
NHProfiler klasörü içindeki My log.txt dosyası bu içeriğe sahip ... benim uygulamanın çalışma, benim bağlantı dizesi çalışır, benim db veri getirmesi mümkün olduğumu belirtmeyi
2012-03-28 20:31:01,374 [1] INFO Rhino.Licensing.LicenseValidator [(null)] - License expiration date is 04/29/2012 00:00:00
2012-03-28 20:31:01,662 [1] DEBUG Rhino.Licensing.LicenseValidator [(null)] - License accepted for NHibernate Profiler
2012-03-28 20:31:02,461 [6] INFO HibernatingRhinos.Profiler.Client.App [(null)] - Checking for updates...
2012-03-28 20:31:25,072 [4] ERROR HibernatingRhinos.Profiler.Client.App [(null)] - Error while checking for updates: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 216.121.112.229:80
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at NAppUpdate.Framework.Sources.SimpleWebSource.GetUpdatesFeed()
at NAppUpdate.Framework.UpdateManager.CheckForUpdates(IUpdateSource source, Action`1 callback)
at NAppUpdate.Framework.UpdateManager.<>c__DisplayClass2.<CheckForUpdateAsync>b__1()
ofcourse değil :) mvc3 kullanıyorum global.asax içinde Application_Start() içinde olmalıdır. Ben – BobRock
hayır şans vereceğim. HibernatingRhinos.Profiler.Appender.v4.0.dll ve Application_Start() #if DEBUG HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(); #endif Web.config – BobRock
no'lu düzenlemeyi web.config dosyasına düzenlememem gerekir. Belki aptalca bir soru, ama serbest bırakma modunda mı test ediyorsun? çünkü yazdığımdan sadece "DEBUG" durumundan dolayı hata ayıklama modunda çalışır. – Iridio