Server Error in '/' Application.

ERROR [HY000] [TCX][MyODBC]Can't create/write to file 'c:\windows\temp\#sql_598_1.MYI' (Errcode: 17)

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.Odbc.OdbcException: ERROR [HY000] [TCX][MyODBC]Can't create/write to file 'c:\windows\temp\#sql_598_1.MYI' (Errcode: 17)

Source Error:


Line 619:	public static dynamic Single(string SQLSelect, string Token = null) {
Line 620:        var CMSDB = Database.Open("CMSODBCConnection");
Line 621:        var Result = CMSDB.QuerySingle(SQLSelect);
Line 622:
Line 623:        // if(Result != null && App.CMSCacheEnabled == true && Token != null) {

Source File: c:\Inetpub\wwwroot\Shared\Custom\_Layout.cshtml    Line: 621

Stack Trace:


[OdbcException (0x80131937): ERROR [HY000] [TCX][MyODBC]Can't create/write to file 'c:\windows\temp\#sql_598_1.MYI' (Errcode: 17)]
   System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) +1232014
   System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod) +1195
   System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader) +67
   System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior) +75
   System.Data.Odbc.OdbcCommand.ExecuteDbDataReader(CommandBehavior behavior) +4
   System.Data.Common.DbCommand.ExecuteReader() +12
   WebMatrix.Data.<QueryInternal>d__0.MoveNext() +158
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +4233344
   WebMatrix.Data.Database.QuerySingle(String commandText, Object[] args) +98
   ASP._Page_Shared_Custom__Layout_cshtml.Single(String SQLSelect, String Token) in c:\Inetpub\wwwroot\Shared\Custom\_Layout.cshtml:621
   ASP._Page_Shared_Custom__Layout_cshtml.GetCMSArticle(String Title, String ParentId) in c:\Inetpub\wwwroot\Shared\Custom\_Layout.cshtml:546
   ASP._Page_Shared_Custom__Layout_cshtml.CMSArticle(String ArticleName) in c:\Inetpub\wwwroot\Shared\Custom\_Layout.cshtml:488
   ASP._Page_Shared_Custom__Layout_cshtml.Execute() in c:\Inetpub\wwwroot\Shared\Custom\_Layout.cshtml:287
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +208
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +68
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +123
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
   System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +225
   System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +12
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +80
   System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +64
   System.Web.WebPages.WebPageBase.PopContext() +265
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +98
   System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +225
   System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +12
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +80
   CallSite.Target(Closure , CallSite , _Page_Browse_cshtml , Object ) +100
   ASP._Page_Browse_cshtml.Execute() in c:\Inetpub\wwwroot\Browse.cshtml:6
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +208
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +68
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +123
   System.Web.WebPages.StartPage.RunPage() +19
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +67
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +121


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