|
Queries |
Response |
|
I have an embedded dashboard which well on the server but it doesn't run on a client machine. below is the code I used
attached is the error I get whenever I try accessing it on a client machine
public ActionResult FacilityDashboard() {
int? facility_id = -1;
if (new UserManagement().getCurrentuserFacility() != null)
facility_id = new UserManagement().getCurrentuserFacility();
var facility = context.A_Facilities.FirstOrDefault(a => a.FacilityCode == facility_id).Facility;
ViewBag.DashboardPath = AppDomain.CurrentDomain.BaseDirectory.Replace("\\", "\\\\") + "Dashboards\\\\dashboard.sydx";
DashboardWindowsServiceInfo dashboardViewer = new DashboardWindowsServiceInfo();
ViewBag.Errormessage = dashboardViewer.Errormessage;
ViewBag.ServiceUrl = dashboardViewer.ServiceUrl;
ViewBag.filterParams = "Facility =" + GetNumbers(facility);//"Facility=fcName";
return View();
} |
We have noticed that you are using windows service to embed the dashboard in your application. Dashboard Service as Windows service is not recommended for the production environment. Windows Service can be accessed only in the machine where the Dashboard Platform SDK is installed. In the other machines the dashboard will throw the DV007 error.
To resolve the issue you are facing host the Dashboard Service in the IIS by following the steps mentioned in the below UG
Once hosted the Dashboard Service, add the Dashboard Service URL in your code snippet
ViewBag.ServiceUrl = “http://{IP Address:Port Number}/DashboardService.svc”;
In the Service URL IP Address and Port Number can also be replaced by your domain name. |
|
ViewBag.ServiceUrl = “http://localhost:2000/DashboardService.svc” |
Hi Ali Raza,
Thank you for your update.
It appears that another
user is attempting to assist with the issue. We appreciate your efforts in
explaining the purpose of the split function—how it is used to retrieve the ID
of blocked events and process specific entries from your event collection.
We're also glad to hear that the custom dialog is rendering correctly on your
end in the previous sample.
Regards,
Saritha S.