Access Denied Error in SHarepoint 2010 - sharepoint

When deploying asolution containing webparts to a Sharepoint 2010 webite I get the following error message:
Add Solution:
Adding solution 'User_Controls.wsp'...
Deploying solution 'User_Controls.wsp'...
Error occurred in deployment step 'Add Solution': Access to the path 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\CONTROLTEMPLATES\MyProject\CompanyInformation.ascx' is denied.
When I try to access the MyProject folder through windows explorer I can't see the contents and get an access denied error:
[Window Title]
Location is not available
[Content]
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\Toyota is not accessible.
Access is denied.
[OK]
Can anyone help please?

Maybe you are deploying a Sandbox solution and not a Farm Solution.
Edit: if you can try making iisreset and try deploying again.

Can you check whether there is read permission given to everyone for the physical folder 'ControlTemplates' or 'MyProject' ? If not, you can assign permissions and redeploy the solution.

To perform farm wide operations (like adding and deploying solutions) you should be member of administrators group on the machine. Note that you may need to "run as administrator" to have required permissions.

Related

Access Local Files from IIS "silverligh"

In a silver-light application I'm using to the following code in my Visual Studio development environment
it works fine
FileStream file = new FileStream(#"D:\OP20TS.jpg", FileMode.Open);
but when publish website on iis it give me
File Operation to not permitted Access to path D:\OP20TS.jpg is denied
I have tried to give IIS full permission to the path but not work how to handle this point
Thanks in advance

msdeploy stop working, getting error Code: ERROR_USER_NOT_ADMIN

I am using msdeploy to deploy codes to dev server. this morning it stops working. and I am getting ERROR_USER_NOT_ADMIN. nothing changed, at least not that I know of.
abc\jqin, this user is a domain account, its a local admin. why am I still getting ERROR_USER_NOT_ADMIN
Deploy: "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
-verb:sync -source:package="C:\NetBuild\Packages\IRViewerSvc\IRViewerSvc.zip" -dest:iisApp=IRViewerSvc,computerName=tvw-irwebsvc,username="abc\jqin",password=********
Info: Using ID '51e98b9d-456e-4c7e-8f1a-c696c240f431' for
connections to the remote server. EXEC : error Code:
ERROR_USER_NOT_ADMIN [C:\NetBuild\BuildScript\IRViewerSvc.build]
More Information: Connected to 'tvw-irwebsvc' using the Web Deployment
Agent Service, but could not authorize. Make sure you are an
administrator on 'tvw-irwebsvc'. Learn more at:
http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_ADMIN.
Error : The remote server returned an error : (401) Unauthorized.
[C:\NetBuild\BuildScript\IRViewerSvc.build] EXEC : error count: 1.
[C:\NetBuild\BuildScript\IRViewerSvc.build]
C:\NetBuild\BuildScript\IRViewerSvc.build(71,5): error MSB3073: The
command ""C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
-verb:sync -source:package="C:\NetBuild\Packages\IRViewerSvc\IRViewerSvc.zip" -dest:iisApp=IRViewerSvc,computerName=tvw-irwebsvc,username="abc\jqin",password=********"
exited with code -1. Done Building Project
"C:\NetBuild\BuildScript\IRViewerSvc.build" (deploy target(s)) --
FAILED.
Try search mmc and run it click on File add or remove snap-ins, select Local Users and Groups hit ok.
Click on the User uncheck everything and check only Password never expires.
Now go to Groups add new group if it does not exists MSDepSvcUsers, Double click on it and add your User as a member.
Go to Services and restart the Web Deployment Agent Service.
Now try and run your MSDeploy.
I hope this was helpful.
Trosago
The NetLogon solution posted here didn't work on our AWS EC2 Windows Server 2019 instances because of the following:
This computer is configured as a member of a workgroup, not as a member of a domain. The Netlogon service does not need to run in this configuration.
The MSDepSvcUsers solution posted here didn't work completely either:
[16:19:20] Error: (2/10/2020 5:19:20 PM) An error occurred when the request was processed on the remote computer.
[16:19:20] Error: An error occurred when reading the IIS Configuration File 'MACHINE/REDIRECTION'. The identity performing the operation was 'EC2AMAZ-ABCDEFG\SomeUserName'.
[16:19:20] Error: Filename: \\?\C:\Windows\system32\inetsrv\config\redirection.config
[16:19:20] Error: Cannot read configuration file due to insufficient permissions
As noted here: https://social.msdn.microsoft.com/Forums/vstudio/en-US/083efb2e-d087-4a03-9f6a-662a218cacf8/machineredirection-error?forum=tfsgeneral
Adding the Read & execute and Read access to the folder containing the redirection.config file for the user doing the deploy didn't fix the issue, but adding read permissions for the NETWORK SERVICE user on that same folder did.
I recently encountered an interment problem where builds were failing with ERROR_USER_NOT_ADMIN.
This was after an OS upgrade to Windows 2016.
The error from MsDeploy was not entirely correct in our situation and we noticed that if the deployment user was remoted onto the server the deploy would complete successfully.
Upon looking at the event log I noticed that there was an error stating that the deployment account failed to logon with a reason 'The NetLogon component is not active.'
Sure enough, the NetLogon service was stopped. Starting it meant the deployments worked again.

warning 21 warning failed to move file

i am using web sites developed in Joomla and i have hosted in my IIS 7 local server (Win Server 2008) and the website is live, but when client login to my website and try to upload file, they get the error warning 21 warning failed to move file
I went to Site -> Global Configuration, There i found the path of my logs and tmp are c:/xampp/htdoc/site/tmp & c:/xampp/htdoc/site/logs respectively.
please help me whats wrong with my configuration.
thanks in advance
You need to set the permission of folder where you want to store your file. Set the permission of that folder 777. You need to set 777 permission to these folder:
tmp
logs
Folder , where you need to save your file.
Hope this will help you.

Symlink created with mklink not working with IIS7.5 -- Windows 7

So while in my IIS root directory (c:\inetpub\wwwroot) I've created a symlink to a network drive using:
mdlink /D truthuniversal "U:\Truth Universal Full Site\public"
The symlink was created just fine, and if I issue the cd truthuniversal command, while in the IIS root dir, I do indeed end up in the "U:\Truth Universal Full Site\public" directory area.
My problem is that when I type:
http://localhost/truthuniversal
in my browser's address bar IIS does not serve the index page which resides in the public directory. Instead, I get the following error:
Server Error in Application "DEFAULT WEB SITE"
Internet Information Services 7.5
Error Summary
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Please advise.
-TU
You need to create a virtual directory mapping to that directory in IIS in order for it to serve up the page. In IIS, right click on "Default Website", then click "Add Virtual Directory". Also, doing this, there is no reason why you even need the symlink. Just map it to the target to begin with.
I agree that virtual directory in IIS may be what you want, but if you want to minimize IIS maintenance, consider this:
Instead of directory symbolic link: mklink /D
try directory junction: mklink /J
This worked for me and the web apps are able to write to the same directory.
mklink /J App_Data d:\shared\App_Data
worked for me on Windows Server 2008 R2.

msdeploy IIS 6 to 7 migration issue

I am trying to view the dependencies of my website on IIS 6.0 running on windows server 2003. When I type the following command,
msdeploy -verb:getDependencies -source:metakey=lm/w3svc/1
I got the following error:
C:\Program Files\IIS\Microsoft Web Deploy>msdeploy -verb:getDependencies -source
:metakey=lm/w3svc/1
Error: Object of type 'metaKey' and path 'lm/w3svc/1' cannot be created
Error: The metabase key '/lm/w3svc/1' could not be found.
Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Error count: 1
Can any one explain these to me?
check if a website with Site ID 1 exists (/lm/w3svc/1)
Click on Web Sites node in left pane and check identifier column in right pan (IIS 6)
usman has it... and no, logging in as administrator doesn't take care of running the console in administration mode. Even if you're logged in as an administrator (or THE administrator) you still have to run the console in administrator mode.

Resources