Sharepoint 2013 "403 - Forbidden: Access is denied." after deploy simple app - iis

I created a dev site in my Sharepoint farm, then I create a simple "Hello world" app, after the deploy, when I click on my app, I receive the error above.
Any suggestion? I think something related to IIS...
Thanks

SOLVED!
To whom may be useful.
I configured the app domain as a subdomain (following a wiki page on Technet!) instead of a separate domain (as described in Sharepoint 2013 guideline on Technet).
In details the app subdomain was "app.spsvil.local" I replaced with a new domain "appsvil.local" and now it works!

Related

How do I map a URL to a uksouth.cloudapp.azure.com website

I have a website running on Azure: -
e.g. mysite.uksouth.cloudapp.azure.com
I have purchased a domain e.g. www.mysite.co.uk
When I go to https://www.mysite.co.uk I want to display the website mysite.uksouth.cloudapp.azure.com.
I've tried adding an app service in azure, but it gives me the URL https://mysite.azurewebsites.net.
So https://www.mysite.co.uk now brings up a Azure welcome screen asking me to deploy my code.
How do I get https://mysite.co.uk to display https://mysite.uksouth.cloudapp.azure.com?
Thanks.
Ian.
I found this https://learn.microsoft.com/en-us/azure/cloud-services/cloud-services-custom-domain-name-portal#add-a-cname-record-for-your-custom-domain
So I deleted my App Service in Azure, as that's not what I needed and followed the above instructions to configure the DNS for cloudapp.
You have to map your custom domain name to the web app. Below is the Microsoft doc with the steps.
Custom Domain

VS 2019 - run project as application inside web site

I am trying to find a way to test something specific. I am having an issue with a web application to where it redirects to the website and not the web application after being published and deployed to IIS. So to debug the issue i need to set up Visual Studio to have the same structure as IIS. I am integrating with AzureAD and after the login to Azure redirects to the web app, the web app then redirects again. So after AzureAD login, i am at the right URL, but then for some reason get redirected again. So i need to debug.
Example of the issue:
Go to website: https://myurl.com/webApp1/
push button to log in to AzureAD.
redirects to MS Azure login screen.
after successful login to Azure, redirects back to site: https://myurl.com/webApp1/
web app then redirects to website with no app name: https://myurl.com/
Running the site through VS 2019, it is always: https://localhost/
so the issue doesn't happen because it is ok if the site redirects to https://localhost/ at any point.
My question is if there is a way to set up VS to match the structure of IIS? Thank you for any help.
You can debug a Visual Studio application that has been deployed on a different computer(App Service, VM, etc.) using Visual Studio remote debugger.
There are various methods with which you can do that, and it depends on the Tech stack you are using. Pls visit the link above and follow tutorial as appropriate.
Place your breakpoints in the Login flow, and you will be able to debug deployed code and find out the issue.

How to connect to Sharepoint 2010 with Sharepoint Designer when server has multiple SP sites with host headers?

Hi all and sorry for the long title. I've had the management of a SharePoint 2010 farm environment tossed to me and while most things are working one thing is not. None of our users are able to connect to any of the sites in this farm with SharePoint Designer. They all get the dreaded "server could not complete the request" message followed by the eternally helpful MS error message "Object moved. Object moved to here."
I've dug around everywhere I can think to look and the closest explanation I see is that it may have something to do with our SP server hosting 5 SP applications, all with their own host headers. The things I find seem to suggest that Designer won't play with SP servers featuring multiple host headers...but I have to think that can't be the case. SharePoint encourages you to make use of host headers when setting up your applications.
I've tried installing Designer directly onto the server itself: no dice.
I've tried setting up the sites without a host header: sites don't work (and it wouldn't be a permanent fix because the user base this farm serves are barely computer literate so asking them to use IP addresses will be like Armageddon)
I've checked the farm settings to ensure that use of Designer is allowed: it is.
For this intranet instance, we do apparently have 5 separate IP addresses tracking to this box that will eventually host 5 SP applications (if that helps).
I'm a developer and not a server or network admin so any guidance or advice from anyone who's run into this and found a fix would be most welcome.
First of all update Sharepoint Designer and Sharepoint to the latest service pack and do an iisreset and use Sharepoint Designer 2010 for access Sharepoint 2010 Farm.
Enable anonymous authentication for the SharePoint web application in IIS.
See this KB2758431 for more details, this is for Sharepoint 2013 but I think is still valid for 2010.
Set the registry DisableLoopBackCheck entry
Check the ULS Log and Event Viewer for error messages.
Here a little explanation about IIS name resolutions of Sharepoint.
You have to check the DNS, the IIS host header (foreach web site) and settings from the client.
If there are an entry into DNS corresponding to an hostheader of web application you must use this name for accessing the sharepoint web site, try with the FQDN (i.e. if the entry in DNS is Server01 and you are on mydomain.lan you must use for connecting: http://server01.mydomain.lan), check also from your client a ping to the address to see if you reach the server.
If there are no entry into the DNS, add to your hosts file the hostheader of the corresponding sharepoint site and try (same thing as for the DNS, see above).

Team Foundation Server 2010 and Sharepoint Foundation 2010 Integration Error

I followed most of the suggestions that I found online but I still got this error when I start integrating TFS and SP
I dont have firewall thats why it does not make sense, any idea why this is happening. My settings on Sharepoint Web Applications is
I also get this error when I create a Sharepoint Page for my project
Server was unable to process request. ---> TF250029: No user was found within the context of a Web site. Verify that the site does not allow anonymous access.
but I dont allow anonymous access to my website. Any ideas?
It worked by removing the anonymous access on IIS to the sharepoint site

IIS server problem please have a glance

after deploying my web site to IIS
server when i brows my web site kept
under default web site it's displaying
error message "You are not authorized
to view this page"...please solve this
issue
Sounds like you don't have the default document set correctly. You may need to add Default.aspx to the list.
Other things to look at:
That you're targetting .Net Framework 2.0
That the permissions on the actual files on the server are adequate for the identity the website is running as
That you have enabled anonymous access if you don't want Windows authentication

Resources