Doesn't connect, logs are empty

59 views
Skip to first unread message

Thomas Blatt

unread,
Aug 28, 2019, 8:42:37 AM8/28/19
to nhprof
Hi,

I don't get the "connected" in the top status bar and there are no logs

I have the following setup:
- .Net 4.7 application
- MSSQL Server (own VM)
- IIS (own VM)
- NHibernate Profiler Build: 5036
- Port is: 22897

I've added the DLL and the following line to my code:
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();

When I start my application, I can see the name in the status bar. But there are no logs. It's all complete empty.

Furthermore I've added the connection string from my 'nhibernate.cfg.xml', which is generally working.

There is no firewall between the server (except Windows Firewall), but I tested it with deactivated firewall.

What else can I do?

Regards
Thomas

Oren Eini (Ayende Rahien)

unread,
Aug 28, 2019, 8:43:59 AM8/28/19
to nhprof
You need to run the profiler on the same machine as the application (IIS, I assume).
Is that the case?

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nhprof/7a3bad95-9645-46f8-8fe3-4e8363ad4ef9%40googlegroups.com.


--
Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net

Thomas Blatt

unread,
Aug 28, 2019, 9:14:35 AM8/28/19
to nhprof
I copied now my application to the IIS and started the Profiler also there:
I can see the name of my application (as on my local machine) but I don't see the "connected". Does that mean, that I'm not connected to my database?


Am Mittwoch, 28. August 2019 14:43:59 UTC+2 schrieb Ayende Rahien:
You need to run the profiler on the same machine as the application (IIS, I assume).
Is that the case?

On Wed, Aug 28, 2019 at 3:42 PM Thomas Blatt <tbla...@gmail.com> wrote:
Hi,

I don't get the "connected" in the top status bar and there are no logs

I have the following setup:
- .Net 4.7 application
- MSSQL Server (own VM)
- IIS (own VM)
- NHibernate Profiler Build: 5036
- Port is: 22897

I've added the DLL and the following line to my code:
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();

When I start my application, I can see the name in the status bar. But there are no logs. It's all complete empty.

Furthermore I've added the connection string from my 'nhibernate.cfg.xml', which is generally working.

There is no firewall between the server (except Windows Firewall), but I tested it with deactivated firewall.

What else can I do?

Regards
Thomas

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhp...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Aug 28, 2019, 9:24:22 AM8/28/19
to nhprof
If you want to profiler from another machine, you need to use the production profiling options:

To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nhprof/722cda6d-b7e4-454b-a5af-0986209eb796%40googlegroups.com.

Thomas Blatt

unread,
Sep 4, 2019, 5:14:12 AM9/4/19
to nhprof
I've added the following two lines to my code:
            HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.InitializeForProduction(9090, "Password");
            HibernatingRhinos.Profiler.Appender.ProfilerInfrastructure.ThrowOnConnectionErrors = true;

At NHProfiler at IIS I connected to my local machine with status 'OK'. In the upper status bar I see 'Prod: MyApplicationName'. I still have the connectionstring to my SQLServer.

But I don't see any logs.

Oren Eini (Ayende Rahien)

unread,
Sep 4, 2019, 8:13:08 AM9/4/19
to nhprof
Okay, once you have connected, try visiting your site, do you see anything happening on the profiler as a result of actions on the website?
The connection string isn't relevant at this point

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.

Thomas Blatt

unread,
Sep 4, 2019, 8:53:47 AM9/4/19
to nhprof
It's not a website, but a .NET application. When I click in my app, the "Microsoft SQL Server Profiler" shows me the queries, but not the NHProf.
Is the listening port at "Settings" -> "General" -> "Listen Port" relevant for that? Actually it's still the standard port 22897.

Oren Eini (Ayende Rahien)

unread,
Sep 4, 2019, 10:03:09 AM9/4/19
to nhprof
Can you show a screen shot of the profiler when your system is running?

On Wed, Sep 4, 2019 at 3:53 PM Thomas Blatt <tbla...@gmail.com> wrote:
It's not a website, but a .NET application. When I click in my app, the "Microsoft SQL Server Profiler" shows me the queries, but not the NHProf.
Is the listening port at "Settings" -> "General" -> "Listen Port" relevant for that? Actually it's still the standard port 22897.

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.

Thomas Blatt

unread,
Sep 5, 2019, 2:34:58 AM9/5/19
to nhprof
Screenshot attached
NHProf.jpg

Oren Eini (Ayende Rahien)

unread,
Sep 6, 2019, 2:18:25 AM9/6/19
to nhprof
Okay, so that is connecting successfully, but the bottom left on the screen should be full of details about the application.
What NHibernate version are you using? And what is the profiler appender version?

On Thu, Sep 5, 2019 at 9:35 AM Thomas Blatt <tbla...@gmail.com> wrote:
Screenshot attached

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.

Thomas Blatt

unread,
Sep 6, 2019, 4:37:55 AM9/6/19
to nhprof
NHibernate Version: 5.2.5.0
Profiler Appender: 5.0.5036.0

I've copied the application to another VM, which is in the same subnet as the IIS (where NHProf is running). But the result is the same: I see "Prod: MyApplication" but that's it.

Oren Eini (Ayende Rahien)

unread,
Sep 6, 2019, 9:55:43 AM9/6/19
to nhprof
When you run the profiler and app in the same VM (without the production profiling) does it work?

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.

Thomas Blatt

unread,
Sep 11, 2019, 9:51:46 AM9/11/19
to nhprof
Because of a special IIS configuration setting I can't execute the application directly on the IIS. Sorry.


Oren Eini (Ayende Rahien)

unread,
Sep 12, 2019, 4:41:46 AM9/12/19
to nhprof
When you run it inside your _own_ machine, does it work?

On Wed, Sep 11, 2019 at 4:51 PM Thomas Blatt <tbla...@gmail.com> wrote:
Because of a special IIS configuration setting I can't execute the application directly on the IIS. Sorry.


--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages