IIS programmatic administration question

  • Thread starter Thread starter Sýfýrýncý Murat
  • Start date Start date
S

Sýfýrýncý Murat

Hi,

In my recent posts, I asked something related with how to create web sites
programmatically. With aid of some people (especially Kristofer) I have
passed those steps.

However, I still have some problems. After creating the site, I need to
change some properties like host header, port etc. One of these properties
is LogExtFileFlags. The creation of the web sites has a pattern, so all
sites will have the same values for some properties. I intend to set these
properties exactly how they appear in the metabase entries of the previously
(and manually) created sites. Most of them work perfectly but I'm stuck with
LogExtFileFlags field. I set the value like this:

newSite.Properties["LogExtFileFlags"][0]="LogExtFileDate |
LogExtFileTime | LogExtFileClientIp | LogExtFileUserName |
LogExtFileMethod | LogExtFileUriStem | LogExtFileUriQuery |
LogExtFileHttpStatus | LogExtFileBytesSent | LogExtFileUserAgent |
LogExtFileReferer | LogExtFileProtocolVersion";

But at that very line of code I get an exception (I'm using C#). Is there a
trick setting the property? Or should I paste the error message here?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top