摘要: 效果图:调用过程: string WCFURL = "http://localhost:100/Service1.svc"; UserRequest user = new UserRequest { UserName = UserName.Text, Address = Add... 阅读全文
posted @ 2014-07-25 11:43 Vincent_void 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: 由于服务停用问题,无法重启。可以根据端口查询进程PID netstat -aon|findstr "8081" 根据进程PID删除进程 taskkill /T /F /PID 98708 效果如图: 阅读全文
posted @ 2024-04-25 09:14 Vincent_void 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 昨晚由于之前实施的一个小姑娘把我们数据安装的版本装成评估版,导致数据库任务无法每天正常备份作业。 然后我就开始了踩坑之路。幸好在晚上操作的,如果在白天,想都不敢想。 心想着升级后会好,结果升级后打都打不开,数据库直接无法访问。 那就重新下一个安装,但是装好后,无法使用。评估版貌似控制注册表了。 卸载 阅读全文
posted @ 2024-01-23 13:33 Vincent_void 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 集成验证登录。 Data Source=.;Initial Catalog=数据库;Integrated Security=True; 密码登录: Data Source=.; Initial Catalog=数据库 ; User Id=xxx;Password=xxx; 阅读全文
posted @ 2023-05-18 13:32 Vincent_void 阅读(22) 评论(0) 推荐(0) 编辑
摘要: create PROCEDURE [dbo].[outputdata] @tableName Varchar(100)--表名 AS DECLARE @IsIdentity INT DECLARE @columnName VARCHAR(100)--列名 DECLARE @TypeName VARC 阅读全文
posted @ 2022-02-28 15:26 Vincent_void 阅读(712) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Data.SqlClient; public class SqlDbHelper { /// <summary> /// 连接字符串 /// </summary> public static readonly s 阅读全文
posted @ 2021-04-13 10:44 Vincent_void 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 参考文档: https://www.cnblogs.com/cbugs/p/9304370.html 花了两天时间解决了一个重量级的问题, 先说下场景: 最近公司要将日志写到腾讯云的日志服务上。但是在写日志的时候,出了一个问题。使用控制台程序(框架是.NET5)可以成功写入,但是移植到MVC的项目中 阅读全文
posted @ 2020-12-23 17:40 Vincent_void 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleApp1 { class Program... 阅读全文
posted @ 2020-01-13 21:00 Vincent_void 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 微信小程序想实现 模板消息推送的话 1.登录到微信公众平台 - 小程序 - 开发 - 开发设置 。 找到消息推送 2.验证消息的确来自微信服务器 微信只提供了php检验的代码段,还缺少返回参数的方法 // GET: Common /// <summary> /// 微信小程序模板校验签名 /// < 阅读全文
posted @ 2019-12-18 10:52 Vincent_void 阅读(1548) 评论(0) 推荐(0) 编辑
摘要: 使用jssdk的时候,发生了在配置时候产生的问题。config:invalid signature 后来发现是因为地址配置错误产生的。 如果代码写完后,确认签名算法正确,可用http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=jsapisign 页面工具进 阅读全文
posted @ 2019-11-28 16:28 Vincent_void 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 使用Cors在WebApi中实现跨域请求 第一步,在webapi项目中安装cors 在Web API配置文件中(Global.asax)进行全局配置: 第二部,代码编写 控制器头部代码 返回数据源代码,请注意,这里一定不要返回为字符串。如果返回为字符串,那么JSONP的方法不会识别出来,将永远不会去 阅读全文
posted @ 2019-04-03 15:52 Vincent_void 阅读(414) 评论(0) 推荐(0) 编辑