.net - How to reference Microsoft.Web.Administration? -


the microsoft.web.administration assembly found in c:\windows\system32\inetsrv on machine. believe installed part of iis. assembly in gac.

how should reference assembly project, given want commit project svn others checkout. microsoft.web.administration not appear in visual studio 'add references' list. can add reference c:\windows\system32\inetsrv\microsoft.web.administration, seems bad idea other developers might have installed on different path or drive.

or copy project folder, have commit binary svn.

the following steps working me:

  1. copy microsoft.web.administration.dll located in c:\windows\system32\inetsrv
  2. in folder *.csproj located, add folder /lib , paste microsoft.web.administration.dll /lib folder
  3. now add relative path .dll in *.csproj: open *.csproj, search tag <itemgroup> , add following xml-definition:

<reference include="microsoft.web.administration, version=7.9.0.0, culture=neutral, publickeytoken=31bf3856ad364e35, processorarchitecture=msil"> <specificversion>false</specificversion> <hintpath>lib\microsoft.web.administration.dll</hintpath> </reference>

at last, add /lib svn repo. works me on each machine after svn checkout.

if missing microsoft.web.administration.dll in c:\windows\system32\inetsrv, enable iis management console in windows features:

adding management service windows features


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -