VS 2010 question - changing root directory

So I created a website in visual studio 2010 and I transfer it to my web host.

The problem is the webhost has the a file structure like this:
domainname.com/wwwroot

And I put all my files in wwwroot, and it works fine on the web.

But now in VS, since I had to add domainname.com/wwwroot folders, I am getting compile errors that say “This error can be caused by a virtual directory not being configured as an application in IIS”.

So my question is - how do I either
A) change the root application for IIS on my machine to be at the wwwroot level
B) change VS to let me copy files from the root directory in VS to the domainname.com/wwwroot dirctory.

Thanks

Yeah, IIS doesn’t come with VS. what version of windows are you running?

A) You can right-click the root folder from within IIS and choose “convert to applicaiton”
B) You can simply copy the files from your drive to the ftp site of your host, or you can use the publish tool from within VS

How do I do A? How do I get “from within IIS”.

Sorry if that is a really stupid question.

well our old friend google led me to this, but it doesnt work for me:

To open IIS Manager from the Start menu
1.Click Start, and then click Control Panel.

2.Do one of the following:

If you are using Windows Vista® or Windows Server® 2008, click System and Maintenance, and then click Administrative Tools.

If you are using Windows® 7 or Windows Server® 2008 R2, click System and Security, and then click Administrative Tools.

3.In the Administrative Tools window, double-click Internet Information Services (IIS) Manager.

To open IIS Manager from the Search box
1.Click Start.

2.In the Start Search box, type inetmgr and press ENTER.

A little more research and it seems I need to install IIS 7 on my machine … even though I am using VS?

So I installed IIS Manager, but I cannot find where to "right-click the root folder from within IIS and choose “convert to applicaiton”

windows 7

well I never did figure out how to find the root directory in IIS manager.

But i did figure out that through VS FTP manager, you can set the directory. So I added domainname.com/wwwroot, and then everything seems to be in sync.

Ok, thats cool then