access-denied

Access to the path 'c:\\inetpub\\wwwroot\\myapp\\App_Data' is denied

耗尽温柔 提交于 2019-11-30 05:16:52
I just installed IIS on Windows XP. When I try to execute an app, I get an error: Access to the path 'c:\inetpub\wwwroot\myapp\App_Data' is denied. 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.UnauthorizedAccessException: Access to the path 'c:\inetpub\wwwroot\myapp\App_Data' is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request

Granting write permissions to a networked UNC folder for ASP.NET under IIS 7.5 and Windows Server 2008 R2

心不动则不痛 提交于 2019-11-30 02:56:43
BLUF Our application is attempting to write a file to a UNC folder using an ASP.NET web service running under .NET 4.5, IIS 7.5, and Windows Server 2008 R2. However, any attempt to write the file to the desired location results in an access denied exception. The task seems simple however me and my team have been troubleshooting this for a while now and we are stumped as to what may be causing the error. Below are the details of our setup and what we have tried and found so far. Names have been changed to protect the innocent. Environment Setup The web server, mywebserver , has a website named

How to set document.domain for a dynamically generated IFRAME?

ぐ巨炮叔叔 提交于 2019-11-29 23:23:37
I am implementing CodeMirror ( http://marijn.haverbeke.nl/codemirror/ ) on a page where document.domain needs to be declared (because of other IFRAMES on the page). CodeMirror generates a dynamic IFRAME to provide syntax highlighted code editing. The problem is that IE throws up 'Access Denied' (other browsers are fine) at the following piece of code mirror code: this.win = frame.contentWindow; ... var doc = this.win.document; <-- ERROR doc.open(); doc.write(html.join("")); doc.close(); It turns out IE doesn't inherit document.domain from parent IE. I can set document.domain in the IFRAME

Warning and fatal error when using git on windows?

南笙酒味 提交于 2019-11-29 11:56:00
When I want to get the current status or use any git command I will see these two lines of errors: warning: unable to access 'C:/Program Files (x86)/Git': Permissio fatal: cannot use C:/Program Files (x86)/Git as an exclude file Where is the problem ? Thanks in advance! Use an exclude file that exists As indicated by @iltempo's comment - this error occurs because there is a reference to read the file C:/Program Files (x86)/Git which isn't a file or doesn't exist. A global git ignore file is a good idea - after creating one (if you don't already have one) - update the location that git is using

IIS - Access to the path is denied

心不动则不痛 提交于 2019-11-29 09:21:42
This question have been asked like million times, but I have tried those solutions and still can't find out why this error is coming up: Access to the path '\server1\Folder1\Folder2\Folder3\file1.dwg' is denied. Here is the action which returns the error: public ActionResult Download(string fileName) { fileName = fileName + ".dwg"; string path = Path.Combine(@"\\server1\Folder1\Folder2\Folder3\", fileName); return File(path, "application/octet-stream", fileName); } I have tried to giving permissions to "Folder3" for multiple usernames, for example "SERVER1\NETWORK SERVICE" - Full Control.

Kafka: unable to start Kafka - process can not access file 00000000000000000000.timeindex

僤鯓⒐⒋嵵緔 提交于 2019-11-29 05:53:12
问题 Kafka enthusiast, need little help here. I am unable to start kafka because the file \00000000000000000000.timeindex is being used by another process. Below are the logs: [2017-08-09 22:49:22,811] FATAL [Kafka Server 0], Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) java.nio.file.FileSystemException: \installation\kafka_2.11-0.11.0.0\log\test-0\00000000000000000000.timeindex: The process cannot access the file because it is being used by another

How to set document.domain for a dynamically generated IFRAME?

大憨熊 提交于 2019-11-28 20:43:44
问题 I am implementing CodeMirror (http://marijn.haverbeke.nl/codemirror/) on a page where document.domain needs to be declared (because of other IFRAMES on the page). CodeMirror generates a dynamic IFRAME to provide syntax highlighted code editing. The problem is that IE throws up 'Access Denied' (other browsers are fine) at the following piece of code mirror code: this.win = frame.contentWindow; ... var doc = this.win.document; <-- ERROR doc.open(); doc.write(html.join("")); doc.close(); It

How can I access the “Documents and Settings” folder?

大兔子大兔子 提交于 2019-11-28 12:21:07
I'm using C# .NET 4 with VS 2010. When Iterating over some paths, I'm running this line: files = Directory.GetFiles(path, searchPattern); I get an exception when the path is the documents and settings folder. How can I access it? And no, I don't want to skip the folder with a try and catch. I want to be able to access it somehow. Edit: I got a follow up question. As I told you, I'm iterating over the paths. Is there a way to use Environment.GetFolderPath but somehow idetifying the correct speical folder according to the path I'm currently checking? Saravanan You have to use like this var

Getting “java.nio.file.AccessDeniedException” when trying to write to a folder

拜拜、爱过 提交于 2019-11-28 11:52:17
For some reason I keep getting java.nio.file.AccessDeniedException every time I try to write to a folder on my computer using a java webapp on Tomcat. This folder has permissions set to full control for everyone on my computer (Windows). Does anybody know why I get this exception? Here's my code: public void saveDocument(String name, String siteID, byte doc[]) { try { Path path = Paths.get(rootDirectory + siteID); if (Files.exists(path)) { System.out.println("Exists: " + path.toString()); Files.write(path, doc); } else { System.out.println("DOesn't exist"); throw new Exception("Directory for

Request admin privileges for Java app on Windows Vista

╄→гoц情女王★ 提交于 2019-11-28 08:38:17
When I try to create a new task in the task scheduler via the Java ProcessBuilder class I get an access denied error an Windows Vista. On XP it works just fine. When I use the "Run as adminstrator" option it runs on Vista as well.. However this is a additional step requeried an the users might not know about this. When the user just double clicks on the app icon it will fail with access denied. My question is how can I force a java app to reuest admin privileges right after startup? I'm not sure you can do it programmatically. If you have an installer for your app, you can add the registry key