|
Dave hi,
At first I didn't see your answer (only the link to the guide so i thought that i was "bad boy" ...) so I read the guide and rewrote my question.
Than I noticed your answer an did the following:
1. I re installed (repair) the .NET 3.5.
2. I installed SP1 for 3.5
but still I do not have this DLL in the "Arsenal"
Do you have more idias?
Thank you
Eitan
|
|
|
|
|
I just went back and checked my XP machines with .NET 3.0 installed on them. Neither of them have the Microsoft.Web.Management stuff. It looks like that .DLL is specific to Vista/Server 2008 and up, where IIS7 being installed is a possibility.
|
|
|
|
|
|
hi,
Thanks for the reply.
I probebly did not clarify myself good enought. I will ask my question again with more details.
I have windows 2003.server(SP2).
I searched "c:\windows" and its subfolders all DLL files that starts with "m" and "micro" and i did not find this dll on my machin.
I did search google and found only articals and the dll4you.com that charge money for this dll.
i did searched MIcrosoft download site and did not find any dll, i may not know where to look or how to search ( i posted the strind "Microsoft.Web.Management.dll" at the search fields).
please if you can direct me to another dll site or location on the web or if you can post the dll here it will help me.
I need also the "Microsoft.Web.Administration.dll".
thank you again
Eitan
|
|
|
|
|
Eitan,
I doubt you'll find those assemblies in any version of windows other than Windows Vista and Windows 2008 server as they contain IIS 7. You might be lucky that it's available in the windows sdk, but I'm not sure will have to check when I'm back at the office.
As far as I'm aware the Microsoft.Web.Administration and Microsoft.Web.Management namespaces are only useful for working with IIS 7, I might be wrong.
See: http://learn.iis.net/page.aspx/165/how-to-use-microsoftwebadministration/ for information on the "Microsoft.Web.Administration.dll"
Iwan
|
|
|
|
|
Thank you all for your efforts.
unless you have other information,
I understand that I can not use code to manage iis lower than 7.
Eitan
modified on Friday, December 19, 2008 3:41 PM
|
|
|
|
|
I couldn't find resources on adding Verbs or hyperlink in propertygrid. Can you please provide me some links that deals with propertygrid.
Thanks
|
|
|
|
|
In ASP.NET or winforms ? I don't think there is a hyperlink control, I think you need to roll your own.
What do you mean by 'add verbs' ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I was concerned about winforms. Verbs is like a hyperlink which is shown in PropertyGrid just right above the PropertyGrid properties description area.
Simply drag and drop a datagridview and Click on the Visual studio properties and you will see two links "Edit Column" and "Add Column".
I also want to show a link in the propertyGrid so once it is click i can call my function.
|
|
|
|
|
Ah - the stuff that VS does is almost certainly custom code, so you'll have to write code to do it, too.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi I have the following code
<br />
<listeners><br />
<add name="TestTrace" type="MyNameSpace.TestListener, TestListener, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" traceOutputOptions="None" initializeData="MYlog.txt"><br />
</add><br />
<br />
</listeners><br />
<br />
Whatever value I put in initializeData will be passed to the constructor of the specified listener.
My question is, How can I send more that one parameter in the constructor using initializeData. Suppose my second parameter is integer.
Thank you
|
|
|
|
|
If only one parameter is allowed, make it an XML string or a struct, or some other way of passing more than one value, in one go.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Evening all !
I've created a new timer in a form's constructor to make a button on the form flash.
For some reason the program is stepping through the code for the timer tick ONCE and thats it ?
Would appreciate if someone could take a look at it and tell me whats wrong, it's porbably something trivial and i've just been looking at the code too long now !
Thanks in advance
Neil
public Form1()
{
InitializeComponent();
buttonTimer = new Timer();
buttonTimer.Tick += new EventHandler(button_Tick);
buttonTimer.Interval = (50);
populate.BackColor = Color.Black;
populate.ForeColor = Color.Orange;
buttonTimer.Start();
}
void button_Tick(object sender, EventArgs e)
{
if (populate.BackColor == Color.Orange)
{
populate.BackColor = Color.Black;
populate.ForeColor = Color.Orange;
}
if (populate.BackColor == Color.Black)
{
populate.BackColor = Color.Orange;
populate.ForeColor = Color.Black;
}
}
}
|
|
|
|
|
Instead of this:
buttonTimer.Tick += new EventHandler(button_Tick);
Try this:
buttonTimer.Elapsed += new EventHandler(button_Elapsed);
Don't know if it makes any difference, but it's worth a try.
|
|
|
|
|
That's for a System.Timer, not a System.Windows.Forms.Timer. The Elapsed event is run in a separate thread, so that can't be used to update controls in the form.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
I had this problem, the cause is that you are setting your event in the load method, which exits so the event is no longer registered.
buttonTimer.Tick += new EventHandler(button_Tick);
Put that in another method so that it is set again.
The way I explained this is probably not the most tech savvy way, but I'm 100% sure that your event gets triggered only once because the form load method quits after your form is loaded.
|
|
|
|
|
That makes no sense at all.
|
|
|
|
|
Looks like you are testing the Color for Orange and if so, setting it to Black.
Right after that you test for Black and set it back to Orange.
After the ForeColor = Color.Orange, add a return ;.
|
|
|
|
|
Bingo! This is just what I was thinking.
|
|
|
|
|
Better yet, use an else:
if (populate.BackColor == Color.Orange) {
populate.BackColor = Color.Black;
populate.ForeColor = Color.Orange;
} else {
populate.BackColor = Color.Orange;
populate.ForeColor = Color.Black;
}
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
it isn't stepping through once - stick a breakpoint in to prove that.
it just has no effect the 2nd and subsequent times...
replace
if (populate.BackColor == Color.Black)
with
"else"
and all will be well.
Inidentally, if I were you, I would put
((Timer)sender).Stop();
at the start of yor buttin_Click event handler, and
((Timer)sender).Start();
at the end.
This stops the timer triggering while the code is still executing - and helps when you are debugging too!
If I knew then what I know today, then I'd know the same now as I did then - then what would be the point?
.\\axxx
(That's an 'M')
|
|
|
|
|
hi all,
i have a xml files which the the data is in attributes like this:
<detail>
<record>
<field name='field1' value='value1'/>
<field name='field2' value='value2'/>
<field name='field3' value='value3'/>
<field name='field4' value='value4'/>
</record>
<record>
<field name='field1' value='value1'/>
<field name='field2' value='value2'/>
<field name='field3' value='value3'/>
<field name='field4' value='value4'/>
</record>
</detail>
since datatables read only xml that are formated without attributes how could i load this into a datatable?
|
|
|
|
|
Seems like you'll create code to parse/load it into a table or use an XSL transform and then load it via ReadXml.
|
|
|
|
|
Any idea of a xsl/xps generator for attributed XML?
|
|
|
|