“/”应用程序中的服务器错误。

文件“D:\data\测试nginx二级域名泛解析.txt”正由另一进程使用,因此该进程无法访问此文件。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.IOException: 文件“D:\data\测试nginx二级域名泛解析.txt”正由另一进程使用,因此该进程无法访问此文件。

源错误:


行 285:    </div>
行 286:    <!--快三上海特卖-->
行 287:    @Html.Action("RandomProduct", "partion", new { })
行 288:
行 289:</div>

源文件: d:\web\www.gojiaju.com\Views\Base\Furniture\List.cshtml    行: 287

堆栈跟踪:


[IOException: 文件“D:\data\测试nginx二级域名泛解析.txt”正由另一进程使用,因此该进程无法访问此文件。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +893
   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, Boolean useLongPath, Boolean checkHost) +1217
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +144
   System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) +123
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) +103
   System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) +81
   Aibo.Web.Controllers.AiboController..ctor() in D:\workspace\csharp\aibo_old\AiboSolution\Aibo.Web2.0\Controllers\AiboController.cs:62
   Aibo.Web.Controllers.PartionController..ctor(IStoreService storeService, IBrandService brandService, IPraiseService praiseService, IProductCatalogService productCatalogService, IAdGroupService adGroupService, IFurnitureOutletsService furnitureOutletsService, IPanoramaService panoramaService, IFurnitureService furnitureService, IActivityService activityService, IArticleService articleService, IMarketService marketService, IBrandStyleService brandStyleService, IClassificationIndustryService classificationIndustryService, IFranchiseeService franchiseeService, IShoppingCarService shoppingCarService) in D:\workspace\csharp\aibo_old\AiboSolution\Aibo.Web2.0\Controllers\PartionController.cs:55
   lambda_method(Closure , IBuilderContext ) +3109
   Microsoft.Practices.ObjectBuilder2.<>c__DisplayClass1.<GetBuildMethod>b__0(IBuilderContext context) +35
   Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +335
   Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +389
   Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +451

[ResolutionFailedException: Resolution of the dependency failed, type = "Aibo.Web.Controllers.PartionController", name = "(none)".
Exception occurred while: Calling constructor Aibo.Web.Controllers.PartionController(Aibo.Application.IStoreService storeService, Aibo.Application.IBrandService brandService, Aibo.Application.IPraiseService praiseService, Aibo.Application.IProductCatalogService productCatalogService, Aibo.Application.IAdGroupService adGroupService, Aibo.Application.IFurnitureOutletsService furnitureOutletsService, Aibo.Application.IPanoramaService panoramaService, Aibo.Application.IFurnitureService furnitureService, Aibo.Application.IActivityService activityService, Aibo.Application.IArticleService articleService, Aibo.Application.IMarketService marketService, Aibo.Application.IBrandStyleService brandStyleService, Aibo.Application.IClassificationIndustryService classificationIndustryService, Aibo.Application.IFranchiseeService franchiseeService, Aibo.Application.IShoppingCarService shoppingCarService).
Exception is: IOException - 文件“D:\data\测试nginx二级域名泛解析.txt”正由另一进程使用,因此该进程无法访问此文件。
-----------------------------------------------
At the time of the exception, the container was:

  Resolving Aibo.Web.Controllers.PartionController,(none)
  Calling constructor Aibo.Web.Controllers.PartionController(Aibo.Application.IStoreService storeService, Aibo.Application.IBrandService brandService, Aibo.Application.IPraiseService praiseService, Aibo.Application.IProductCatalogService productCatalogService, Aibo.Application.IAdGroupService adGroupService, Aibo.Application.IFurnitureOutletsService furnitureOutletsService, Aibo.Application.IPanoramaService panoramaService, Aibo.Application.IFurnitureService furnitureService, Aibo.Application.IActivityService activityService, Aibo.Application.IArticleService articleService, Aibo.Application.IMarketService marketService, Aibo.Application.IBrandStyleService brandStyleService, Aibo.Application.IClassificationIndustryService classificationIndustryService, Aibo.Application.IFranchiseeService franchiseeService, Aibo.Application.IShoppingCarService shoppingCarService)
]
   Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +551
   Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides) +20
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +61

[InvalidOperationException: An error occurred when trying to create a controller of type 'Aibo.Web.Controllers.PartionController'. Make sure that the controller has a parameterless public constructor.]
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +242
   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +103
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +263
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +77
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +29
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3512
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +131
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +33
   System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +573
   System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +113
   ASP._Page_Views_Base_Furniture_List_cshtml.Execute() in d:\web\www.gojiaju.com\Views\Base\Furniture\List.cshtml:287
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +86
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +88
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +43
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3535.0