« Previous Next »

Thread: Create Website on D:\ drive

Last post 10-29-2009 10:43 PM by Jarell. 14 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (15 items)

Sort Posts:

  • 05-23-2008, 12:34 PM

    Create Website on D:\ drive

    Hi,

    I have an application that was deployed to the D: drive on a server. Because IIS doen't point there, we can't use Visual Studio to deploy it. When we use Xcopy and create the website, th elocal path is not displayed properly and our LDAP redirect is not working properly.

     

    With no difference in the deployment, a staging site properly installed the folder to IIS - when removing from IIS the folder was also deleted. How can I force IIS to install the folder?

  • 05-23-2008, 1:20 PM In reply to

    Re: Create Website on D:\ drive

    Point IIS anywhere you want.  Right click the site in IIS Manager, choose properties and then the Home Directory tab.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 05-23-2008, 1:23 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,237
    • IIS MVPs

    Re: Create Website on D:\ drive

    Do you want this to be a 1) new web site or 2) an application on an existing web site?

    1)  Create a new web site and use the D:\... path as the root

    2)  Create a new virtual directory on the existing site and point it to the D:\... path.  Be sure to set this virtual directory as an application as well.

  • 05-23-2008, 1:32 PM In reply to

    Re: Create Website on D:\ drive

    The website exists already, but we are deploying a code change. So I would create a root web with a virtual directory all pointing to the same place?

     

    OK, that's that, but I tried using Metabase Explorer to default the server to the folder on the d: drive, but it isn't inetpub\wwwroot. Does that matter? and where do I change that value?

     

    Thanks for your help.

  • 05-23-2008, 1:43 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,237
    • IIS MVPs

    Re: Create Website on D:\ drive

    It's not clear what you're trying to do.

    Do you want to deploy the new code without overwriting the old code?

    No need for metabase explorer, simply use the IIS MMC.

  • 05-23-2008, 1:51 PM In reply to

    Re: Create Website on D:\ drive

    I'm using the IIS MMC. But when we make code changes, we can't just refresh the site, we have to remove the site and recreate it. That's what I want to avoid. I would also like to be able to publish from VS2003, but it defaults to the IIS folder on the server.

     

     

  • 05-23-2008, 3:56 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,237
    • IIS MVPs

    Re: Create Website on D:\ drive

    You shouldn't have to remove the site and re-create it. Specifically what causes you to do this?

    When publishing from VS2003, you can use either FrontPage server extensions or a UNC file path.
    http://support.microsoft.com/default.aspx?scid=kb;en-us;326356
    http://support.microsoft.com/default.aspx?scid=kb;en-us;320265

  • 05-23-2008, 4:24 PM In reply to

    Re: Create Website on D:\ drive

    I tried that but VS2003 says it can't create the web in the D:\WebApps\MergerTools directory. The reason we do this is because copying the new code doesn't refresh the web site even if we remove and recreate the website in IIS.

     That's why I wanted to kno whow to change the default path, so that VS2003 copy project would work properly. Either that or how to get the web site copied to IIS so that the "Local Path" is a \<server> designator and not a directory.

     

    When it is a directory, our redirect code doesn't work.

  • 05-27-2008, 1:20 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,237
    • IIS MVPs

    Re: Create Website on D:\ drive

  • 02-25-2009, 12:42 AM In reply to

    • falconzx
    • Not Ranked
    • Joined on 02-13-2009, 7:00 AM
    • Philippines
    • Posts 1

    Re: Create Website on D:\ drive

    tomkmvp:

    Do you want this to be a 1) new web site or 2) an application on an existing web site?

    1)  Create a new web site and use the D:\... path as the root

    2)  Create a new virtual directory on the existing site and point it to the D:\... path.  Be sure to set this virtual directory as an application as well.

     

     

    Hello! I have a certain problem with my IIS. You said "Create a new web site and use the D:\... path as the root". That means using IIS Manger > right-click Web Sites > New > Web Site.

    The problem is, there is no "New" option!

     Is there something wrong with my IIS Manager?

    ------------------------------

    "Better be a Geek than an Idiot..."
  • 02-25-2009, 5:05 AM In reply to

    Re: Create Website on D:\ drive

    Hi,

    Are you using Windows XP ? If so then you can't add a New web site because you are limited to just one site.

    Regards,

    Paul Lynch | www.iisadmin.co.uk
  • 02-25-2009, 9:47 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,237
    • IIS MVPs

    Re: Create Website on D:\ drive

  • 02-27-2009, 9:06 AM In reply to

    Re: Create Website on D:\ drive

     Thanks all for you responses. We had figured this out. I should have updated. We were using a Web Logic redir and no one told me.

  • 10-29-2009, 8:19 PM In reply to

    • Jarell
    • Not Ranked
    • Joined on 10-29-2009, 8:03 PM
    • Posts 2

    Re: Create Website on D:\ drive

    Man this poor guy I feel for him ... Ok now to get an answer I will rephase it to what I thought he ment and an issue I'm having..

     I have automation software that sets up new sites automatically based on where iis is installed not just where the default/ WWWRoot is so I want to know if there is a true meta editor out there  like metaedit 2.2 was that will allow me to SEARCH (something meta explorer will not do) The meta Database and replace the C:/inetpub location with e:/inetpub so that the SMTP root, FTP root and WWW root can all be moved to Drive E..  It use to be real easy in IIS 5 with metaedit. just copy the folder permissions and all then edit the meta...

     I have looked for a way to modify this till I'm blue in the face and doing an unattended install is not an option as Microsoft limits the usage of their keys I am not willing to burn one on a reinstall.  I have looked at directly editing the metabase.xml but it does not seem to have any paths in their either to change from c to e drive...  Any help would be appreciated....

     And please don't ask why I can't do it your way and just manually edit the website home directory as I think I pretty well covered the fact that I can't...So for the sake of not having an argument lets assume I'm right.. if you have a solution that would be great.. Thanks in advance.

  • 10-29-2009, 10:43 PM In reply to

    • Jarell
    • Not Ranked
    • Joined on 10-29-2009, 8:03 PM
    • Posts 2

    Re: Create Website on D:\ drive

    I got this one finally... Just for reference here is what I did.

    Stopped IISADMIN and all associated services.

    Using an editor like editplus I opened the metabase.xml file located in system32/inetsrv

    relaced c:\inetpub with e:\inetpub

    Saved the file as metabase.new.xml (would not let me save over it even though I had told the server to let me edit the file)

    Renamed existing metabase.xml to metabase.old.xml

    Ran regedit and did a search for c:\inetpub and replaced the c: with e: in all data and key names where it occured

    renamed metadata.new.xml to metadata.xml

    Restarted iisadmin and all services shut down with it FTP SMTP WWW HTTP SSL ect

     All worked fine.. did a reboot and verified all worked correctly... this was done on a new install with no sites other then default and frontpage extensions not on the root. would be a bit harder with a bunch of sites.

    .

Page 1 of 1 (15 items)
Microsoft Communities