我在ASP.net中有一个Asynchronus IHttpHandler,我在ELMAH捕获中看到这个异常错误.
Windows Server 2008 R2 Web Edition IIS 7.5 ASP.NET .NET 4.0运行时在站点上运行HTTP.
谁能对这一个有所了解?谷歌列出了2008年左右的一些结果,关于.NET 2.0中关于在请求体的Read()函数期间断开HTTP的错误.
System.Web.HttpException (0x80004005): An error occurred while communicating with the remote host. The error code is 0x80070001. ---> System.Runtime.InteropServices.COMException (0x80070001): Incorrect function. (Exception from HRESULT: 0x80070001)
Server stack trace:
at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
at System.Web.Hosting.IIS7WorkerRequest.ReadEntityCoreSync(Byte[] buffer, Int32 offset, Int32 size)
at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at MyHandler.ProcessRequest(HttpContext context)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] …
Run Code Online (Sandbox Code Playgroud) 我想要插入数组元素,所以如果一个不匹配然后插入它,否则更新它.
我尝试了这个问题的答案,如果数组元素已经存在,它可以正常工作.如果元素不存在,那么它会在数组字段下创建一个子元素"$".
我的Mongo结构如下:
Widget (collection)
--Name
--Properties (array)
--Name
--Value
Run Code Online (Sandbox Code Playgroud)
我的应用程序从WebService调用获取Widget Name和Properties列表.我希望迭代提供的属性并在Name已经存在时更新MongoDB中的值,或者如果不存在则将新属性插入Properties数组.
我有一个Web应用程序,每秒接收大约50次点击,每次点击我在中央SQL Server数据库中大约10个记录.大约每3秒钟我就会为一个入站连接发送5000多行.
目前我有一个存储过程,它将XML作为参数.我从我的XML中执行INSERT到我的主表,其中行字段不匹配,然后用我的XML中的值更新整个表.
无论如何操作并不慢,但我真的想知道最好的方法.我在SQL Server 2005上运行,所以我没有MERGE操作.