Ich habe gerade Nhibernate Profiler heruntergeladen und ich kann nicht herausfinden, warum es nicht funktioniert. Soweit ich weiß, sollte es ausreichen, Verbindungszeichenfolge in Optionen - Standardverbindung bearbeiten zu setzen.NHibernate Profiler holt meine Sitzungen nicht
Ich bin mit SQL Server und ich habe meine Verbindungszeichenfolge wie diese
kopiertData Source=.\SQLEXPRESS;Initial Catalog=DB_xxx_MyDb;Integrated Security=True;
Im Debug-Modus meiner app ich nichts innen nhibernate Profiler haben, wenn meine Anwendung ausgeführt wird.
Update: Added Verweis auf mein MVC3 Projekt
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
}
ich folgende Schritte gemacht
- Start NhProf.exe
- starten debuggen mvc app, diese app-anfragen möchte ich profilieren
Nichts erscheint in Nhibernate Profiler. Lizenz funktioniert für 32 Tage. Warum? Was soll ich sonst machen?
Zweite Aktualisierung: Ich versuchte mit Bezug HibernatingRhinos.Profiler.Appender.dll
immer noch nicht funktioniert. Versucht mit Optionen-Einstellungen-Listen-Port, um meine ASP-Dev einzustellen. Server-Port, jetzt ist 5442. Immer noch nichts. Ich bin ein bisschen verwirrt.
nur zu erwähnen, dass meine App funktioniert, meine Verbindungszeichenfolge funktioniert, kann ich Daten von meinem db holen, ...
innerhalb NHProfiler Ordner Eigene log.txt Datei
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()
diesen Inhalt haben
natürlich nicht :) Im mit mvc3 sollte es in Application_Start() in global.asax sein. Ich gebe es versuchen – BobRock
kein Glück. Ich bin hinzugefügt HibernatingRhinos.Profiler.Appender.v4.0.dll und innerhalb Application_Start() #if DEBUG HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(); #endif Muss ich ändern web.config – BobRock
keine Bearbeitung der web.config. Vielleicht eine blöde Frage, aber testet ihr im Release-Modus? denn was ich geschrieben habe, funktioniert nur im Debug-Modus aufgrund der "if DEBUG" -Bedingung. – Iridio