I am using decompiled version of accelerator.dll in my project to debug an issue. I am getting the below error in attached SS. Can you please tell me what I am doing wrong. The code is giving the response:
{StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StringContent, Headers:{ Content-Type: application/json; charset=utf-8}}
for request:
{Method: POST, RequestUri: 'http://localhost:59225/api/accelerator/Handshaking', Version: 1.1, Content: System.Web.Http.WebHost.HttpControllerHandler+LazyStreamContent, Headers:{ Cache-Control: no-cache Connection: Keep-Alive Accept: application/json Accept-Encoding: gzip Accept-Encoding: deflate Accept-Language: en-US Accept-Language: en; q=0.5 Host: localhost:59225 Referer: http://localhost:59225/ User-Agent: Mozilla/5.0 User-Agent: (Windows NT 10.0; Win64; x64) User-Agent: AppleWebKit/537.36 User-Agent: (KHTML, like Gecko) User-Agent: Chrome/70.0.3538.102 User-Agent: Safari/537.36 User-Agent: Edge/18.18362 Origin: http://localhost:59225 X-Requested-With: XMLHttpRequest Content-Length: 99 Content-Type: application/json; charset=UTF-8}}
Can you please tell me what is going wrong over here?
Thanks,
Srinivas
Hello Srinivas,
Thank you for the question.
First of all, please note that we do not recommend decompiling Accelerator DLL. Also, we can not provide support for the decompiled/changed version.
Regarding the issue, we have noticed the old version on the screenshot. Could you please try the latest MVC sample from https://github.com/flexmonster/pivot-accelerator-dll and let us know if the issue remains?
Regards,
Ian
Hi Ian,
Thanks for your reply. I will check the new mvc sample.
I don't have any other option but to debug the dll to check what is exactly being passed in connection string. If I get the connection string then I can check with my sample asp code that uses adomdclient object and pass the same connection string to it to check the output. Is it atleast possible for you to give me the connection string that your accelerator is passing to the adomd client (with effectiveusername embedded in it)
Thanks,
Srinivas
Hi Ian,
I have again decompiled the new dll. I don't know if it is a bug in the code or what. When I set the effectiveUserName: 'Test\Test' in the report, the value I get in the dll is TestTest. If I put the effectiveUserName=Test\\Test, the cube is not getting connected and I get some strange error. Please find the Screenshots. Is this why the impersonation is not taking place correctly?
Can you please look into it?
Thanks,
Srinivas
Hello Srinivas,
Please find the continuation of the above topic in the following thread: https://www.flexmonster.com/question/how-to-get-the-accelerator-connect-to-the-ssas-cube-using-impersonate-user/
Regards,
Ian