.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Access Denied error when attaching VS2008 workflow debugger to 64-bit IIS if VS2008 user differs fro

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :WPF
I am trying to attach VS2008 to debug a workflow hosted in IIS (using the workflow debugger option so I can step through the visual workflow designer breakpoints, not the managed code debugger).  It is actually a WF 3.5 WCF workflow service hosted in IIS but I don't think that is the issue.  When I attach from VS2008 I always get the error "Unable to attach to process.  Access is denied."

I can attach for managed code debugging no problem.  Also, if I configure the IIS worker process app pool to use the same account as the account I am running VS2008 under I can attach not problem and debug using the workflow debugger.

So my remaining problem is that I would like to be able to attach while running VS2008 as my normal user account and leave the w3wp.exe app pool running as the usual networkservice account so that my debugging represents how the w3wp.exe will act in production.  I'm on Vista SP1 64-bit with .Net 3.5 SP1 and VS2008 SP1. 

Q: Is there a special privilege I can grant the worker process account so that I can debug while using a different user account?

I saw a very old post here http://blogs.msdn.com/sonalic/archive/2006/05/10/594703.aspx that hinted there is something special for 64-bit.  Does anyone know if there is something special about 64-bi

View Complete Post

More Related Resource Links

Access Denied/The workflow could not copy the item workflow error after Sharepoint 2010 upgrade

We have a sharepoint designer workflow that copies a document from one library to another on the same site.  Before the upgrade to 2007 it worked fine, but now with 2010 it gives an error and cancels the workflow when it gets to the copy list item step.   The error on the workflow page: The workflow could not copy the item. Make sure the source and destination lists have the same columns and column settings.  Access Denied   Specifically it is the "copy list item current item to documentlibrary" sharepoint designer workflow action.   I have given the system account full permissions to the library and double checked that all columns are the same in both libraries. These are the verbose trace logs:   09/01/2010 09:46:04.05 w3wp.exe (0x17C4) 0x093C SharePoint Foundation Workflow Infrastructure 72er Medium System.UnauthorizedAccessException: <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied. at Microsoft.SharePoint.SPFile.UpdateInternal(Boolean migrationSemantics, Boolean reGhost) at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitCopyFile(Transaction txn, Object[] transData) 09/01/2010 09:46:04.05 w3wp.exe (0x17C4) 0x093C SharePoint Foundation Workflow Infrastructure 72fe High Error in commiting pending workflow batch items: Sys

Custom VS2008 Workflow "An error has occured in Workflow" - Error Occured


The problem: a custom workflow associated with InfoPath form in a document library on SharePoint 2007 fails to fire on the new server. We get "Error Occurred" as workflow status every time.  History Logs are not informative, here's one example:


Travel Workflow

Access Denied error on custom workflow task list item


We have created a two level custom approval workflow on (an InfoPath) form library using SharePoint Designer (SPD) with first and second approver. The workflow works fine as long as the approver is in the Site Collection Administrators group. The approvers who are not in the admin group can get to the custom Task form for approve/reject, but they can only view the form. When they click on the “Edit Item” button of the task list item, they receive “Access Denied” error. We have given these approvers “Approve”, “Contribute” permissions on the Form library and even Full Control on the task form list (all items). Note: The users use their domain account and the error they are getting is: Access Denied, You are currently signed as DomainName\LoginName, Sign in as a different user.

We have read through several forums and have found people having the same issue. We tried all of the suggestions described in the following links - but no success so far.

SharePoint Designer Workflows, Tasks, and the Annoying “Access Denied” Error

Access Denied error


I have read several posts where this access denied to path ex.('c:\test' ).  The only way I got this to work was adding <identity impersonate> using my credentials in the web.config file but I don't want to use my credentials all the time.  I have Windows as the authentication mode so why doesn't it work without supplying my credentials?  I tried giving Network Service account write permissions to the folder but that doesn't work either.

Access denied when user clicks refresh BDC column button

Access denied occurs with any non Site Collection Administrator regardless of rights.  It only occurs in this site collections, others they are able to refresh.  In this particular collection they can add a BDC column to a list, edit an item and place/resolve a value in the bdc col; but when they refresh they are given an acess denied.  Any thoughts on what they need read access to?  This goes away if I give site admin privs (dont want to do that) or give them read only access on the web application (dont want to do that either).

"[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied error for a sched

