i implement it xsockect.net webrtc sample - asp.net

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: XSockets.Plugin.Framework.Exceptions.ExportException: Tipo de excepção 'XSockets.Plugin.Framework.Exceptions.ExportException' accionado.
Source Error:
Line 11: public static void Start()
Line 12: {
Line 13: wss = XSockets.Plugin.Framework.Composable.GetExport<IXSocketServerContainer>();
Line 14: wss.StartServers();
Line 15: }

Related

System.IdentityModel.Tokens.SecurityTokenException: Untrusted issuer. Adfs

Untrusted issuer.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IdentityModel.Tokens.SecurityTokenException: Untrusted issuer.
Source Error:
**Line 41:
Line 42: throw new SecurityTokenException( "Untrusted issuer." );
Line 43: }
Line 44: }**
Solution:
in TrustedIssuerNameRegistry.cs file change line
**if ( String.Equals( x509Token.Certificate.SubjectName.Name, "CN=localhost" ) )**
to
**if ( String.Equals( x509Token.Certificate.SubjectName.Name, "CN= *replace with the correct CN on your certificate here*" ) )**

An exception of type 'Grpc.Core.RpcException' occured by upgrading grpc to v 2.33.1 of with TargetFrameworkVersion 4.8

I am getting the exception below when i tried to upgrade grpc version to 2.33.1
TargetFrameworkVersion : 4.8
The content of this exception did not tell me any thing, can any body give any help
Thanks.
Used Package References :
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.14.0" />
<PackageReference Include="Grpc.Core.Api" Version="2.33.1" />
<PackageReference Include="Grpc.Tools" Version="2.33.1" />
</ItemGroup>
Message: An exception of type 'Grpc.Core.RpcException' occurred and was caught.
2021-11-05T19:00:30.966+01:00
Exception Messages:
RpcException : Status(StatusCode="Cancelled", Detail="Cancelled", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"#1636135230.919000000","description":"Error received from peer ipv6:[::1]:28000","file":"T:\src\github\grpc\workspace_csharp_ext_windows_x64\src\core\lib\surface\call.cc","file_line":1062,"grpc_message":"Cancelled","grpc_status":1}")
Type : Grpc.Core.RpcException, Grpc.Core.Api, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d754f35622e28bad
Message : Status(StatusCode="Cancelled", Detail="Cancelled", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"#1636135230.919000000","description":"Error received from peer ipv6:[::1]:28000","file":"T:\src\github\grpc\workspace_csharp_ext_windows_x64\src\core\lib\surface\call.cc","file_line":1062,"grpc_message":"Cancelled","grpc_status":1}")
Context Messages:
Exception occurred from calling /ServiceGrpc/Init.
Source : mscorlib
Status : Status(StatusCode="Cancelled", Detail="Cancelled", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"#1636135230.919000000","description":"Error received from peer ipv6:[::1]:28000","file":"T:\src\github\grpc\workspace_csharp_ext_windows_x64\src\core\lib\surface\call.cc","file_line":1062,"grpc_message":"Cancelled","grpc_status":1}")
StatusCode : Cancelled
Trailers : Grpc.Core.Metadata
TargetSite : Void Throw()
Stack Trace : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Grpc.Core.Internal.AsyncCall2.UnaryCall(TRequest msg) in T:\src\github\grpc\src\csharp\Grpc.Core\Internal\AsyncCall.cs:line 78 at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method2 method, String host, CallOptions options, TRequest request) in T:\src\github\grpc\src\csharp\Grpc.Core\DefaultCallInvoker.cs:line 46
at Grpc.Core.Interceptors.InterceptingCallInvoker.b__3_0[TRequest,TResponse](TRequest req, ClientInterceptorContext`2 ctx) in T:\src\github\grpc\src\csharp\Grpc.Core.Api\Interceptors\InterceptingCallInvoker.cs:line 51

getting jasperException on running jsp file

i am getting jasper exception on running jsp file
<body>
<%
Connection con=ConnectionProvider.getConnect();
%>
<h1><%=con %></h1>
getConnect is method in another java class where i have loaded the connection driver
public static Connection getConnect(){
try{
if(con==null){
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost://3306/techblog","root","");
}
}
catch(Exception e){
e.printStackTrace();
}
return con;
}
here is the fullStackTrace.could it be because i m using jdk11 with netbeans 11 as i read it somewhere that netbeans11 isnt supporting jdk latest versions?
HTTP Status 500 – Internal Server Error
Type Exception Report
Message An exception occurred processing [/index.jsp] at line [20]
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
17: </head>
18: <body>
19: <%
20: Connection con=ConnectionProvider.getConnect();
21: %>
22: <h1><%=con %></h1>
23: <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
and here is the stacktrace
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:617)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:514)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
Root Cause
java.lang.RuntimeException:
com.tech.blog.helper.ConnectionProvider.getConnect(ConnectionProvider.java:1)
org.apache.jsp.index_jsp._jspService(index_jsp.java:129)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

Error using SignalR utility Crank.exe

I'm using crank to load test my signalr application. The command that I'm using is as follows
crank /NumClients:100 /Url:http://localhost:29573/TestConnection /BatchSize:10
I'm getting an exception in my powershell window as follows...
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object
reference not set to an instance of an object.
at Microsoft.AspNet.SignalR.Client.HubConnection.GetUrl(String url, Boolean useDefaultUrl) in c:\Users\t-niraj\Deskto
p\SignalR-master\src\Microsoft.AspNet.SignalR.Client\HubConnection.cs:line 216
at Microsoft.AspNet.SignalR.Client.HubConnection..ctor(String url, Boolean useDefaultUrl) in c:\Users\t-niraj\Desktop
\SignalR-master\src\Microsoft.AspNet.SignalR.Client\HubConnection.cs:line 38
at Microsoft.AspNet.SignalR.Client.HubConnection..ctor(String url) in c:\Users\t-niraj\Desktop\SignalR-master\src\Mic
rosoft.AspNet.SignalR.Client\HubConnection.cs:line 28
at Microsoft.AspNet.SignalR.Crank.Client.<OpenControllerConnection>d__6.MoveNext() in c:\Users\t-niraj\Desktop\Signal
R-master\src\Microsoft.AspNet.SignalR.Crank\Client.cs:line 71
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNet.SignalR.Crank.Client.<Run>d__0.MoveNext() in c:\Users\t-niraj\Desktop\SignalR-master\src\Microsof
t.AspNet.SignalR.Crank\Client.cs:line 43
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Microsoft.AspNet.SignalR.Crank.Client.Main() in c:\Users\t-niraj\Desktop\SignalR-master\src\Microsoft.AspNet.Signa
lR.Crank\Client.cs:line 34
I do have the sample application: SignalR.LoadTestHarness running at localhost:29573. This is the same application that is found in the SignalR source code samples.
What am I doing wrong?
You did not provide the ControllerUrl parameter and as a result crank is trying to create a hub connection with null Url which results in throwing a NullReferenceException on this line.

asynchronous task _dlgt.EndInvoke(ar) Object reference not set to an instance of an object

I am working on an application that need to do asynchronous tasks.
I use two times the code given at http://msdn.microsoft.com/fr-fr/library/system.web.ui.page.executeregisteredasynctasks.aspx
I simply copy and paste it in my application.
Unfortunately I have an error thrown on one time while the other one works perfectly.
The error is :
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 46:
Line 47: _taskprogress = "Asynchronous task completed."
Line 48: _dlgt.EndInvoke(ar)
Line 49:
Line 50: End Sub
Source File: clsFormAsync.vb Line: 48
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Samples.AspNet.VB.Controls.MyAsyncTask.OnEnd(IAsyncResult ar) in clsFormAsync.vb:48
System.Web.UI.PageAsyncTask.CompleteTask(Boolean timedOut, Boolean syncTimeoutCaller) +365
[HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.]
System.Web.UI.Page.ExecuteRegisteredAsyncTasks() +11440805
ViewProtocols.btnRefreshForm_Click(Object sender, EventArgs e) in ViewProtocols.aspx.vb:98
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707
I really don't know how to get out of this error, help will be welcome.

Resources