I am a fresher in vs 2010
and developed a web project.
When I hosted directly the project its working fine.
When I am trying to publish it not working and giving an error 403
Error 1 Web deployment task failed.
(The metabase path 'http://localhost/webapp/login.aspx' is not supported.
Paths must be of the format '/lm/w3svc/<siteid>/ROOT/...'.)
The metabase path 'http://localhost/webapp/login.aspx' is not supported.
Paths must be of the format '/lm/w3svc/<siteid>/ROOT/...'.
The metabase key '/lm/w3svc/1964704031' could not be found.
The system cannot find the path specified. (Exception from HRESULT: 0x80070003) 0 0 WebApplication1
I referred many sites and didn't get any solution for this problem
Please anyone help me to solve this issue.
My OS
is windows server 2003 iis 6
.
I have given the Publish method:WebDeploy service url:http://localhost/webapp Site/application:http://localhost/webapp/login.aspx Please help me .Thanks in advance.
Is Web Deploy installed? You can verify web deploy is installed by going to the "Programs and Features" control panel and looking for "Microsoft Web Deploy 2.0" in the list of installed programs. If it is not there, you can install it via the Web Platform Installer by going to the "Products" tab.
This error indicates that you cannot connect to the server. Make sure the service URL is correct,firewall and network settings on this computer and on the server computer are configured properly,and the appropriate services have been started on the server.
You can pass /p:PublishUrl="newpath" to the msbuild command. You would also see this set in the csproj file which you can change. Hope this helps.
Site/application must be your SiteName/YourAppFolder for example like Default Web Site/webapp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With