Can't seem to run a Notes web app locally

I'll admit that I feel a bit foolish asking this question since I've been working in Notes development and admin for over 25 years and really should know what the problem is here. But here goes:

I have a small Notes web app that I wanted to run locally. I have a form with an input field, a drop-down selection field, and a couple of checkboxes and a button that fires an agent. I open the form in Designer, then select 'preview in web browser', it open in my browser. After filling out the form, I hit the button but nothing happens. I checked the agent log and, of course, it says 'this agent has never run before'. I could swear I did this several months ago and it worked locally. But I put it aside (it's not anything critical) and just in the last few days thought I'd get back to it. It does work fine when run from the server. I created a debug agent of the web agent and it runs fine. What am I missing here? What came to mind just last night was that maybe it's because there's no Agent Manager running?

Any thoughts would be appreciated.
Thanks!
Clem

I think agent manager may not have any role to play. If you could att the script of the button as well as the agent the click event is supposed to run, it may help having a fresh pair of eyes on the issue.

Shouldnt you be trying the preview in browser from notes client rather than the designer?

Hi Rajneesh

Thanks for the reply. Just wanted to report that it just magically started working!!

The first thing I did was copy it to the server to make sure it would work there. It did. I then checked it on my local machine again and it worked as it should! I didn't change a single thing so I have no idea why it just started working.

And the reason to launch the Form from Designer is because it has input fields. You can't launch it from the Notes client - you can display Documents on the web by doing it from the client but not if there are input fields.

Thanks again.
Clem

Interestingly, after I made a change to the agent, it now stopped working! The copy on the server continues to work fine. I rebooted but that didn't help. It responses with:

Hmmm… can't reach this page

localhost refused to connect.

Not sure how to fix this. Thoughts?

I noticed a strange thing yesterday abt this issue. I was trying to open a notes db on local in browser preview. It just wont connect. I had the domino server running on the same machine.
I stopped the http task and immediately it worked.
However, i had a prompt from windows to allow it through firewall.
Interestingly, later when i tried to restart the http task, the task wont start as the port was already i use. I restarted the domino server with same result.
I shut down the notes client and every thing was back to normal. Wonder, if this has any hints for your scenario?

Hi

Clem padin,

Hope you are doing good!

Yes. You will face this kind of problem while working with Notes local database. You have created daabase in the Data- directory of the client (Local). The server does not know of this database as it has its own Data- directory. So that is the reason this kind of message you will displayed to you on the browser.

Create the database in the Server's Data- Directory then it will work without any problem.

We hope the information provided is helpful in resolving your issue.

Thank you,

Regards,

Sridhar

Hi Sridhar,

Thanks for the reply. yes, the same database on the Server works perfectly. But I don't want to run it on the server. I want run it locally as a web application. I know it can work as it has worked some times but not all the time. I'm trying to understand why. I want to work on the app locally and when I think I'm ready, I'd will upload it to the server. For now, tho, I just want to run it locally.

Thanks
Clem