Exception after upgrade to Creator Edition - c#

The following line of code worked fine up to yesterday.
ReportViewer1.ServerReport.GetParameters().Count
My PC updated overnight to the 'Creator Edition' of Windows 10, and now I get the exception shown below...
'ReportViewer1.ServerReport.GetParameters()' threw an exception of type 'System.Net.WebException'
Data: {System.Collections.ListDictionaryInternal}
HResult: -2146233079
HelpLink: null
InnerException: {"No connection could be made because the target machine actively refused it 127.0.0.1:80"}
Message: "Unable to connect to the remote server"
Response: null
Source: "Microsoft.ReportViewer.WebForms"
StackTrace: " at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods()\r\n at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname)\r\n at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname)\r\n at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 sql16Method, ProxyMethod`1 katmaiMethod, ProxyMethod`1 yukonMethod)\r\n at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)\r\n at Microsoft.Reporting.WebForms.SoapReportExecutionService.LoadReport(String report, String historyId)\r\n at Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession()
\r\n at Microsoft.Reporting.WebForms.ServerReport.GetParameters()"
Status: ConnectFailure
TargetSite: {System.String[] GetSecureMethods()}
Has anyone else seen this happen? Any ideas why? Thanks

After a few re-boots, this started working.
Maybe the Reports system didn't re-start itself after the update...

Related

CWBCO1049 - The IBM i server application is not started, or the connection was blocked by a firewall (Communication error occurred)

we developed a UWP app, here we use Xamarin Forms for UI, for API we used ASP.net and use the IBM DB2 for Database and host the API in the IIS server.
This exception was thrown only in the Production Environment, not in the Test environment. I don't know what causes this issue. In the Test environment, We continuously check and run the module in which the exception was thrown. But the exception was not replicated. I don't know how to solve this exception. Done a lot of searches on Google. But I didn't get the answer.
This exception has been thrown around for a long time.
If anyone knows the solution, please share it. Thanks in advance :)
----------------------------------------
Timestamp: 8/20/2022 8:21:35 PM
Message: HandlingInstanceID: cc5775ce-32b7-4840-9b9c-56027b4c18e0
An exception of type 'IBM.Data.DB2.iSeries.iDB2CommErrorException' occurred and was caught.
-------------------------------------------------------------------------------------------
08/20/2022 16:21:35
Type : IBM.Data.DB2.iSeries.iDB2CommErrorException, IBM.Data.DB2.iSeries, Version=12.0.0.0, Culture=neutral, PublicKeyToken=9cdb2ebfb1f93a26
Message : A communication error occurred.
Source : DDRAPIDataAccess
Help link :
Errors : IBM.Data.DB2.iSeries.iDB2ErrorCollection
MessageDetails : CWBCO1049 - The IBM i server application is not started, or the connection was blocked by a firewall
MessageCode : 10061
SqlState :
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : DDRDataAccess.DDRBO.AlertDetails getPopupAlertDetails(Int32, System.String, System.String, System.String)
HResult : -2147467259
Stack Trace : at DDRDataAccess.DDRAPI.AlertsDAL.getPopupAlertDetails(Int32 UserID, String SCID, String v_date, String v_time) in D:\DDRAPI\AlertsDAL.cs:line 281
at DDRAPI.Controllers.AlertController.GetUserPopupAlerts(Int32 UserID, String SCID, String date, String time) in D:\Controllers\AlertController.cs:line 100
Additional Info:
MachineName : WIN-SEI******I
TimeStamp : 8/20/2022 8:21:35 PM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : /LM/W3SVC/2/ROOT-1-133054308451942484
ThreadIdentity :
WindowsIdentity : WIN-SEI******I\Administrator
Category: LoggingDDRAPI
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: WIN-SEI******I
App Domain: /LM/W3SVC/2/ROOT-1-133**********484
ProcessId: 125712
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:23796
Extended Properties:
----------------------------------------

UWP: System.Reflection.TargetInvocationException

