起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1971|回复: 3

[结贴] .Net环境图片上传问题 “正由另一进程使用,因此该进程无法访问此文件。”

[复制链接]

17

主题

48

帖子

82

积分

初级会员

Rank: 2

积分
82
QQ
发表于 2017-4-24 00:28:03 | 显示全部楼层 |阅读模式


[IOException: 文件“F:\Wex5\WeX5_V3.6\data\attachmentSimple\undefined\C78044D4480000016B1F18F299C01CAD”正由另一进程使用,因此该进程无法访问此文件。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +895
   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) +886
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +144
   System.IO.FileStream..ctor(String path, FileMode mode) +91
   justep.SimpleFileStore.GetFile(HttpRequest request, HttpResponse response) +372
   justep.SimpleFileStore.service(JObject paramObject, ActionContext context) +287
   wallet.Attachment__do.simpleFileStore(JObject paramsObject, ActionContext context) +279

[SystemException: 文件“F:\Wex5\WeX5_V3.6\data\attachmentSimple\undefined\C78044D4480000016B1F18F299C01CAD”正由另一进程使用,因此该进程无法访问此文件。]
   wallet.Attachment__do.simpleFileStore(JObject paramsObject, ActionContext context) +437

[TargetInvocationException: 调用的目标发生了异常。]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +128
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +146
   com.justep.baas.action.Engine.ExecAction(String actionPath, JObject paramObject, ActionContext context, Assembly assembly) +261

[ActionException: 获取Class[wallet.Attachment__do]失败]
   com.justep.baas.action.Engine.ExecAction(String actionPath, JObject paramObject, ActionContext context, Assembly assembly) +444
   baas.ActionHandler.ExecService(HttpRequest request, HttpResponse response, Assembly assembly) +80

[ActionException: 执行Action:/baas/wallet/attachment/simpleFileStore失败,获取Class[wallet.Attachment__do]失败]
   baas.ActionHandler.ExecService(HttpRequest request, HttpResponse response, Assembly assembly) +571
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +508
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92
发表于 2017-4-24 10:39:11 | 显示全部楼层
文件存储的地址中出现了undefined
说明 你的data组件中 id列的值是空的!
这个是不允许的!上传附件的时候id列绝对不能为空
http://docs.wex5.com/wex5-ui-question-list-2087
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

17

主题

48

帖子

82

积分

初级会员

Rank: 2

积分
82
QQ
 楼主| 发表于 2017-4-24 10:53:21 | 显示全部楼层
为什么是undefined 哪里需要设置吗?
回复 支持 反对

使用道具 举报

17

主题

48

帖子

82

积分

初级会员

Rank: 2

积分
82
QQ
 楼主| 发表于 2017-4-24 11:05:59 | 显示全部楼层
已处理
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-10-1 17:40 , Processed in 0.059265 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表