Hi,
I am having AF event log warnings and errors when I try to display PI notifications in PI ProcessBook and PI System Explorer.
Here is a brief description of my environment:
- PI Server 3.4.380.36,
- PI AF 2.1.1.3624,
- PI Notifications Server 1.1.1200.8,
- PI ProcessBook 3.2.0.0
- AF Modeler Add-In for PI ProcessBook 1.2.0.1359,
- AF Clients 2.1.1.3624,
- PI SDK 1.3.8.387,
- SQL Server Express 2005.
When I start my server, the following error logs in the AF eventlog:
Quote:Description first error: Function Void ReadServerConfigFromServer() at line: 687 in file c:\Dev\AF\AF 2.1 Release\Sources\Server\FoundationCommon\Service Implementation\Shared\FoundationService.cs
ReadServiceConfigFromServer() - Cannot open database "PIFD" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
Quote:Description second error: Function Void CheckServerRoles() at line: 784 in file c:\Dev\AF\AF 2.1 Release\Sources\Server\FoundationCommon\Service Implementation\Shared\FoundationService.cs
CheckServerRoles() - Cannot open database "PIFD" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
These access errors are strange because I could build element templates and elements in the PI AF database.
After adding the read and write access to the 'NT AUTHORITY\NETWORK SERVICE' user for the PIFD database, these two errors disappeared.
The main problem is that when I start PI ProcessBook, then select Notifications from the View menu, the Database list field in the search area is empty, and no notification is displayed. In the same time a warning is logged in the eventlog:
Quote:Description warning: Function OSIsoft.AF.Service.dcContact GetCurrentUserContact(OSIsoft.AF.Service.dcSystemHeader) at line: 556 in file c:\Dev\AF\AF 2.1 Release\Sources\Server\FoundationCommon\Service Implementation\Shared\ADContacts.cs
System.Runtime.InteropServices.COMException (0x8007054B): The specified domain either does not exist or could not be contacted.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.RefreshCache()
at System.DirectoryServices.DirectoryEntry.FillCache(String propertyName)
at System.DirectoryServices.DirectoryEntry.get_NativeGuid()
at System.DirectoryServices.DirectoryEntry.get_Guid()
at OSIsoft.AF.Service.ADContacts.GetCurrentUserContact(dcSystemHeader sys) in c:\Dev\AF\AF 2.1 Release\Sources\Server\FoundationCommon\Service Implementation\Shared\ADContacts.cs:line 485
The same warning appears when I open the PI System Explorer and click on MyPI tab, in addition to the fact that an "Object reference not set to an instance of an object" error messagebox is displayed.
I created active notifications that are having history. But I can't succeed to display tthem in PI ProcessBook and PI System Explorer.
Any help?