公布到服务端没有毛病,没非常啊

Server Error in ‘/Website1’ Application.


Server Error in ‘/xxx’ Application.


 

There is not enough space on the disk.

Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.
Exception Details: System.IO.IOException: There is not enough space
on the disk.
Source Error:

Line 118:
Line 119:        string newFile = Server.MapPath(InsusBase.TemporaryDirectory + newFileName);
Line 120:        FileUpload1.SaveAs(newFile);
Line 121:
Line 122:        try

Source
File:

D:\IntranetSites\xxx\System\SiteMgt\VideoMedia\澳门正规网上娱乐,Media.aspx.cs   
Line:
120
Stack Trace:

[IOException: There is not enough space on the disk.
]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +9723522
   System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count) +9545638
   System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count) +146
   System.Web.HttpRawUploadedContent.WriteBytes(Int32 offset, Int32 length, Stream stream) +128
   System.Web.HttpInputStream.WriteTo(Stream s) +36
   System.Web.HttpPostedFile.SaveAs(String filename) +114
   System.Web.UI.WebControls.FileUpload.SaveAs(String filename) +23
   System_SiteMgt_VideoMedia_Media.btnAdd_Click(Object sender, EventArgs e) in D:\IntranetSites\xxx\System\SiteMgt\VideoMedia\Media.aspx.cs:120
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
   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) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Version
Information:
 Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.272

 

明日用户上传培养和操练课程录制,都事业有成上传了多少个200多MB大的文件,传至第四个时,出现上面包车型地铁一无所长提示。 此站点在支付时,测试是能够允许上传2GB或以内的大文件。为啥有此难点啊?
当时把服务器的站点程序布置于本机。上传测试,1.65GB大的文书,也能成功上传。没有毛病啊?

如下是web.config的配置:
澳门正规网上娱乐 1

 

出于本机能测试成功,三种情形能够猜测,一是互连网难题,二是服务器难点。前者就像没有悬疑,后那者呢?从哪动手?
检查服务器磁盘空间,那展现还有319GB的Free。怎会展现System.IO.IOException:
There is not enough space on the  disk.? …
时间到了晚上收工,不管怎么样,先去用餐,然后半个时休息,但此难题还从未缓解,休息的身分是很差的,脑筋依然想起这么些题材。

 

反省上传至服务器的一时文件,出错的文本只好上传67,040KB,被截除了。其他的上传的,全是0KB。
澳门正规网上娱乐 2

莫不是用户磁盘空间的界定?
要是是的话,是这一个用户呢?对于站点的话,应该是匿名用户。
打开磁盘分配空间,果然:
澳门正规网上娱乐 3

出于那是Intranet网站,服务器设置了磁盘使用空间,全部用户暗许为1.5GB。把此用户的磁盘空间设置更大之后,问题也消除了。

 

Must declare the scalar variable “@Author”.

Description: An unhandled
exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and
where it originated in the code.

Exception Details:System.Data.SqlClient.SqlException: Must declare the scalar
variable “@Author”.

Source Error:

Line 29:     private void Data_Binding()
Line 30:     {

Line 31: this.GvCycleCountFile.DataSource = objCycleCountFile.GetCycleCountFileByAuthor(InsusBase.SystemId);

Line 32:         this.GvCycleCountFile.DataBind();
Line 33:     }

Source File:d:\IntranetSites\ERP\System\SyteLine\PhysicalTag\CycleCountSheet.aspx.cs Line: 31

Stack Trace:

[SqlException (0x80131904): Must declare the scalar variable "@Author".]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +2030802
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5009584
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2275
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33
   System.Data.SqlClient.SqlDataReader.get_MetaData() +86
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +311
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +987
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +10
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +144
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +319
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +94
   Insus.NET.Base.ExecuteProcedure(String procedureName, DataSet& dataSet, SqlParameter[] prams) +189

[Exception: Must declare the scalar variable "@Author".]
   Insus.NET.Base.ExecuteProcedure(String procedureName, DataSet& dataSet, SqlParameter[] prams) +253
   Insus.NET.BusinessBase.GetDataToDataSet(String procedureName, Parameter[] sqlParameter) +326
   Insus.NET.CycleCountFile.GetCycleCountFileByAuthor(String author) +88
   System_SyteLine_PhysicalTag_CycleCountSheet.Data_Binding() in d:\IntranetSites\ERP\System\SyteLine\PhysicalTag\CycleCountSheet.aspx.cs:31
   System_SyteLine_PhysicalTag_CycleCountSheet.Page_Load(Object sender, EventArgs e) in d:\IntranetSites\ERP\System\SyteLine\PhysicalTag\CycleCountSheet.aspx.cs:23
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

 


 

Version Information:
Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

 

软件在开发端没非常,发表到服务端没不通常,但付出客户有标题,出现如上错误。末了检查得出结果,开发与测试时都是使用管理员的权能去做测试,当然通过总体绊脚石。

能够见见上边那些蕴藏进程,当用管理员去run时,它只跑IF节,从没有机会跑过ELSE部分的代码,现交给到客户了,用户使用其余权限去跑,难题出来了:

 澳门正规网上娱乐 4

 

动态变量@Author不能够被组合成的sql所识别。Insus.NET把它修改一下:

EXECUTE(@sql + ‘ WHERE [Author] = ‘ + @Author +’ ORDER BY [CreateDate] DESC’)

 

得出结论,软件开发,是用户使用以往,才会发觉难题。