IIS gives 'Access to the path is denied' - NopCommerce - iis

I'm trying to deploy a NopCommerce application on the IIS server. But I'm getting permission errors.
Application startup exception: System.Exception: Plugin 'Eagle360 Dynamics 365 B2B Services'. Access to the path 'C:\inetpub\wwwroot\B2BDemo\Plugins\bin\Plugin.Dynamics365B2B.Services.dll' is denied.
Access to the path 'C:\inetpub\wwwroot\B2BDemo\Plugins\bin\Plugin.Dynamics365B2B.Services.dll' is denied.
I tried many user permissions. but still no luck.

UPDATE
Please follow below steps, and don't worry I just want know whether it will work fine if we use administrator account. If it works, we can make sure, you site and publish file is fine. And this problem is permission issue.
Please try to copy and paste the content to other Drive, like D:/ or E:/.
From your error message, it seems you need add Physical Path Credentials if you don't want to use other Drive.

Related

How to fix 'Access denied - error 403' in a SharePoint-based flow

I'm trying to use the Sharepoint -> Get File Content action in Power Automate, but I'm getting a 403 error - Access Denied. I am using the same login for SPO and Power Automate. I have (for now) hard-coded a file to fetch - I can definitely browse to it, but for some reason I get the error in Power Automate. Is there another permission that I need to be granted to access the same file via Power Automate that I might be missing?
I have tried Get File Content with several different files, and they all give the same result. In each case, I can manually browse to the site/library/folder where the file is and download it, using the same login.
Have you made some changes on the sharepoint permissions?
Have you recreate a new connection to sharepoint in flow connections?
In many cases, an error code of 403 appears in a flow fail because of an authentication error. If you have this type of error, you can usually fix an authentication error by updating the connection,please make sure you have update the connection.
You could refer to link below
https://learn.microsoft.com/en-us/flow/fix-flow-failures
If you have updated the connection and the issue still exists,I afraid that there is some permissions setted in the sharepoint forbid you to access the sharepoint.
Please take a try to contact with the sharepoint administrator to see if you have been access denied in sharepoint.

Read Sharepoint online UserProfiles from sharepoint hosted app using JSOM

I'm trying to get the sharepointonline userprofiles from sharepoint hostedapp by refering the below MSDN
https://dev.office.com/sharepoint/docs/general-development/how-to-retrieve-user-profile-properties-by-using-the-javascript-object-model-in
but when am trying to execute the code it throws the following error "Error: Access denied. You do not have permission to perform this action or access this resource".
In above artical they have mentioned to enter the "domainName\\userName", here am just confused whether which domain I should give either my app domain or my sharepointonline domain.
Since i tried both the domains but the issue remains same.
Anyone please advice...
Thanks in advance
You are getting access denied because your hosted app does not have to required permission to execute user profiles.
On your SharePoint Hosted App solution AppManifest.xml grant the necessary permission for your app to access. In your case it would be:
Depending on your usage you may require to grant it more than just "Read".

Kentico file permissions for image editor

I've given IIS_User modify access and confirmed this on the media disk folder, but i'm still getting a 'Insufficient file system permissions to edit this image.'
Could there be a permission level conflict between IIS_USER and the service level account Kentico is using through the app pool?
Mark, if I understood you correct you are not using IIS_USER as Kentico app pool account. If this it correct - you do not have to grant any permission for it, but only for account configured for Kentico app pool instead.
It can depend on how you set up the site, but what i would do is in IIS hit the "Basic Settings" on the right and see what your app pool is.
If it's a named one, try to right click on the website -> Permissions, and add the user "IIS APPPOOL\TheNameOfTheAppPool" and give full permissions there.
If that user doesn't show up, then try giving the IIS_IUSER full permission, test if it works, if it does then you can start scaling back permissions till it 'breaks' and stops working. If it does't work, then you need to try the other users.

I'm installing an app where I have to give my app_code write permissions. EDIT: Error MSG included

I'm developing a site on a shared hosting company (asp.net/c#). I'm on a Windows 2012 server. I'm using IIS7. I'm trying to install blogengine.net, which requires the app_code folder to have write permissions.
I can find nowhere in my control panel where it lets me grant write permissions anywhere.
Likewise, I see no option for this in IIS7.
Can anybody offer me guidance on how to grant write permissions to the app_code folder if I'm with a shared hosting company? Thanks!
Here's what my shared hosting control panel looks like. But I thought there would be a way to grant write permissions via IIS7:
EDIT:
Here's my specific error:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is
temporarily unavailable.
Most likely causes:
The directory or file specified does not exist on the Web server.
The URL contains a typographical error.
A custom filter or module, such as URLScan, restricts access to the file.
Things you can try:
Create the content on the Web server.
Review the browser URL.
Create a tracing rule to track failed requests for this HTTP status code and see which
module is calling SetStatus. For more information about creating a tracing rule for
failed requests, click here.
Detailed Error Information:
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://domain.org:80/blog/account/login
Physical Path E:\web\controlpanelusername\htdocs\blog\account\login
Logon Method BlogEngine.NET Custom Identity
Logon User Anonymous
I just got an answer back from the hosting company and here's what they said:
"Your IIS and aspnet users are granted full set of permissions on your site root and all subsequent directories by default. Your and your web applications should be able to write to any directory. The permissions of those users cannot be altered, and that's why they are not listed in permissions manager. Permission manager is for additional users that you create in User/Quota Manager only. "
For anybody who has a similar issue, this may be a solution:
I had an IIS7 rewrite rule that was removing .aspx extensions. So if I went to domain.org/about.aspx, it would rewrite to domain.org/about
This was messing up the application I was trying to install. Removing this rewrite rule solved my issue.

sharepoint permissions issues - "Access Denied"

I am trying to replicate a production issue in my dev environment but am running into permissions issues, where a user in the "Contributor" group gets an access denied error. Furthermore, if I make this user a Site Collection administrator he still gets the same access denied error.
Why is this happening? How do I fix?
UPDATE: I do not have a problem when I log in from inside my VM in the dev environment. The problem must be that my dev environment is its own domain. So the question becomes, how can I log in from a machine not in the domain? I'd like to avoid extending the web application if possible.
UPDATE 2: By the way, I'm able to log in the site from my host OS fine when the credentials I use are of the "System Account."
Troubleshooting Access Denied errors is something that plagues me daily... so I feel your pain.
I am assuming this user is trying to access some page in SharePoint. From my experience, if even one Web Part on the page is accessing something the user does not have access to, the entire Access Denied page is shown.
One way to troubleshoot access to the SITE (not the page) is by visiting the "All Site Content" page: /_layouts/viewlsts.aspx. If they can get to this page, then it is something wrong with the page and not the site.
Next I would try exporting and then DELETING (not closing) webparts from the page to determine which one is causing the problem. Since you have a dev environment, I assume you could do another restore if things get too mucked up.
when do they get the access denied error? hitting the site?
are you sure that the user you're adding to the group is the same user you're logging in as? Sometimes if you have multiple user stores you can add different users to the group: DOMAIN\joe.user, forms:joe.user, someotheraccountstore:joe.user, etc.

Resources