I am trying to host a web services in a hosting that I hired. I use it for login, and just validate username and password
From Visual Studio I created an empty web project. I added a file .asmx
, and when I publish it I upload WS.asmx
and Web.config
.
The Web.Config
contains:
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
</configuration>
The problem is that when I run it, it throws me the following error
HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.
Most likely causes: A default document is not configured for the requested URL, and browsing is not enabled on the server.
Things you can try: If you do not want to enable browsing, Ensure that a default document is configured and that the file exists. Enable directory browsing using IIS Manager. Open IIS Manager. In the Features view, double-click Directory Browsing. On the Directory Browsing page, in the Actions pane, click Enable. Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.