Hi Guys, The subject of this question is the error which I am receiving when running a scheduled job also this is an error which we get at a random intervals and the frequency would be once or twice in a month. I have been through several posts and didn't concluded anything out of it. At the time when we receive this error the memory usage of the database was normal with free resources available and also the network was stable without issues. Our Sql database is in cluster mode with named instance. Can anyone share some information on this, I know this is not the right forum with the error message I have posted but am sure some one might have face the same problem when running some ETL jobs. Source and target both are sql server and the error message is generated in the validation phase of the connection manager connecting to target database. SSIS 2005 SP2 64 bit environmentRaju

Error: Access Denied with WCF (webHttpHandler)

Hi, I have build a WCF webservice and added it to a sharepoint solution. This works fine. but I also want to be able to consume the service with ASP.NET Ajax (javascript). I modified the config file and added an other endpoint that uses webHttpBinding and also uses the webScriptBehavior. the basicHttpBinding and the webHttpBinding both use clientCredentialType ="Ntlm". When I type in my URL http://{server}/myService.svc I see my service. But when I want to download the jsDebug, with the URL http://{server}/myService.svc/javascript/jsDebug, I get: Error: Access Denied from SharePoint (_layouts/AccessDenied.aspx?Source..) does anyone have a suggestion how to fix this? this is what my config file looks like:   <configuration> <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled ="true"/> <bindings> <basicHttpBinding> <binding name ="customBasicHttpBinding"> <security mode ="TransportCredentialOnly"> <transport clientCredentialType ="Ntlm"/> </security> </binding> </basicHttpBinding> <webHttpBinding> <binding name ="customWebHttpBinding"> <security mode ="TransportCredentialOnly"> <transport clientCredentialType ="Ntlm&quo

Uploading a file to a document library produces access denied error, but only on first try.

Hi I have a task which uses a custom form which is part of a custom workflow.  The form incorporates an asp fileUpload control to allow a user to browse for a local file which they can then select and it will be upload a file to a folder in a document library.  The first time this action is performed the folder in the document library will not exist so the code creates a folder and then uploads the file to it. The problem I have is, the first time users try and upload a file the directory is created in the document library as expected, but then the user gets redirected to the standard SharePoint Access Denied page.  If the user goes back to the task list, then loads the task web page again, selects the same file and hits upload, then the file is uploaded fine. All subsequent file uploads work fine after that for all users. Users have Contribute permissions on the document library. The code to do the upload is as follows.  The task has a "CR Number" associated with it, which the directory in the doc library should be called.  It uploads the file to a stream.  Then gets the url of the web and works out the file url and uploads it.  The creation and checking of the folder in the doc library happens in the getDirUrl method. /// <summary> /// Processes an uploaded file. /// </summary> /// <param name="

Object Cache set with Portal Super User accounts. Access denied to site.

I have the same issue on multiple farms. In this example i'll outline this problem for a three tier farm. SharePoint web server SharePoint Application server (hosts central admin) Sql server After installation and configuration i have created two web applications (claims based auth with NTLM). https://portal.contoso.com https://mysite.contoso.com The client connects on the URLs to the web server (1st tier). All is working correctly and they can access the portal and their mysite. The log file keeps reporting that i need to configure the user accounts for the Object Chache. So, i looked up the required steps and executed these conform mcrosoft guidelines (http://technet.microsoft.com/en-us/library/ff758656.aspx) All the steps run seccesfully. But when i connect to the URL i now get an access denied (even with the administrator who is site collection administrator) In the log file i get the following to lines when i connect to the site. Unknown SPRequest error occurred. More information: 0x80070002 Unknown SPRequest error occurred. More information: 0x80070005 I have exact the same issue on two other farms. Marc

Error: Access Denied

Hi , I have a group "XYZ Owner" having "Design, Manage hierarchy,Approve, Permissions" permissions i have one test account in this group, which could not able to update the home page. Means, when i click on "Site action --> edit page", i am getting "Error: Access Denied" Is there any proble in group permission? what could be the problem? Could anyone help me out to solve this issue Regards Pankaj Pawar  

VS2008 Debugger Loading ScriptResources Disables Step Menu

This is a Web Forms Website Project using several Ajax controls I set some break points, then F5, IE loads the .aspx page of the C# source I am trying to debug but then the Solution Explorer opens and adds an item and tree of items labeled Script Documents > Windows Internet Explorer > MyPage.aspx and about a dozen ScriptResource.axd files (including jquery files from a library loaded using absolute referencing which I have commented out in code to determine if jQuery library was causing this wierd behavior). The Debug > Step menu selections are all greyed out and pressing any Function keys does nothing. I also recall script files loaded into IE which "looked" like I was stepping into and over or whatever but that has not been intentionally repeatable. I am very puzzled and need some help understanding how and why this is occurring and what to do about it.

