System.ComponentModel.Win32Exception:

************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: 存储空间不足,无法处理此命令。
at System.Drawing.Icon.Initialize(Int32 width, Int32 height)
at System.Drawing.Icon..ctor(SerializationInfo info, StreamingContext context)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._SerializationInvoke(IRuntimeMethodInfo method, Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex)
at System.Resources.ResourceReader._LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
at System.Resources.ResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode)
at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString)
at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase)
at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
at System.Resources.ResourceManager.GetObject(String name)
at Sshpos.SkJs.InitializeComponent()
at Sshpos.SkJs..ctor()
at Sshpos.PosMain.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

1个回答

没有磁盘空间,或者文件只读,或者访问的是只读的驱动器(比如CDROM或者写保护的SD卡)

ssh800
ssh800 出异常的时候我看了一下,各各盘的空间至少还有10G以上,这个异常每天会抛个2次,中午12点多一次晚上6点多一次,其它时间都正常。
5 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Python+OpenCV计算机视觉

Python+OpenCV计算机视觉

System.ComponentModel.Win32Exception: 指定的服务已存在.windows服务安装问题

C:\Windows\system32>C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.exe Microsoft (R) .NET Framework 安装实用工具版本 4.7.3190.0 版权所有 (C) Microsoft Corporation。保留所有权利。 正在运行事务处理安装。 正在开始安装的“安装”阶段。 查看日志文件的内容以获得 E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.exe 程序集 的进度。 该文件位于 E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.InstallLog。 正在安装程序集“E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.exe”。 受影响的参数是: logtoconsole = logfile = E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.InstallLog assemblypath = E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.exe 正在安装服务 AirCateringAuto... 已成功安装服务 AirCateringAuto。 正在日志 Application 中创建 EventLog 源 AirCateringAuto... Installing service AirCateringAuto. 正在安装服务 AirCateringAuto... 正在日志 Application 中创建 EventLog 源 AirCateringAuto... 在“安装”阶段发生异常。 System.ComponentModel.Win32Exception: 指定的服务已存在。 正在开始安装的“回退”阶段。 查看日志文件的内容以获得 E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.exe 程序集 的进度。 该文件位于 E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.InstallLog。 正在回滚程序集“E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.exe”。 受影响的参数是: logtoconsole = logfile = E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.InstallLog assemblypath = E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.exe Rolling back service AirCateringAuto. 正在将事件日志还原到源 AirCateringAuto 的前一状态。 正在将事件日志还原到源 AirCateringAuto 的前一状态。 正在从系统中移除服务 AirCateringAuto... 已成功地从系统中移除服务 AirCateringAuto。 “回退”阶段已成功完成。 已完成事务处理安装。 安装失败,已执行回退。 C:\Windows\system32>Net Start AirCateringAuto 服务名无效。 请键入 NET HELPMSG 2185 以获得更多的帮助。 C:\Windows\system32>sc config AirCateringAuto start= auto [SC] OpenService 失败 1060: 指定的服务未安装。 C:\Windows\system32>pause 请按任意键继续. . . start.bat %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe E:\DJcompany\AirCatering\AirCateringAuto\AirCateringAuto\bin\Debug\AirCateringAuto.exe Net Start AirCateringAuto sc config AirCateringAuto start= auto pause

System.ComponentModel.Container components啥意思?

