在 VS2012 (VB.Net) 中运行我的 ReCAPTCHA 例程,出现错误
基础连接已关闭。接收时发生意外错误
这段代码已经工作了几个星期,现在这周决定给我上面的错误。
有人可以告诉我问题是什么吗?谢谢!
这是我的代码:
Dim recaptchaResponse As String = Request.Form("g-recaptcha-response")
If Not String.IsNullOrEmpty(recaptchaResponse) Then
Dim request As Net.WebRequest = Net.WebRequest.Create("https://www.google.com/recaptcha/api/siteverify?secret={MySecretKey}&response=" + recaptchaResponse)
request.Method = "POST"
request.ContentType = "application/json; charset=utf-8"
Dim postData As String = ""
'get a reference to the request-stream, and write the postData to it
Using s As IO.Stream = request.GetRequestStream()
Using sw As New IO.StreamWriter(s)
sw.Write(postData)
End Using
End Using
'**This next line of code triggers the error**
Using s As …Run Code Online (Sandbox Code Playgroud) 在 Access 2010 中,我有一个 Autoexec 宏,它调用一个名为 CloseAllToolbars() 的函数(不是子函数)。
在 .MDB 文件中,当我打开它时,它运行该函数就好了。我将它保存并发布到 .MDE,.MDE 运行该函数就好了。我将 .MDE 复制到一台运行 Windows 10 的全新笔记本电脑,但未安装 Office 或 Access。我已经安装了 Access Runtime 2010。我的开发 PC 也是 Windows 10。
当我在新的笔记本电脑上运行这个 MDE 时,它给了我错误消息 2425“你输入的表达式有一个数据库找不到的函数名”。