创建新表单时出现问题(访问被拒绝) [英] Problem Creating New Form (Access Denied)

查看:81
本文介绍了创建新表单时出现问题(访问被拒绝)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#中有一个大型项目.

该项目可以编译并正常运行.我想添加一个名为ChangeSplash的新表单.我单击项目"->添加Windows表单",然后输入"ChangeSplash",当我单击添加"时,出现以下错误:

进入路径
``C:\ Users \ username \ AppData \ Local \ Temp \ jorpvyte.fbu \ Form.cs''被拒绝.

文件夹jorpvyte.fbu不存在(并且没有隐藏.)

这是一个旧项目,以前没有像这样的问题.
有人有想法吗?

我正在使用Visual Studio2008.

解决方案

我从来没有遇到过这个问题,但是我建议您创建一个新项目并将所有现有文件添加到其中.

您是否检查了是否可以访问此路径(C:\ Users \ username \ AppData \ Local \ Temp)?

如果是这样,您可能只对某些文件夹具有只读权限,这会导致此问题.


在文件路径中,有一个名称jorpvyte.fbu.
互联网搜索似乎指向该文件扩展名作为Firefox备份文件.
创建新文件时,是一个备份程序,试图写入中间有连接点的目录.

如果需要,您可以在此处运行可从Sysinternals网站下载的过程监视器
http://technet.microsoft.com/en-us/sysinternals/bb896645 [ ^ ]

您可以启动procmon,然后尝试添加表单,然后停止procmon并查看跟踪.搜索文件名,它应将您带到引起问题的程序.
您还可以添加一个拒绝访问的过滤器,以缩小范围.
并且,如果您已经知道如何使用它,则还可以使用错误框中的目标,这可能指向问题,或者可能只是为您提供错误报告.
希望这会有所帮助.


I have a large project in C#.

This project compiles and runs fine. I want to add a new form called ChangeSplash. I click Project->Add Windows Form and enter "ChangeSplash" and when I click ADD I get the following error:

Access to the path
''C:\Users\username\AppData\Local\Temp\jorpvyte.fbu\Form.cs'' is denied.

The folder jorpvyte.fbu does not exist (and it''s not hidden.)

This is an old project and hasn''t had any problems like this before.
Anybody got any ideas?

I am using Visual Studio 2008.

解决方案

I never had that problem but I would suggest you to create a new project and add all existings file into it.


Did you check if you have access to this path (C:\Users\username\AppData\Local\Temp)?

If so, you may only have read only permission on certain folders, which is causing this issue.


In the file path there is a name jorpvyte.fbu.
An internet search seems to point to that file extension as a firefox backup file.
When you create the new file is a backup program trying to write to that directory that has the junction point in the middle.

If need be you can run process monitor downloadable from Sysinternals site here
http://technet.microsoft.com/en-us/sysinternals/bb896645[^]

You can start procmon, and then try the add form,then stop procmon and look at the trace. Search for the File name and it should lead you to the program that is causing the problem.
you can also add an access denied filter to narrow it down more.
And if you already know how to use it you can also use the target on the error box,that may point to the problem or may just give you error reporting.
Hope this helps.


这篇关于创建新表单时出现问题(访问被拒绝)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