private System.ComponentModel.Container components = null是什么意思? 为什么和 protected override void Dispose (bool disposing) { if(disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } 存在“二义性”???

C# Process执行System32下的文件报错,大佬帮看一下

代码如下: ``` //string path = Path.Combine(Environment.SystemDirectory, "ssText3d.scr"); //string path = @"C:\Windows\System32\ssText3d.scr"; string path = @"D:\ssText3d.scr"; Console.WriteLine(path); Process p = new Process(); p.StartInfo.FileName = path; p.Start();` ``` 如上代码,可以正常执行。 但是这个文件本身就存在System32文件夹下,想直接调用,但是更改为注释的路径执行此代码会报如下错误: ``` Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() ``` 还请大神帮忙看一下,多谢啦~

sqlserver ssis deploy error code: 6522 vs2010本地发布ssis到数据库失败

vs2010本地发布ssis到数据库失败: 标题: SQL Server Integration Services ------------------------------ 在执行用户定义例程或聚合“deploy_project_internal”期间出现 .NET Framework 错误: System.ComponentModel.Win32Exception: A required privilege is not held by the client System.ComponentModel.Win32Exception: at Microsoft.SqlServer.IntegrationServices.Server.ISServerProcess.StartProcess(Boolean bSuspendThread) at Microsoft.SqlServer.IntegrationServices.Server.ServerApi.DeployProjectInternal(SqlInt64 deployId, SqlInt64 versionId, SqlInt64 projectId, SqlString projectName) 。 (Microsoft SQL Server,错误: 6522) 有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3000&EvtSrc=MSSQLServer&EvtID=6522&LinkId=20476 ------------------------------ 按钮: 确定 ------------------------------ ![图片说明](https://img-ask.csdn.net/upload/201905/08/1557296517_76662.png)

好烦,为什么总是连接不上数据库

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ComponentModel.Win32Exception: 找不到网络路径。 源错误: 执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪: [Win32Exception (0x80004005): 找不到网络路径。] [SqlException (0x80131904): 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接)] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5352431 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +244 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover) +5363103 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) +145 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) +891 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) +307 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData) +518 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +278 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +38 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +732 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +85 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1057 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +196 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +146 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +16 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +94 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +110 System.Data.SqlClient.SqlConnection.Open() +96 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +316 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +86 System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1481 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +138 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30 System.Web.UI.WebControls.GridView.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +105 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75 System.Web.UI.Control.EnsureChildControls() +83 System.Web.UI.Control.PreRenderRecursiveInternal() +42 System.Web.UI.Control.PreRenderRecursiveInternal() +155 System.Web.UI.Control.PreRenderRecursiveInternal() +155 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

“/”应用程序中的服务器错误。 等待的操作过时。

public static DataTable GetDataSet(string safeSql) { using (DbConnection connection = GetConnection()) { DbProviderFactory _factory = DbProviderFactories.GetFactory(providerName); DbCommand command = GetCommand(safeSql, CommandType.Text, connection); connection.Open(); DbDataAdapter da = _factory.CreateDataAdapter(); da.SelectCommand = command; DataTable datatable = new DataTable(); da.Fill(datatable);//注意报错的时候就是这里出错了,为什么? return datatable; } }

iis部署好网站的时候 出现这个问题 大神帮忙给看看 .net Farmworks4.0是布置好的

“/”应用程序中的服务器错误。 系统找不到指定的文件。 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ComponentModel.Win32Exception: 系统找不到指定的文件。 源错误: 行 176: SqlConnection sqlcon = new SqlConnection(ConfigurationManager.AppSettings["sql"]); 行 177: SqlCommand sqlcmd = new SqlCommand(sqlyj, sqlcon); 行 178: sqlcon.Open(); 行 179: SqlDataReader sqldr = sqlcmd.ExecuteReader(); 行 180: sqldr.Read(); 源文件: f:\wangzhanbeifen\红酒\exe-pr\ch.aspx.cs 行: 178 堆栈跟踪: [Win32Exception (0x80004005): 系统找不到指定的文件。] [SqlException (0x80131904): 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接)] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5352431 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +244 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover) +5363103 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) +145 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) +922 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) +307 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData) +518 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +278 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +38 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +732 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +85 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1057 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +196 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +146 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +16 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +94 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +110 System.Data.SqlClient.SqlConnection.Open() +96 ch.a5(String sqlyj) in f:\wangzhanbeifen\红酒\exe-pr\ch.aspx.cs:178 ch.Page_Load(Object sender, EventArgs e) in f:\wangzhanbeifen\红酒\exe-pr\ch.aspx.cs:74 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772 版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18408

在并发量大的时候,阿里云ECS会抛出异常provider

大家好! 最近阿里云ECS出现了一些奇怪的问题,在并发量大的时候,ASP.NET会抛出下面的异常: System.Data.SqlClient.SqlException: 已成功与服务器建立连接,但是在登录前的握手期间发生错误。 (provider: SSL Provider, error: 0 - 等待的操作过时。) ---> System.ComponentModel.Win32Exception: 等待的操作过时。 --- 内部异常堆栈跟踪的结尾 --- 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 在 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) 在 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) 在 System.Data.SqlClient.SqlConnection.Open() 在 Microsoft.Practices.EnterpriseLibrary.Data.Database.OpenConnection() 在 Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteNonQuery(DbCommand command) 这类异常一般会在1分钟以内自动恢复。 一开始怀疑是阿里云RDS的问题,但是监控到RDS的连接数,IOPS以及CPU都是正常的,而且其他负载量低的ECS连接RDS也是没有问题的。 参考网上的一些回复检查了 netsh WinSock Show Catalog,没有发现异常。 现在怀疑是不是ECS的原因或者ASP.NET方面的问题。 Ray Wu的主页

System.FormatException: 输入字符串的格式不正确。

************** 异常文本 ************** System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) 在 System.Decimal.Parse(String s) 在 Mark.Gao.ProductPrice.GetPrice(String type, String orderUrl, String defaultUrl, Int32& fromplat, String category) 位置 e:\myWorks\TFSCode\MrCrawl\Mark.Gao\ProductPrice.cs:行号 206 在 ProductAutoSycmPrice.Form1.button1_Click(Object sender, EventArgs e) 位置 e:\myWorks\TFSCode\MrCrawl\ProductAutoSycmPrice\Form1.cs:行号 138 在 ProductAutoSycmPrice.Form1.timer1_Tick(Object sender, EventArgs e) 位置 e:\myWorks\TFSCode\MrCrawl\ProductAutoSycmPrice\Form1.cs:行号 200 在 System.Windows.Forms.Timer.OnTick(EventArgs e) 在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

C# 主页面点击按钮弹出子页面时,系统执行子页面界面代码时报错。

2016-12-29 12:43:58,983 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: 目前的程序已經使用了視窗管理員物件所有的系統可用控制代碼。 at System.Drawing.Icon.Initialize(Int32 width, Int32 height) at System.Drawing.Icon..ctor(SerializationInfo info, StreamingContext context) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._SerializationInvoke(IRuntimeMethodInfo method, Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context) at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context) at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder) at System.Runtime.Serialization.ObjectManager.DoFixups() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex) at System.Resources.ResourceReader._LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode) at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode) at System.Resources.ResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode) at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString) at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase) at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream) at System.Resources.ResourceManager.GetObject(String name) at FormCommon.Frm.WndLogin.InitializeComponent() in d:\代码\PlatingApp\Source.Data\FormCommon\Frm\WndLogin.designer.cs:line 136

tasklist /s /u /p登录失败:未知的用户名或错误密码

远程主机是win10家庭版,策略组补充了,网络访问也改为了经典模式,空白密码的本地账户也禁用了,但就是不能正常登录远程win10主机。请问各位大神,还有招吗?谢谢

主要是出现在网络问题上还是代码有问题?

日志级别: ERROR 出错类:GrowthPartner.DAL.DBConn property: [(null)] - 错误描述:Error System.Data.SqlClient.SqlException (0x80131904): 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接) ---> System.ComponentModel.Win32Exception (0x80004005): 登录失败: 未知的用户名或错误密码。 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 在 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) 在 System.Data.SqlClient.SqlConnection.Open() 在 GrowthPartner.DAL.DBConn.open() 位置 c:\HZK\CQKJG\GrowthPartner\GrowthPartner\DAL\DBConn.cs:行号 24 ClientConnectionId:00000000-0000-0000-0000-000000000000

WebClient 远程服务器返回错误: (401) 未经授权

使用C#写了一个简单的winform程序,想实现自动下载Reporting Service的报表。结果一直报错: System.Net.WebException: 远程服务器返回错误: (401) 未经授权。 ---> System.ComponentModel.Win32Exception: WebClient wc = new WebClient(); wc.DownloadFile(url,path) 报表服务器是内网,我直接再浏览器中打开地址 http://dbserver01/ReportServer/Pages/ReportViewer.aspx?spGetAuditingOrdersCount&Value1=2017/3/13&rs:Format=EXCEL ,就会直接导出文件,所以我想使用WebClient来下载,但是却报没有权限,不知道有没有解决办法。 网上查了好久,发现可能是权限问题,加了下面的语句,仍然报错 wc.Credentials = new NetworkCredential("software", "password", System.Environment.UserDomainName);

C#怎么直接导出Reporting Service内容为doc、xls

查了好多资料,发现直接在浏览器中打开[http://dbserver01/ReportServer/Pages/ReportViewer.aspx?spGetAuditingOrdersCount&Value1=2017/3/13&rs:Format=EXCEL](http://dbserver01/ReportServer/Pages/ReportViewer.aspx?spGetAuditingOrdersCount&Value1=2017/3/13&rs:Format=EXCEL "")可以直接在浏览器中下载报表。 尝试了使用webClient的下载功能, WebClient wc = new WebClient(); wc.Credentials = new NetworkCredential("software", "password", System.Environment.UserDomainName); wc.DownloadFile(url,path) 但是报下面的错误 System.Net.WebException: 远程服务器返回错误: (401) 未经授权。 ---> System.ComponentModel.Win32Exception: 登录没有成功 不知道各位大神有没有什么更好的办法直接下载附件

sql server2008建立连接出现错误,求大神指教,在线等,急!!!

无法连接到 local。 ------------------------------ 其他信息: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接) (Microsoft SQL Server,错误: 53)

数据库 asp.net登录问题

“/”应用程序中的服务器错误。 找不到网络名。 说明:执行当前Web请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ComponentModel.Win32Exception:找不到网络名。 源错误: 行 29: conn.ConnectionString = "Data Source=LENOVO-PC5/MYSQL;Initial Catalog=注册人员名单;User ID=sa;Password=123"; 行 30: if (conn.State == ConnectionState.Closed){ 行 31: conn.Open(); 行 32: } //打开数据库连接 行 33: SqlCommand sqlComGet = new SqlCommand(); //创建SqlCommand对象 源文件: e:\程序练习\ Visual Studio 2012 \注册登录\ WebSite8 \ Default.aspx.cs 行: 31 堆栈追踪: [Win32Exception (0x80004005): 找不到网络名。] [SqlException (0x80131904): 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接)] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5341687 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +546 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover) +5353471 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) +145 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) +923 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) +311 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData) +646 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +278 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +38 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +732 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +85 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1057 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +196 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +146 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +16 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +94 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +110 System.Data.SqlClient.SqlConnection.Open() +96 _Default.Button1_Click(Object sender, EventArgs e) in e:\程序练习\Visual Studio 2012\注册登录\WebSite8\Default.aspx.cs:31 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9628462 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724 版本信息: Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.34274

win7上可以连接数据库,但是在win10系统上不行,错误图如下

![图片说明](https://img-ask.csdn.net/upload/201601/26/1453792064_131579.png) 请问这是什么情况?

C#ASP.NET连接数据库出现的错误

我的计算机用的是windows8 64位 sqlserver2012设置的是windows身份验证,vs也是2012。 1、ASP.NET连接数据库 配置文件中的代码: <appSettings > <add key ="ConnectionString" value ="server=local;database=db_Vote;integrated security=SSPI"/> </appSettings> 2、但运行时出现下面的错误 找不到网络路径。 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解 有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ComponentModel.Win32Exception: 找不到网络路径。 源错误: 行 40: { 行 41: SqlConnection mycon = GetConnettion(); 行 42: mycon.Open(); 行 43: 行 44: string sqlstr_1 = "insert into db_Vote(Name)values('"+this.TextBox1 .Text .Trim ()+"')"; 源文件: f:\website\在线投票系统\Login.aspx.cs 行: 42 大神们,帮帮忙吧

2019 Python开发者日-培训

2019 Python开发者日-培训

150讲轻松搞定Python网络爬虫

150讲轻松搞定Python网络爬虫

设计模式(JAVA语言实现)--20种设计模式附带源码

设计模式(JAVA语言实现)--20种设计模式附带源码

YOLOv3目标检测实战:训练自己的数据集

YOLOv3目标检测实战:训练自己的数据集

java后台+微信小程序 实现完整的点餐系统

java后台+微信小程序 实现完整的点餐系统

三个项目玩转深度学习(附1G源码)

三个项目玩转深度学习(附1G源码)

初级玩转Linux+Ubuntu(嵌入式开发基础课程)

初级玩转Linux+Ubuntu(嵌入式开发基础课程)

2019 AI开发者大会

2019 AI开发者大会

玩转Linux:常用命令实例指南

玩转Linux:常用命令实例指南

一学即懂的计算机视觉(第一季)

一学即懂的计算机视觉(第一季)

4小时玩转微信小程序——基础入门与微信支付实战

4小时玩转微信小程序——基础入门与微信支付实战

Git 实用技巧

Git 实用技巧

Python数据清洗实战入门

Python数据清洗实战入门

使用TensorFlow+keras快速构建图像分类模型

使用TensorFlow+keras快速构建图像分类模型

实用主义学Python(小白也容易上手的Python实用案例)

实用主义学Python(小白也容易上手的Python实用案例)

程序员的算法通关课:知己知彼(第一季)

程序员的算法通关课:知己知彼(第一季)

MySQL数据库从入门到实战应用

MySQL数据库从入门到实战应用

机器学习初学者必会的案例精讲

机器学习初学者必会的案例精讲

手把手实现Java图书管理系统(附源码)

手把手实现Java图书管理系统(附源码)

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

.net core快速开发框架

.net core快速开发框架

玩转Python-Python3基础入门

玩转Python-Python3基础入门

Python数据挖掘简易入门

Python数据挖掘简易入门

微信公众平台开发入门

微信公众平台开发入门

程序员的兼职技能课

程序员的兼职技能课

Windows版YOLOv4目标检测实战:训练自己的数据集

Windows版YOLOv4目标检测实战:训练自己的数据集

HoloLens2开发入门教程

HoloLens2开发入门教程

微信小程序开发实战

微信小程序开发实战

Java8零基础入门视频教程

Java8零基础入门视频教程

Python可以这样学(第一季:Python内功修炼)

Python可以这样学(第一季:Python内功修炼)

相关热词 c# 按行txt c#怎么扫条形码 c#打包html c# 实现刷新数据 c# 两个自定义控件重叠 c#浮点类型计算 c#.net 中文乱码 c# 时间排序 c# 必备书籍 c#异步网络通信
立即提问