Reputation: 141
What's the user name,password and service URL on light switch. When i give service URL to localhost it shows error.
Upvotes: 0
Views: 529
Reputation: 2841
If you only specify localhost as the service URL, you'll see the following error when validating the connection (though it may go on to still publish successfully):
However, if you instead specify http://localhost, you should see the following successful confirmation message:
If this isn't the error you're experiencing, you could try running Visual Studio as Administrator to see if it makes a difference to the process of publishing.
In addition, the following IIS settings (based on IIS 10) may need to be configured alongside the default options: -
Additional "Turn Windows feature on or off" settings
.NET Framework 4.6 Advanced Services \ WCF Services
Internet Information Services \ Web Management Tools
Internet Information Services \ World Wide Web Services \ Application Development Features
Internet Information Services \ World Wide Web Services \ Health and Diagnostics
Internet Information Services \ World Wide Web Services \ Security
Options in IIS
The following blog posts, by the LightSwitch team, contain additional details regarding the publish process which may help and is still fairly relevant despite relating to earlier versions of LightSwitch:
LightSwitch IIS Deployment Enhancements in Visual Studio 2012
Deployment Guide: How to Configure a Web Server to Host LightSwitch Applications
Upvotes: 1