unauthorized

VB.NET: GetFiles Method - "Access to the path 'G:\System Volume Information' is denied."

Here is my code, Dim allFiles As FileInfo() = tempDir.GetFiles("*.pdf", SearchOption.AllDirectories) I've googled and found that I need to change the permissions of my app from Project properties > View UAC Settings > and change level to level="requireAdministrator" But its also not working. I found somethi...

Authorization and Jquery dialog problem.

Hi, I have a little problem with a Jquery dialog for an action that requires a role. In my example, the user can click on a delete button and must confirm the action. In my controller, the Delete action requires a role, if the user is in the required role, the object is deleted. The problem: How to alert the user if * the element was d...

asp.net mvc 2 Change redirection of unauthorized actions

Solution is called Portal which holds Areas/CMS/Login folder inside it. Login controller in CMS/Controllers is almost the same as AccountController in Portal solution. I customized Login and it works all fine except one thing: When I use [Authorize] filter and If user is not logged in than he is redirected to http://localhost:1177/Accoun...

ASP.NET Page Unauthorization for common pages

Hi I am developing a web application which has form based authentication. All pages needs to be authenticated except AboutUs and ContactUs pages. I configured everything correct except AboutUs and ContactUs pages. Since I am denying all users in authorization section, application is redirecting even if the customer browse AboutUs and C...

SSRS 2008 R2 upgrade - webservice access issue - 401 unauthorized

we have upgraded to SSRS 2008 R2 from a SSRS 2008 instance. This was an upgrade in-place and so the reports and datasources were brought over to the new instance. from the application side (asp.net), we use the SSRS Webservice (ReportService2005.asmx) to makes calls such as ListChildren, GetPolicies to handle some application specific ...

How do I modify my settings to allow VS2010 to load 3rd party XSD files from the "Unauthorized Zone"?

I have opened a 3rd party XSD file in Visual Studio 2010 that imports namespaces from other schema files from the same 3rd party. In the XML editor view of the schema file, the xs:import element is underlined with the following error: Request for the permission of type 'System.Security.Permissions.FileIOPermission', mscorlib, Version=4....

WebView.setHttpAuthUsernamePassword() not working?

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 emulato...

how to ensure that our site authenticates with kerberos

I am working with HttpWebRequest in dotnet. I am using delegation (impersonation) to do this, request.Credentials = CredentialCache.DefaultCredentials; request.ImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Delegation; in webconfig file identity impersonate="true" for Impersonation Kerberos is required... So ...

Posting a status to Twitter. browser vs. code

I am trying to post a status update to Twitter. I wrote an API call so that when I do http://.....&token=$token&s=$token_secret&msg=hello ...it works fine when I type the URL into the browser. The status is posted correctly. However, when I want to post the status via file_get_contents($url) where the $url is the same as...

IIS7 - 401 Unauthorized error while reading external xml file from a swf (flash)

Hello all, I am getting a 401 unauthorized error when I try to read an XML file from a flash SWF file in IIS7. The file is located right next to the SWF file in the file system. When I browse to the XML file through the browser, I get the following: HTTP Error 401.3 - Unauthorized You do not have permission to view this director...

unauthorizedaccessexception for a "MessageBox" in SilverLight

Hi eberybody, I have this piece of code in my Silverlight project: private void button1_Click(object sender, RoutedEventArgs e) { string baseUri = "http://foo.bar"; HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(new Uri(baseUri)); request.BeginGetResponse(new AsyncCallback(ReadCallback),request); } private v...

Calling SharePoint Web Service over SSL in VB.Net (401 Unauthorized)

I'm trying to call the AddAttachment of the Lists.asmx SharePoint web service the below code works fine if I'm calling the web service over HTTP. Dim img(MyFile.PostedFile.ContentLength - 1) As Byte MyFile.PostedFile.InputStream.Read(img, 0, img.Length) 'Dim fStream As FileStream = File.OpenRead(FullFileName) ...