对于总是得到“System.Net.WebException:请求已中止:无法创建SSL/TLS安全通道”每当我们进行部署时感兴趣的读者,本文将会是一篇不错的选择,并为您提供关于.net–FileLo
对于总是得到“ System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道”每当我们进行部署时感兴趣的读者,本文将会是一篇不错的选择,并为您提供关于.net – FileLoadException:无法加载文件或程序集System.Runtime,Version = 4.2.0.0、Android VOIP SipException:无法创建SipSession、asp.net – System.InvalidOperationException:无法找到EntityType的映射和元数据信息、asp.net – System.Web.HttpException:请求超时的有用信息。
本文目录一览:- 总是得到“ System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道”每当我们进行部署时
- .net – FileLoadException:无法加载文件或程序集System.Runtime,Version = 4.2.0.0
- Android VOIP SipException:无法创建SipSession
- asp.net – System.InvalidOperationException:无法找到EntityType的映射和元数据信息
- asp.net – System.Web.HttpException:请求超时
总是得到“ System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道”每当我们进行部署时
如何解决总是得到“ System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道”每当我们进行部署时?
**我们有一个wcf服务,该服务使用X509Certificate2使用其他服务。 我们已在个人存储(.pfx)中安装了证书,并且正在将.cer导出到一个文件夹中,以便在调用其他服务时使用。 每当我重新部署WCF应用程序时,System.Net.WebException:请求中止:无法创建SSL / TLS安全通道。
一旦我重新安装pfx并再次导出,它将再次开始工作。**
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
.net – FileLoadException:无法加载文件或程序集System.Runtime,Version = 4.2.0.0
FileLoadException: Could not load file or assembly ‘System.Runtime,
Version=4.2.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a’ or
one of its dependencies. The located assembly’s manifest deFinition
does not match the assembly reference. (Exception from HRESULT:
0x80131040)
在Debug / Release文件夹中,我有System.Runtime 4.1.2.0但不知何故它可以工作.
在“经典”.NET框架中,我曾经将程序集重定向添加到app.config,但在这里我没有web.config.知道怎么解决这个问题吗?
解决方法
例如如果你改变
<PropertyGroup> <TargetFramework>netcoreapp2.0</TargetFramework> </PropertyGroup>
至
<PropertyGroup> <TargetFramework>net461</TargetFramework> </PropertyGroup>
但是如果在重新部署之前不从Azure中删除现有文件,则会出现此错误.
它也可能发生在以下情形中:
>首先使用Visual Studio 2017创建一个.NET Core项目:
档案 – >新项目 – > Visual C#>网络> Asp.NET核心应用程序
>在第二个屏幕上选择[.NET Core]平台.
>将Web应用程序部署到Azure.
>然后创建一个新项目:
档案 – >新项目 – > Visual C#>网络> Asp.NET核心应用程序
>在第二个屏幕上选择.NET Framework设置.
在不删除Azure中的现有文件的情况下重新部署将导致此错误.
希望有所帮助.
Android VOIP SipException:无法创建SipSession
我试图在Android 3.1上使用内置SIP运行VOIP呼叫.我有物理平板设备(galaxy Tab 10.1).
出于测试目的,我从SipDemo example创建了一个项目 – 它工作正常! (意思是我的凭据正常,我的设备/网络很好).
我的Manifest.xml
logoeditedsmall" android:label="@string/app_name" android:debuggable="true">
dio" />
required="true" />
required="true" />
required="true" />
我的后端代码:
public void initializeManager() {
if (manager == null) {
manager = SipManager.newInstance(this);
}
if (me != null) {
closeLocalProfile();
}
try {
SipProfile.Builder builder = new SipProfile.Builder(username,domain);
builder.setPassword(password);
builder.setoutboundProxy(proxy);
me = builder.build();
manager.open(me);
manager.setRegistrationListener(me.getUriString(),new SipRegistrationListener() {
@Override
public void onRegistering(String localProfileUri) {
Log.i("MY","onRegistering");
}
@Override
public void onRegistrationDone(String localProfileUri,long expiryTime) {
Log.i("MY","onRegistrationDone");
}
@Override
public void onRegistrationFailed(
String localProfileUri,int errorCode,String errorMessage) {
Log.i("MY","onRegistrationFailed");
}
});
} catch (ParseException pe) {
Log.e("MY",pe.toString());
} catch (SipException se) {
Log.e("MY",se.toString());
}
}
public void initiateCall() {
try {
SipAudioCall.Listener listener = new SipAudioCall.Listener() {
@Override
public void onCallEstablished(SipAudioCall call) {
call.startAudio();
call.setSpeakerMode(true);
call.toggleMute();
Log.i("MY","oonCallEstablished");
}
@Override
public void onCallEnded(SipAudioCall call) {
Log.i("MY","onCallEnded");
}
};
call = manager.makeAudioCall(me.getUriString(),sipAddress,listener,30);
} catch (Exception e) {
Log.e("MY",e.toString());
if (me != null) {
try {
manager.close(me.getUriString());
} catch (Exception ee) {
Log.e("MY",ee.toString());
}
}
if (call != null) {
call.close();
}
}
}
运行此代码(首先我初始化,使用initalizeManager然后我运行initateCall)我收到一个异常:
android.net.sip.SipException: Failed to create SipSession; network unavailable?
…和LogCat日志:
07-14 13:35:16.200: ERROR/SipService(364): openTomakeCalls()
07-14 13:35:16.200: ERROR/SipService(364): javax.sip.SipException: only creator can access the profile
07-14 13:35:16.200: ERROR/SipService(364): at com.android.server.sip.SipService.createGroup(SipService.java:337)
07-14 13:35:16.200: ERROR/SipService(364): at com.android.server.sip.SipService.open(SipService.java:185)
07-14 13:35:16.200: ERROR/SipService(364): at android.net.sip.ISipService$Stub.onTransact(ISipService.java:58)
07-14 13:35:16.200: ERROR/SipService(364): at android.os.Binder.execTransact(Binder.java:320)
07-14 13:35:16.200: ERROR/SipService(364): at dalvik.system.NativeStart.run(Native Method)
07-14 13:35:16.200: WARN/SipService(364): only creator can set listener on the profile
07-14 13:35:16.230: WARN/SipService(364): only creator or radio can close this profile
谷歌没有给出任何结果,因为Android 2.3 SIP上没有足够的数据,所以你提出的每个建议都能帮到我很多!
最佳答案
问题解决了:你不能在initializeManager()之后调用initiateCall(). SIP组件初始化后,您必须等待大约4秒钟.
编辑 – SipManager注册似乎仍然存在一些问题:调用用户未注册(403).重新安装应用程序并重新启动设备可以解决问题.
asp.net – System.InvalidOperationException:无法找到EntityType的映射和元数据信息
我尝试将第二个ADO.NET实体数据模型添加到不同的命名空间 – 但这没有帮助.
如果我从项目中删除添加的.edmx文件,问题就会消失.
如果我删除自跟踪实体文件(Model.tt和Model.Context.tt),问题就会消失.
当存在多个实体数据模型时,自我跟踪实体看起来不能正常运行.
有没有其他人经历过并解决了这个问题?
解决方法
在每个实体数据模型上使用EF 5.x DbContext Generator.您可以通过ExtensionManager(搜索EF 5.x)或here下载模板
asp.net – System.Web.HttpException:请求超时
Server Error in ‘/’ Application. Request timed out. 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.Web.HttpException: Request timed out.
Source Error:
An unhandled exception was generated during the execution of the
current web request. information regarding the origin and location of
the exception can be identified using the exception stack trace below.Stack Trace:
[HttpException (0x80004005): Request timed out.]
解决方法
<httpRuntime executionTimeout="300" />
对于上下文,这里有一个完整的web.config只有这个设置:
<configuration> <system.web> <httpRuntime executionTimeout="300" /> </system.web> </configuration>
关于总是得到“ System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道”每当我们进行部署时的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于.net – FileLoadException:无法加载文件或程序集System.Runtime,Version = 4.2.0.0、Android VOIP SipException:无法创建SipSession、asp.net – System.InvalidOperationException:无法找到EntityType的映射和元数据信息、asp.net – System.Web.HttpException:请求超时的相关信息,请在本站寻找。
本文标签: