Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while publishing the web application

Tags:

asp.net

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.

like image 254
mahith Avatar asked Apr 02 '12 13:04

mahith


People also ask

How to check if Web Deploy is running?

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.

Can't connect to remote server web deploy?

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.

How do I publish with Msbuild?

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.


1 Answers

Site/application must be your SiteName/YourAppFolder for example like Default Web Site/webapp

like image 75
Helikaon Avatar answered Oct 11 '22 17:10

Helikaon