小编ton*_*dee的帖子

XslCompiledTransform.Load()引发System.IO.FileNotFoundException

我的webapp(ASP.NET 2.0)在同一台机器上使用web服务(asmx on 1.1 framework).在获得XML之后,我将其传递给XslCompiledTransformXML以将其 转换为HTML并且工作正常.

昨天我System.IO.FileNotFoundException经常得到一个,不知道是什么原因造成这种问题.

首先看我认为这是关于c:\ windows\temp的读/写权限然后我确保给它网络服务的完全权限(也是最后的所有人-_-!),但它没有帮助.

任何想法或解决方案将不胜感激.

-------------------- stack trace --------------------------
Exception: **System.IO.FileNotFoundException**
**Could not find file 'C:\WINDOWS\TEMP\sivvt5f6.dll'.**

   at System.IO.__Error**.WinIOError**(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 
rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
   at Microsoft.CSharp.CSharpCodeGenerator.FromDomBatch(CompilerParameters options, CodeCompileUnit[] ea)
   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromDomBatch(CompilerParameters options, CodeCompileUnit[] ea)
   at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromDom(CompilerParameters options, …
Run Code Online (Sandbox Code Playgroud)

c# xslcompiledtransform

7
推荐指数
1
解决办法
3731
查看次数

无法连接到 SQL Server 会话数据库

我的 asp.net 应用程序每天都运行良好。直到上个月,我的网络开始出现 2-3 次 Sqlsession 状态服务器的问题,如下所示:

Blockquote System.Web.HttpException 类型“System.Web.HttpException”的异常被抛出。在 System.Web.HttpAsyncResult.End() 在 System.Web.SessionState.SessionStateModule.EndAcquireState(IAsyncResult ar) 在 System.Web.HttpApplication.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) ============ ====================================== 异常:System.Web.HttpException 无法连接到 SQL服务器会话数据库。在 System.Web.SessionState.SqlSessionStateStore.ThrowSqlConnectionException(SqlConnection conn, Exception e) 在 System.Web.SessionState.SqlSessionStateStore.SqlStateConnection..ctor(SqlPartitionInfo sqlPartitionInfo) 在 System.Web.SessionState.SqlSessionStateStore.GetConnection(String id, Boolean& usePooling ) 在 System.Web.SessionState.SqlSessionStateStore。DoGet(HttpContext context, String id, Boolean getExclusive, Boolean&locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actionFlags) at System.Web.SessionState.SqlSessionStateStore.GetItemExclusive(HttpContext context, String id, Boolean&locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actionFlags) 在 System.Web.SessionState.SessionStateModule.GetSessionStateItem() 在 System.Web.SessionState.SessionStateModule.PollLockedSessionCallback(Object state) ====================== ============================ 异常:System.InvalidOperationException 超时。在从池中获取连接之前超时时间已过。这可能是因为所有池连接都在使用中并且达到了最大池大小。在 System.Data.ProviderBase。

然后我开始查看我的会话数据库服务器,并在我的 sql 客户端中执行了“exec sp_who”,结果发现了很多 AspState 操作的记录。

我不知道是什么导致了这种问题,因为我们确实在应用程序中没有改变任何严重的事情,只是修复了一些错误。

以下是我的 Web …

c# sql-server asp.net session-state

5
推荐指数
2
解决办法
3万
查看次数