winrm error: access denied

Hi, I want to use winrm. I have Windows 7 installed and configure it for workgroup not domain. Each simple winrm command leads to the error message:   Access is denied Mr. google and several forums told me to: * execute the winrm command just with having administrator rights * to create the DWORD LocalAccountTokenFilterPolicy  [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] and set to 1 * Use Local Security Settings (Secpol.msc) to change the setting of the      "Network Access: Sharing and security model for local accounts" policy      in Security Settings\Local Policies\Security Options to "Classic". * administrator must have a non blank password * first execute      winrm quickconfig I did all those hints. Unfortunatly I still recieve the error "Access is denied" for each even simple winrm command. I need WinRm, I have to fix the problems under my Windows 7. It must work. Please help me and tell me what else must be done, to get it running.     In advance thanks a lot          

CommitChanges - General access denied error

Hi, We are developing a intranet web application through which our users can modify their profile information(in Active Directory). I am getting an error which says like this System.UnauthorizedAccessException: General access denied error at System.DirectoryServices.Interop.IAds.SetInfo() at System.DirectoryServices.DirectoryEntry.CommitChanges() Here is my vb code block --------------------------------------------------------------- Public sPath As String = "LDAP://domainname/OU=OITS,OU=ODI,DC=aa,DC=bb,DC=cc,DC=dd" Dim dsUser As DirectoryEntry = New DirectoryEntry(sPath, "domain/AdminID", "AdminPassword", AuthenticationTypes.Secure) dsUser = dsUser.Children.Find("CN=John") With dsUser.Properties .Item("displayname").Value = "John Doe" End With dsUser.CommitChanges() -------------------------------------------------------------- I am getting the above error while calling CommitChanges. Am I missing anything on ASPNET user account? Any thoughts?

Deploy Reports Error (VS2008) to 2005 ReportServer Db...

Hi, i'm trying to deploy a report made in Visual Studio 2008 to a ReportServer Data Base 2005, but a get this error...   Error 2 The report definition is not valid.  Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2007/01/reportdefinition' which cannot be upgraded.    Is it posible to use a SQL 2005 DB with Rdl's reports 2008   thanks

Error reading .config file in Windows Forms app - Access is denied

I'm attempting to read a connection string from a .config file in a Windows Forms app on a test laptop. A previous version of the application worked just fine, but now I get a configuration exception thrown - "Configuration system failed to initialize." The inner exception message says - "An error occurred loading a configuration file: Access is denied". The user I'm logged in as is in the Administrators group and there's no obvious problems with the config file. The same config file works just fine on my dev machine so it's not an issue with ordering of the XML. Any ideas would be greatly appreciated.If a response to your question is helpful or answers it please mark it as such!

Error reading .config file in Windows Forms app - Access is denied

I'm attempting to read a connection string from a .config file in a Windows Forms app on a test laptop. A previous version of the application worked just fine, but now I get a configuration exception thrown - "Configuration system failed to initialize." The inner exception message says - "An error occurred loading a configuration file: Access is denied". The user I'm logged in as is in the Administrators group and there's no obvious problems with the config file. The same config file works just fine on my dev machine so it's not an issue with ordering of the XML. Any ideas would be greatly appreciated.If a response to your question is helpful or answers it please mark it as such!

SSIS Execute Process Task Give "Access is Denied" error but it is not related to access control.

Hello All - I have a very weired SSIS problem. I am using BIDS in two machines - Windows 7 Professional Edition x64 bit (development workstation) and Windows 2003 Standard Edition x32 bit SP2 (server) . The visual studio version on both the machines are Version 2.0.50727 SP2. I found that my package's ExecuteProcessTask fails with "Access is denied" error in Windows2003 but runs ok in Windows 7 dev box. I then tried to debug the package in the Windows 2003 environment itself. The package failed in debug mode too with the same message. After looking for a while I found that when I shorten the Argument length of the failing ExecuteProcessTask the task did seem to work. So in Windows2003 environment if my argument exceeds 1846 characters the ExecuteProcessTask fails with message "Access is Denied". If the argument string is less than 1846 it works ok. In Windows 7 environment there is no problem at all. It does not seem like access problem but I may be wrong. Has anyone seen this? I will appreciate any reply. Thanks, Niben  
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend