unauthorized

Microsoft Access required for C# database access on end-user machines?

江枫思渺然 提交于 2019-12-12 21:19:36
问题 Silly question, perhaps. I've developed an app on my machine that uses a Microsoft Access database (.mdb) to access certain information and populate a table with monitoring data using OLEDb. The application works fine on my machine, but when I put the release on test machines (without MS Access), it crashes. Interestingly, if I were to launch the application on the testing machine with the database filename just renamed, it loads like it should albeit without the data. I seem to get an

ignore “Unauthorized Access” “ function Directory.GetDirectories()”

坚强是说给别人听的谎言 提交于 2019-12-12 19:06:41
问题 When I scan The Directory in C:\\users\\<SomeUserName>\\* In some Directory i have no access i search a lot how to ignore "Unauthorized Access" Now i need Help :/ Here is my code: public void encryptDirectory(string location, string password) { //extensions to be encrypt var validExtensions = new[] { ".txt", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".odt", ".jpg", ".png", ".csv", ".sql", ".mdb", ".sln", ".php", ".asp", ".aspx", ".html", ".xml", ".psd" }; string[] files = Directory

WebView.setHttpAuthUsernamePassword() not working?

我的未来我决定 提交于 2019-12-12 04:27:14
问题 I am developing part of an Android application that needs to use a WebView to open a password protected site. I am using SharedPreferences to provide the username and password from when the user logs in the app for the first time. I've tested the credentials it's returning, so I know that those are correct. When I run this in the emulator, the site says that I'm unauthorized (even though I am). Here's the code: setContentView(R.layout.browser); WebView browser = (WebView) findViewById(R.id

Getfiles() UnAuthorizedAccessAcception in WIN7

て烟熏妆下的殇ゞ 提交于 2019-12-11 09:00:48
问题 Problems UnAuthorizedAccessException: When searching a directory recursively such as C:\ A "Access to the path 'c:\Documents and Settings\' is denied." Occurs even with UAC Priveledges upgraded & Administrator group access. Attempted Methods Try & Catch: Using either one of these methods(Exception, UnAuthorizedAccessException, Blank Catch, continue) Questions How do you handle this kind of exception and continue running your program as normal? This needs to work both on non-admin and

HttpWebRequest 401 error

回眸只為那壹抹淺笑 提交于 2019-12-11 06:26:21
问题 I am developing an intranet application (Windows Authentication) which download report stream from reporting server then save it as a file. When I ran it in debuging mode it works fine。 The code is as below: HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); req.UseDefaultCredentials = true; HttpWebResponse response = (HttpWebResponse)req.GetResponse(); Stream fStream = response.GetResponseStream(); However after I deployed it to the server, it won't get response rather than getting

remote server returned an error: (401) unathorized in C# GCM response

烂漫一生 提交于 2019-12-11 06:25:47
问题 I have seen this question posted in a thousand places and I have tried all the solutions that have worked for others but I am not able to get this to work for me. I used this post as my baseline for the project that Im using (Unauthorized when calling Google GCM). I have tried both the API key and the browser key with no success. Here is my code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using

No access permission for App_Data

妖精的绣舞 提交于 2019-12-10 23:38:42
问题 I am finishing my web project and have added a little error log feature. It writes details of exceptions in a dated file in the App_Data folder. When I do this on my development machine, it works. But when I switch over to my IIS machine, it stops working and I get a UnauthorizedAccessException. Stack Trace: [UnauthorizedAccessException: Der Zugriff auf den Pfad "c:\inetpub\wwwroot\App_Data\Error_Logs\" wurde verweigert.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

Let's Encrypt unauthorized 403 forbidden

若如初见. 提交于 2019-12-09 19:11:58
问题 On the server, Nginx is installed. Let's Encrypt is working well with www.domain.com but is not working with static.domain.com With PuTTY, when I enter : sudo letsencrypt certonly -a webroot --webroot-path=/var/www/site/domain -d static.domain.com -d domain.com -d www.domain.com I have the below issue : Failed authorization procedure. static.domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://static.domain.com/.well

mvc6 unauthorized results in redirect instead

非 Y 不嫁゛ 提交于 2019-12-09 05:27:56
问题 I have been trying to prevent the redirect when I return an NotAuthorized IActionResult from a Controller, but regardless of my attempts, NotAuthorized gets translated to a Redirect. I have tried what is mentioned here (same issue, using older beta framework, I use 1.0.0-rc1-final). I do not have the Notifications namespace (has been removed in rc1-final). This is my Login Controller: [HttpPost] [AllowAnonymous] public async Task<IActionResult> Login(LoginViewModel model, string returnUrl =

Confluence REST API Authorization issue

∥☆過路亽.° 提交于 2019-12-08 06:03:53
问题 I am having issues with Atlassian Confluence REST API authentication. Please take a look at following C# code : private string USERNAME = "test"; private string PASSWORD = "test"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://xxx.atlassian.net/wiki/rest/api/content?os_authType=basic&spaceKey=DEV&Title=Development&expand=space,body.view,version,container"); request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(USERNAME +