Search code examples
c#visual-studio-2010iis-7publishxbap

Visual Studio publish fails


I can rebuild and build my application without any errors, but I cannot publish it to my local IIS 7 web site.

I most certainly am missing a step...

It is an XBAP application that i'm trying to publish to a web site.

I created the web site by manually adding web site in IIS7 with default settings. I noticed that there are no sub folders in the web site (missing Application files and app data?)

When I try to publish I get the following error message:

Error: Failed to copy file 
Unable to add 'Application Files/...' to the Web site.  
Unable to add file 'Application Files\...'.  

Couldn't find the path

It fails on the copy from my app.publish\application files\\ to my publish folder.


Solution

  • I added Everyone to my c:\inetpub\ with CRUD set. Rights issue. It is working now.