windows服务中遇到一个问题

wofan wofan 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
using System.IO;
using System.Timers;
using System.Data.SqlClient;



namespace WindowsService1
{
public partial class U8toDRP : ServiceBase
{
private string strconn;
private string strtime;
private WebReference.Service MyService = new WebReference.Service();
public U8toDRP()
{
InitializeComponent();
}

......

用FORM是可以用的,改为windows服务就不能定义了
"错误 1 找不到类型或命名空间名称“WebReference”(是否缺少 using 指令或程序集引用?) F:\ws\WindowsService1\WindowsService1\Service1.cs 20 17 WindowsService1
"
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
wofan
C# 111,129 成员 642,540 内容