This is the error: (it is not complete but this is what VS gives me)
XDG0062 System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. --->
Windows.UI.Xaml.Markup.XamlParseException: The text associated with
this error code could not be found.
No matching constructor found on type 'SMPlayer.MediaControl'. [Line:
163 Position: 25] at
Windows.UI.Xaml.Application.LoadComponent(Object component, Uri
resourceLocator, ComponentResourceLocation componentResourceLocation)
at SMPlayer.MediaControl.InitializeComponent() at
SMPlayer.M SMPlayer MainPage.xaml 151
However, my MediaControl does have a constructor, which is defined here. (Sorry for posting the link instead of the code). And MediaControl.g.i.cs does not have Line 163.
Nonetheless, my project still compiles and runs correctly even with that error. And my MediaControl is displayed properly.
What is wrong?

c#:Access is denied error when using DirectoryEntry.invoke while updating the password

I am using C# code to update the local user password in windows from IIS server box, Below is the snippet using to update the password.
DirectoryEntry.Invoke("SetPassword", new object[] { decodedTargetUserPassword });
I have executed this code from IIS box for more than 100 windows boxes and it is working fine for some boxes and failing with the below error for some boxes.
________________________________________________________________________________ AppTrace Error: 0 : Error Message ={0}, Exception has been thrown by
the target of an invocation. AppTrace Error: 0 : Error Stack ={0},
at System.DirectoryServices.DirectoryEntry.Invoke(String methodName,
Object[] args) at UserManagementService.Service1.SetPassword(String
remoteHost, String targetUser, String newPassword, String username,
String password) in
c:\UserManagementService\UserManagementService\Service1.svc.cs:line 38
AppTrace Error: 0 : Error Stack ={0},
System.UnauthorizedAccessException: Access is denied.
The remote connection is successful from IIS box to failing target windows and the user search is also working fine but updating the password is failing. Can anyone help me to find out the cause for this issue.

Infragistics ADOMD ClassCastException when connecting to ActivePivot's XMLA server

I am trying to edit the Infragistics WPF PivotGrid Sample so that it will connect to the ActivePivot Sandbox Server. ActivePivot supports XMLA and I can connect to the same Sandbox Server using the 'From Analysis Services' DataSource option in MS Excel with no issues. I edited the odc file to match the exact same connection string as below and it sill worked.
In the DataSourceAdomdNet.xaml file in the Infragistics.Samples.WPF project, I replaced the AdomdDataSource with the following:
<igOlap:AdomdDataSource x:Key="AdomdDataSource"
Database="Sandbox"
Cube="EquityDerivativesCube">
<igOlap:AdomdDataSource.ConnectionSettings>
<igOlap:AdomdConnectionSettings ConnectionString="Password=admin;Persist Security Info=True;User ID=admin;Initial Catalog=Sandbox;Provider=MSOLAP.4;Persist Security Info=True;Data Source=http://localhost:8080/xmla;MDX Compatibility=1;Safety Options=2;MDX Missing Member Mode=Error" />
</igOlap:AdomdDataSource.ConnectionSettings>
</igOlap:AdomdDataSource>
When I run the Samples project and look at the PivotGrid, I see the following exception:
InnerException: System.InvalidCastException
HResult=-2147467262
Message=Object cannot be cast from DBNull to other types.
Source=mscorlib
StackTrace:
at System.DBNull.System.IConvertible.ToDateTime(IFormatProvider provider)
at System.Convert.ToDateTime(Object value, IFormatProvider provider)
at Microsoft.AnalysisServices.AdomdClient.CubeDef.get_LastProcessed()
at Infragistics.Olap.Adomd.AdomdDataProvider.LoadCubesWorkerDoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
InnerException:
I am experienced with ActivePivot, but not so much with Infragistics/ADOMD.NET. I have never seen this type of error when using any other XMLA/ADOMD client with ActivePivot.
Can anyone help?
Thanks

Emgu.CV Not supported Uri format

I have some program on my 1st pc (everytinh works fine)
but when I copy my full project to another PC and try to run application I get this error :
A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
Additional information: Formaty identyfikatorów URI nie są obsługiwane.
If there is a handler for this exception, the program may be safely continued.
and than:
A first chance exception of type 'System.BadImageFormatException' occurred in Emgu.CV.dll
Additional information: Próbowano załadować program w niepoprawnym formacie. (Wyjątek od HRESULT: 0x8007000B)
If there is a handler for this exception, the program may be safely continued.
in this code:
BackgroundSubtractorMOG2 pMog11 = new BackgroundSubtractorMOG2(0, 80, false);
I have really have no idea what to do with this. What is the problem with Emgu.CV in the 2nd pc?

Categories

Resources