unauthorized

Reporting Services WS from Java - Getting (401)Unauthorized

We're writing a web application that is trying to replace all ReportManager functionality using calls to Reporting Services SOAP API. We started working with SSRS 2008 and had our Java code working correctly. We've since had to downgrade to SSRS 2005 and now we're having problems connecting to the Server to get the list of reports avai...

Why am I getting a (401) Unauthorized Error in Google Calendar API

Ive been playing around with the Google Calendar API and am getting stuck on something. When i call this below to delete a calendar event it works fine on the first pass and usually the second. However, around the 2nd or 3rd time I call this method I get a (401) Unauthorized error. It uses the same credentials every time. If I get th...

Unauthorized error when surfing to files

Hi, My IIS is configured to use WindowsAuthentication. When I surf to the file: I can see the file perfectly but when i'm checking with charles (http debugger) I see the following result. The problem is that when a browser does this, it will retry (apperantly up to 3 times) but when .NET (spring.net) tries this, it's crashes after ...

Calling webservice in C# using SSL - '(401) Unauthorized'

I'm calling a method on a web service from behind a proxy server using the following code: myWebService.TestWebService webservice = new myWebService.TestWebService(); webservice.Url = "http://test.com/webservice?wsdl"; WebProxy proxy = new WebProxy("1.2.3.4", 8080); proxy.Credentials = new NetworkCredential("username", "password"); web...

How do I set a registry value in Windows Vista using C#?

try { RegistryKey rkApp = Registry.CurrentUser.OpenSubKey( "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); if (rkApp.GetValue("AdobeBitmapViewer") == null) { rkApp.SetValue("AdobeBitmapViewer", Application.ExecutablePath.ToString()); } rkApp.Close(); } catch (Exception) { } This code wo...

UnauthorizedAccessException in Vista from frequent file I/O with .Net 2.0

At work, we have migrated from Windows XP to Windows Vista. After the migration, some of my unit tests, using nUnit, started to randomly fail with the System.UnauthorizedAccessException being thrown. The failing tests each involve writing files used for tests stored as embedded resources in the test DLL to the current directory, runnin...

Impersonating domain user in WPF - UnauthorizedAccess

Hi all, I am trying to impersonate a domain user account in a WPF application so the application can write to a folder on the network. The domain user has sufficient rights to write to this location. I'm using some code found on the net to perform the impersonation. Basically, it calls the native LogonUser method which returns a securi...

Rare and sporadic 401 Unauthorized error with ASMX / WCF web service using Windows Authentication

We have a hybrid WCF and ASMX web service currently being used on a decent sized project. Now, most of time everything works perfectly fine, however on rare occasions and seemingly randomly, the web service begins to block calls which returns a 401 Unauthorized error back to the page in question. It seems to be the ASMX service calls tha...

Saving application data in Windows XP when "Run As" is 'protecting the computer from unauthorized activity'

I'm trying to make it so I can save data from my program when the user is running the applicaiton through run as like through this dialogue box. I'm finding I cant actually write to any folder and read back from it later on. i've tried 'All Users', Application data, My Documents, etc but to no avail. Any ideas how and where I am suppose...

Install EXE as service on Windows 2008 Server

Sorry for bad english. I'm trying to install an executable as a service using instsrv.exe, here is what I tried: instsrv "Gestion1" MROOneService.exe That is the message that i get when trying: "You are not authorized to do this - please contact your system Administrator" Someon can help. Thanks ...

UnauthorizedAccessException cannot resolve Directory.GetFiles failure

Hi all, Directory.GetFiles method fails on the first encounter with a folder it has no access rights to. The method throws an UnauthorizedAccessException (which can be caught) but by the time this is done, the method has already failed/terminated. The code I am using is listed below: try { // looks in stat...

CAC card login not authenticating random users who must user their windows user and pwd

Having an issue with random individuals trying to access an intranet site with a security certificate. Most users are able to simply select their Smartcard/CAC certificate, enter the pin number and then are granted access to the site's pages. However, random individuals enter their pin and then are immediately re-prompted by the IE aler...

Can HyperLinkButton in silverlight navigate a NAS or Local-file uri?

Hi, In my silverlight application I have a section like this: <HyperlinkButton Content="{Binding MediaFile.FileName}" TargetName="_blank" NavigateUri="{Binding ., Converter={StaticResource MediaFileToFullPathConverter}}" Style="{StaticResource HyperLinkButtonStyle}"/> For testing purposes I use local navigation paths to the ui ...

SharePoint custom web service consumption problems - HTTP 401: Unauthorized

I have a custom web service deployed into WSS 3. It has two web methods. The first one returns the version of the loaded assembly without any invocation of the SharePoint objects. The second returns some basic info about the library, something like: var spLibrary = [find library logic]; return spLibrary.Name+"@"+spLibrary.Url; In the...

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

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

Why is my .Net app contacting Verisign?

I wrote a .Net application that has nothing to do with network communication. There is not a single line of code in the whole application that uses the NIC, but my firewall has caught it trying to contact Verisign for some reason when the app starts. This does not happen regularly; as a matter of fact, it has only happened twice. The la...

Web service fails (401 Unauthorized) on one server but not on the other.

I have two identical servers. Both Win2k3. I have a web service that queues emails and an application that consumes that service. Both are hosted on both machines using identical folder structures, permissions, and IIS settings. One is called "test" and the other "prod". Ideally, the app on prod will point to the ws on prod. However, wh...

System.UnauthorizedAccess Exception C#

Hi, I currently have a compiled C# program but whenever I run it I get the Windows encountered a problem error. This is from a System.UnauthorizedAccess error, how can I give access and remove this error without any need from the user side, since this program is being deployed to a lot of people and I don't want them having to make thi...

Detecting Assembly

I want to detect that people with access to the sql server didn't write an unapproved application against a database. I noticed in sql server that the application name comes over in the log. I don't want someone to be able to just look at that name in the log and then name their assembly the same thing. ...

List files user has read access to (ASP.NET)

I am wanting to list all the files in a folder that a user has read access to. The user visits the website and can use Forms Authentication for some aspects of the site (e.g. adding links etc), but I want to list files in a given folder using their Windows Credentials (since I have anonymous access turned off), hiding those they can't re...