我刚刚下载了nhibernate profiler,我无法理解为什么它不起作用.据我所知,在选项 - 编辑默认连接中设置连接字符串应该足够了.
我正在使用sql server,我已经复制了我的连接字符串
Data Source=.\SQLEXPRESS;Initial Catalog=DB_xxx_MyDb;Integrated Security=True;
Run Code Online (Sandbox Code Playgroud)
在我的应用程序的调试模式下,我在执行我的应用程序时没有任何内部nhibernate profiler.
更新: 添加了对我的mvc3项目的引用
HibernatingRhinos.Profiler.Appender.v4.0.dll
Run Code Online (Sandbox Code Playgroud)
Global.asax中
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
#if DEBUG
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();
#endif
}
Run Code Online (Sandbox Code Playgroud)
我做了以下步骤
Nhibernate Profiler中没有任何内容.许可证工作32天.为什么?我还该怎么办?
第二次更新:
我尝试参考HibernatingRhinos.Profiler.Appender.dll仍然没有工作.尝试使用options-settings-listen port来设置我的asp开发.服务器端口,现在是5442.仍然没有.我有点困惑.
只是提到我的应用程序工作,我的连接字符串工作,我能够从我的数据库中获取数据,...
我在NHProfiler文件夹中的log.txt文件有这个内容
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()
Run Code Online (Sandbox Code Playgroud)
您是否已在应用程序/网站中初始化了NHibernateProfiler?
Applicattion_Start()或Main()中有类似的东西
#if DEBUG
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();
#endif
Run Code Online (Sandbox Code Playgroud)
还记得引用dll
HibernatingRhinos.Profiler.Appender.v4.0.dll
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4025 次 |
| 最近记录: |