Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7.5 Express New Virtual Dir

how do i add new virtual directory?

I'm getting error (The type or namespace name 'xxx' could not be found) but the files are all in /bin.

i have tried editing the applicationhost.config like this:

<site name="WebSite1" id="1" serverAutoStart="true">
    <application path="/" applicationPool="Clr2IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
        <virtualDirectory path="/SubFolderApp" physicalPath="%IIS_SITES_HOME%\WebSite1\SubFolderApp" allowSubDirConfig="true" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation=":80:localhost" />
    </bindings>
</site>
like image 319
khalil Avatar asked Jan 19 '11 04:01

khalil


1 Answers

You need to create a child application. Your configuration created child virtual directory. The configuration below turns /SubFolderApp into an application.

<site name="WebSite1" id="1" serverAutoStart="true">
   <application path="/" applicationPool="Clr2IntegratedAppPool">
     <virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
   </application>
   <application path="="/SubFolderApp" applicationPool="Clr2IntegratedAppPool">
     <virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1\SubFolderApp" />
   </application>
    <bindings>
      <binding protocol="http" bindingInformation=":80:localhost" />
   </bindings>
</site>
like image 183
Jaro Dunajsky Avatar answered Sep 29 '22 12:09

Jaro Dunajsky