Crystal Report "Logon failed..." Error when trying to navigation to next page - crystal-reports

I have a web-based Crystal Report that loads successfully, but when i try to navigate to the next page using the toolbar at the top of my CrystalReportViewer then i get the following error:
"Logon failed. Details: ADO Error Code: 0x Source: Microsoft SQL Native Client Description: Login failed for user 'sa'. SQL State: 28000 Native Error: Error in File C:\DOCUME~1\SOFTLITE\ASPNET\LOCALS~1\Temp\ClientReport {02A69EDD-9B03-4490-B3A2-5E5E5F5592D9}.rpt: Unable to connect: incorrect log on parameters."
Any ideas on how to overcome this problem are most welome.
Thanks IA

I think i have resolved this issue (in my scenario at least).
Originally my code looked like:
if (!Page.IsPostBack)
{
LoadReport();
}
so i dropped the "if (!Page.IsPostBack)" part meaning that it loads the report data on every postback (i.e. click on the CrystalReportViewer toolbar) an it's working.

Related

Tableau Saving Custom View : uncaught security error: Blocked a frame with origin

I have created a custom page where it will load my tableau report using tableau JS API.
Assuming my custom webpage is : www.test1.com
TableauServer where my report resides is : www.devtableau.com
On my custom webpage. all functionality is working as expected. the only error im receiving is when i am trying to save a custom view . When i tried creating a custom view on my custom webpage . Error is prompting :
Unexpected Error
An unexpected error occurred. If you continue to receive this error please contact your Tableau Server Administrator.
Session ID: BAF6E841BA4B405BBA08EE849582CBE5-2:0
Uncaught SecurityError: Blocked a frame with origin "https://www.devtableau.com" from accessing a cross-origin frame.
based on the document found -> https://kb.tableau.com/articles/Issue/error-uncaught-securityerror-blocked-a-frame-with-origin-when-saving-a-custom-view-in-an-embedded-view-occurred-on-tableau-server
It is saying that this is a known error on tableau on version 2019,
im on the latest tableau version .
Is there a workaround on this ? Or a configuration that needed to be set on tableauserver such as allowing www.test1.com ?

Fatal Error when adding Custom Tab on Facebook Page

With Facebook SDK V5, I'm trying to develop a php script who list all my pages where I'm admin. Then the goal is to add a Custom Tab on the selected Facebook page.
The first part works well but when I'm trying to add the Custom Page, I have a Fatal Error.
I want to clarify that I already develop this king of script with SDK V4 (who works well). So my 2 facebook apps are well configured (manage_pages is ok for install and Secure URL of the Page tab is complete).
This is the lines of code who generate the Fatal Error:
$addTab = $fb->post('/' . $page['id'] . '/tabs', array('app_id' => 'myappid'), $page['access_token']);
$addTab = $addTab->getGraphNode()->asArray();
print_r($addTab);
The contents of $page['id'] and $page['access_token'] are OK. When I test the Acccess Token, it's also ok.
When I execute the script and try to add the custom tab, I have this message:
Fatal error: Uncaught exception 'Facebook\Exceptions\FacebookAuthenticationException' with message '(#33) This object does not exist or does not support this action' in /home/web/...
I don't understand the problem, so any help is welcome and will be of great help to me. Thank you!

Facebook Custom Tabs

I understand how to create the app for the custom tab. However when I try to layout the next step it comes back with an error message. Can someone help me to properly layout the "With URL Redirects".
I know to put the Id number where is says YOUR APP ID and I have also placed the website in the "YOUR URL" position but it doesn't work. I have watched several videos and they all seem to be prior to the latest FB update.
The problem I am having seems to be coming from the setup for this code below that leads you to the Add Page Tab Dialog prompt. facebook.com/dialog/pagetab? app_id=YOUR_APP_ID &redirect_uri=YOUR_URL When I insert the "Your App ID" and Your URL" and hit enter I am receiving a Facebook Error message that says:
This dialog has been passed a bad parameter. API Error Code: 100 API
Error Description: Invalid parameter Error Message: Requires valid
redirect URI.

Request Dialog CRASHED?

