Invalid Host Name when access app in sharepoint 2013 - visual-studio-2013

I'm new to sharepoint and start to learning develope in sharepoint.
When I start deploy an app to sharepoint a local server, it deploy successful with no error.
But when I access to the app, it's always bad request: invalid host name.
I have followed many instruction to config app in sharepoint but problem is not solved.
Can anyone help me to fix it?
I'm using Visual Studio 2013 and Windows Server 2012 to host SharePoint 2013
Thanks

After deploying App for SharePoint your hosts file is going to be updated with appropriate records like below.
127.0.0.1 app-93b7514a6939cb.apps.3p18 # 78f68cdc-80f8-4a75-8cc2-aa82985bc6a1;http://3p18:2121/
::1 app-93b7514a6939cb.apps.3p18 # 78f68cdc-80f8-4a75-8cc2-aa82985bc6a1;http://3p18:2121/

Related

Docker support is not enables in visual studio 2022

I created a sample Asp.net web api project to deploy in docker and access it.I haven't made any code changes just create a project and run.it is running in visual studio but when i copy published files to IIS server in local machine and try to access the url it is throwing 404 error.Could anyone please help to resolve this.

IIS Express Remote access with Visual Studio 2019

I don't remeber this being an issue before, and many threads are rather outdated now.
On my Windows 10 installation VS 2019 hosts my project at http://localhost:58402 just fine.
However when I go to change the url under Properties > Debug > App URL to 0.0.0.0:58402 I get the error:
Cannot connect to web server IIS Express
What I have tried:
Running VS 2019 as admin
Restarting computer
Deleting hidden VS folder
Modifying launchSettings.json in my API project properties folder
I can change the port just fine. But as soon as I change localhost to 0.0.0.0 the error occurs.
Update:
I have been using the NPM package iisexpress-proxy with great success now as a daily driver for 5 months now.
Had some difficulty with CORS, but disabling that for local debugging allows me to do everything I would expect.
https://www.npmjs.com/package/iisexpress-proxy

How to Publish an Umbraco Intranet?

I have just completed an Umbraco intranet using WebMatrix. Now I want to publish it to our server so that everybody can see and use it. WebMatrix can only do Web Deploy or FTP, so I opened the project in Visual Studio 2013 to publish it there. I was able to publish it to my desktop, where I have attempted to get it running here before uploading to the server. So in IIS I 'Add a Website' and set up the project, using port 101. I tried it both on my desktop and then moved it to wwwroot and in both cases IE says 'This page can't be displayed'. I am using the CE database with Umbraco 7.2.4.
Help please. I've been at this for days now.... I've tried the umbraco forum and google and got nowhere. :(
Tony
If you have remote desktop access to your web server, you don't actually need to rely on web publishing. You can just build the website in release mode, and then copy all the folders from the web project onto the webserver.
On the web server you can manually set up an IIS website and set up host names etc. You shouldn't need to deploy it using visual studio, this way is much safer
In IIS, you should set up a new website, using port 80 on your HTTP binding.
From the sounds of the error, IIS is not looking at the right physical path.
You should use the Microsoft guide on How to set up your first IIS Web Site as a starting point.

Sharepoint 2013 Farm Visual Studio cannot connect

I have Visual Studio Ultimate 2013 and SharePoint Designer installed on my local machine. I have a SharePoint installed on a server farm that i have full read and write permissions on. My problem is when i try to create the project the wizard to connect to the SharePoint will not show up and it says i need it installed on my local machine. I have read many forums posts such as
https://social.msdn.microsoft.com/Forums/en-US/5853a07e-e033-43ab-929b-f5766354fea9/cannot-connect-to-sharepoint-2013-farm-with-office-tools-for-visual-studio-2012?forum=sharepointdevelopment
https://msdn.microsoft.com/en-us/library/office/jj220047(v=office.15).aspx
along with others these are just the ones still open in my browser. I would love some help or a proper tutorial because the ones i am finding are no help and im not seeing anything besides a error message saying i cannot create a project until i install foundation or server for sharepoint
This is a case where the error message means exactly what it says. You must install SharePoint on your development machine in order to use Visual Studio for local SharePoint development. You can develop on Windows Server 2008/2013 (most common solution I've seen), install SharePoint on your Windows 7/8 machine (which is painful to do but possible), or set up a remote environment for development after signing up for an Office 365 Developer Site.
After hours of searching I found a work around for anyone who is running into this problem... You need to make a web reference to the SharePoint site then you can access the XML and do it that way. Microsoft hides the option its under service reference then you click web reference add the URL and a easily called name add it and your good to go.

Develope Sharepoint solution in VS2010 in Development machine and sharepoint 2013 in Server machine

Am very new to Sharepoint , i installed the VS2010 in development machine and Sharepoint 2013 installed in Server machine. now i have to Develope Sharepoint solution in VS2010.
but in sharepoint wizard,
it asking the site and security for debugging :i have given the my site in textbox which running in my local machine. and when i validated that,
am getting the
SharePoint Connection Error
---------------------------
Cannot connect to the SharePoint site: my site. Make sure that the Site URL is valid, that the SharePoint site is running on the local computer, and that the current user has the necessary permissions to access the site.
Additional information:
A SharePoint server is not installed on this computer. A SharePoint server must be installed to work with SharePoint projects.
**Am one of the active directory user
**I have the privileged to access my site what i created in Central admin
**VS 2010 installed in Development machine, sahrepoint 2013 installed in server machine, am using the sahrepoint , by sharepoint dll installed into GAC in to develpment machine.
any one come across this problem and know the solution for it. ?
Thanks in advance.
The error says:
Make sure that the Site URL is valid, that the SharePoint site is running on the local computer
You need to install SP2013 on your dev enviroment.

Resources