Forum Discussion
How can I remove auth page when open Report Server page?
- 9 years ago
Solution for the exception that is taken for power Bi reports while using custom security extension :
*****************************************2017-08-03 11:35:16.8710|ERROR|90|Failure in conceptualschema| RequestID = 5a55046e-0305-361b-e214-71fd8b0d79ff ClientSessionID = 3aee7b14-c24b-d6ac-237d-38809550b1bb System.NotSupportedException: PortalIdentity is not supported.
at Microsoft.PowerBI.ReportServer.ExploreHost.UserIdentityConnectionImpersonatorFactory.CreateImpersonator(IIdentity identity)
at Microsoft.PowerBI.ReportServer.ExploreHost.RSPowerViewHandler.GetModelInfo(String id)
***********************
The data source attempting to use integrated security which is not supported with custom Auth. If you edit the data source for the report and use stored credentials it should work.
Hi Anonymous ,At last I copy Microsoft.Samples.ReportingServices.CustomSecurity.dll in both PowerBI and ReportServer\bin folders, I can successfully save a report to Report Server from desktop.
But when I open the report on the server in IE, it got another error.Here is the logs:
---------------------------------------------------------------------
2017-07-25 23:13:53.1729|INFO|15|Received request administrator RequestID = 7b474824-2dc3-d120-acfe-cdeb0f0ac9eb ClientSessionID = faed8e08-4209-3766-f043-507137a53316 2017-07-25 23:13:53.2989|ERROR|14|
Failure in conceptualschema| RequestID = 7b474824-2dc3-d120-acfe-cdeb0f0ac9eb ClientSessionID = faed8e08-4209-3766-f043-507137a53316 System.NotSupportedException: PortalIdentity is not supported.
在 Microsoft.PowerBI.ReportServer.ExploreHost.UserIdentityConnectionImpersonatorFactory.CreateImpersonator(IIdentity identity) 在 Microsoft.PowerBI.ReportServer.ExploreHost.RSPowerViewHandler.GetModelInfo(String id)
------------------------------------------------------------
So what is "System.NotSupportedException: PortalIdentity is not supported" mean? How could I do to solve it?
public void GetUserInfo(out IIdentity userIdentity, out IntPtr userId)
{
userIdentity = new GenericIdentity("administrator");
// initialize a pointer to the current user id to zero
userId = IntPtr.Zero;
}
It seems GenericIdentity is not a WindowIdentity, so a NotSupportedException throwed.
I already defined impersonate = false in web.config.
But what kind of icIdentity should I return?return WindowIdentity("administrator") doesn't work.
Solution for the exception that is taken for power Bi reports while using custom security extension :
*****************************************
2017-08-03 11:35:16.8710|ERROR|90|Failure in conceptualschema| RequestID = 5a55046e-0305-361b-e214-71fd8b0d79ff ClientSessionID = 3aee7b14-c24b-d6ac-237d-38809550b1bb System.NotSupportedException: PortalIdentity is not supported.
at Microsoft.PowerBI.ReportServer.ExploreHost.UserIdentityConnectionImpersonatorFactory.CreateImpersonator(IIdentity identity)
at Microsoft.PowerBI.ReportServer.ExploreHost.RSPowerViewHandler.GetModelInfo(String id)
***********************
The data source attempting to use integrated security which is not supported with custom Auth. If you edit the data source for the report and use stored credentials it should work.
- wildcatstar9 years ago
Helper I
Hi @asogukpinar,
You're right, it works. Thank you.