Recently, Facebook has updated the component "request dialog" assigning responsibility to the exclusion of requests to the developers (http://developers.facebook.com/docs/reference/dialogs/requests#deleting). He also made other adjustments to the format of the request id. Thus added configuration option "request 2.0 efficient" on menu of the application developer.
The problem started after this change , the component "request dialog Multi - Friend- Selector" is in serious trouble. The component is crashed while trying to load friends. Sometimes friends loads, but the component does not resize height.
See the image of the errors:
Crashed before load friends:
http://postimage.org/image/glk2mf3bb/
Resize fail
http://postimage.org/image/iobduhn41/
In chrome browser component generates the following error:
s-static.ak.facebook.com/rsrc.php/v1/yS/r/syXGEAW5WYH.js:36 Uncaught TypeError: Cannot read property 'origin' of undefined
In firefox generates following error:
Erro: Permission denied to access property 'DocRPC'Arquivo-fonte: https://s-static.ak.facebook.com/rsrc.php/v1/yS/r/syXGEAW5WYH.js Linha: 36
Can you reproduce the error with the code itself Documentation
http://developers.facebook.com/docs/reference/dialogs/requests
Help please.
Seeing same errors here, but I can add some info:
It does seem to work if you use the basic example in https://developers.facebook.com/docs/reference/dialogs/requests, which opens up the dialog in a new browser window.
In Chrome, I found an additional error message to the one you posted:
"Unsafe JavaScript attempt to access frame with URL [...] from frame with URL [...]facebook.com/dialog/apprequests. Domains, protocols and ports must match."
From all that I guess the error may be related to the dialog display mode (read https://developers.facebook.com/docs/reference/dialogs). Within my app, I am getting this error exactly as you do, unless I set display to something like 'popup', in which case everything works (but a new borwser window is opened). The docs do state that "Because of the risk of clickjacking, [iframe] is only allowed for some certain dialogs, and requires you to pass a valid access_token." Well, passing access tokens did no good for me.
Little question: are you using some toolkit like GWT?

Infopath form publishing issue

I designed the infopath form. I am writing required programming code on button clicked event. But while publishing the infopath form i am getting error; Please observe: It should allow me to select "Form Library" option so that i can do. From Microsoft it is suggested from here that i need to remove code. but everything is required in my form. I need to deploy form with code. without code it is without any value.
I have associate tryst certificate as well as my form is with full trust.
My infopath services are configured properly.
I am running sharepoint2010 in 2-tier farm.
I am using Infopath 2010 with Sharepoint 2010.
What else i need to be added...?
If i removes code then it shows me and deployed properly.
Please , give me right direction.
**Edited:**
I deployed this form as form template and activated it by central admin site. and assigned to form library as content type. but while running this form (from Document-> New Document->MyContentTypeTemplate),
i got exception:
Business logic failed due to an exception.
(User: domainname\user, Form Name: MHPMEmployeeInformationTemplateChanged9, IP: , Request: http://spwfe1:7000/_layouts/FormServer.aspx?
XsnLocation=http://spwfe1:7000/FormServerTemplates/MHPMEmployeeInformationTemplateChanged9.xsn&SaveLocation=http:
//spwfe1:7000/OfficialResumeFormLibrary&Source=http://spwfe1:7000/OfficialResumeFormLibrary/Forms/AllItems.aspx&DefaultItemOpen=1, Form ID: urn:schemas-microsoft-com:
office:infopath:MHPMEmployeeInformationTemplateChanged9:-myXSD-2011-09-06T18-40-25, Type: UnauthorizedAccessException, Exception Message: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.) a2e8bb5f-26d2-485a-bf9c-0a333eaa71e7
Verbose Calling GlobalStorage.SetItem with index LastExceptionLogged value type UnauthorizedAccessException. a2e8bb5f-26d2-485a-bf9c-0a333eaa71e7
Medium Exception thrown from business logic event listener: System.UnauthorizedAccessException:
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.
at EmployeeInformation_Template.DocGenerator.CreateWordDocument(Resume objResume, Object oTemplate)
at EmployeeInformation_Template.FormCode.GetInfopathData() at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Employe... a2e8bb5f-26d2-485a-bf9c-0a333eaa71e7
Why should This? : I wondered When Microsoft is avoiding to use Interop COM Objects to use for word file automation which i used in my infopath form. Look Here
What i have to do now? do i need to go with alternatives ? or move by trying to resolve the issues ??? Please , i need right direction.
This is by design. As soon as you have code in your form, your only option is to deploy as "Administrator approved Form".
To get the form to show in your library, do the following:
Upload it in the Central Administration (General Applications
Settings -> Manage Form Templates)
activate the according Feature In the "Advanced Settings" section of
your library
allow "ContentType Management"
Add the Form as ContentType