|
I added the options.Authority = "NTLMDOMAIN:myDomainName";
as you suggested.
It still says, Access denied.
|
|
|
|
|
NTLM is the default authentication method so you shouldn't need
that line.
This is most likely security configuration issue so throwing code at it
isn't going to help - if you could get past security with code it
wouldn't be too effective
Make sure you've done this on the remote machine:
Enable WMI (Windows Management Instrumentation)[^]
Also, take a look in the registry on the remote machine.
If there's a key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\forceguest
and it's set to 1, set it to 0.
You can also test using the Computer Management WMI Control snap-in.
Run "wmimgmt.msc", right click on the WMI Control and choose "Connect
to another computer". Try to connect to the remote machine. If it's successful
then your code is probably wrong. If it gives you access denied then
you probably have a configuration issue.
That's all I know. You should definitely ask on an IT newsgroup about enabling
remote WMI on Server 2003.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello,
THe bit in the registry is 0 already.
Using wmimgmt.msc as you suggested just stays on connecting to windows management as if it hangs.
I will keep on checking other issues if I can think of any...
Thanks anyway...
|
|
|
|
|
arkiboys wrote: Using wmimgmt.msc as you suggested just stays on connecting to windows management as if it hangs.
Hangs connecting to the local machine, remote machine, or both?
Regardless, that's a bad sign - if you can't connect with the tool
designed to do what you're doing, then you can't expect your code
to be able to do it.
Again, ask IT people how to enable remote administration on the OS.
It can't be done with code. There's some good Windows administrator types
on the MSDN newsgroups. I'll post a question to the MVPs and see if I
can get you some info.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
The target machine can not be accessed via WMI and it can not access any other machine from it either.
Thanks.
|
|
|
|
|
Hello,
I have developped a windows application using c#.net.
Now the owner of the business need to use this application from outside the local intranet. He want to use it as a web Site.
Is it any method to do that or do someone know another method that allow us to access the application through the WEB.
Best Regards
Bye.
dghdfghdfghdfghdgh
|
|
|
|
|
Well, you could always deploy it using ClickOnce[^], but I would check very carefully if your architecture would withstand using this application over potentially slow connections (I'm assuming that you have one centralized datastore here).
|
|
|
|
|
hello,
i am using an sql Database
is it possible to use the click once feature ??
best regards.
dghdfghdfghdfghdgh
|
|
|
|
|
Yes, but you'll have to be careful with regards to database authentication and security.
|
|
|
|
|
Pete O'Hanlon wrote: g ClickOnce[^],
how does it handle multiple request?
|
|
|
|
|
I have an application with a regular "main" or "parent" System.Windows.Forms.Form. Sometimes, I would like to display a dialog-looking form as a child form to the main main form. I would like the child form to meet these requirements:
1. When the child form is shown, no additional task is shown in the taskbar on the lower part of my screen.
2. When the child form is shown, it becomes impossible to access any controls on the main form. Basically, the main form can't be activated when the child form is shown.
3. When making the call to show the child form, the calling thread does NOT get blocked.
4. The child form can easily be moved anywhere on the screen, even outside of the main.
5. The child form is ALWAYS in front of the parent form.
How can I accomplish this? I am most grateful for any suggestions.
|
|
|
|
|
Form1 dialog;
private void button1_Click(object sender, EventArgs e)
{
dialog = new Form1();
this.dialog.FormBorderStyle = FormBorderStyle.FixedDialog;
this.dialog.ShowInTaskbar = false;
this.dialog.MaximizeBox = this.dialog.MinimizeBox = false;
this.dialog.Show();
this.Text = "Thread is not blocked.";
}
private void Form1_Activated(object sender, EventArgs e)
{
if (dialog != null)
dialog.Activate();
}
Hope this helps.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
That was pretty much exactly what I was looking for. Thanks a bunch!
|
|
|
|
|
arnold_w wrote: 1. When the child form is shown, no additional task is shown in the taskbar on the lower part of my screen.
Set Form.ShowInTaskbar = false;
As for the rest, Form.ShowDialog does all this for you, except for:
arnold_w wrote: 3. When making the call to show the child form, the calling thread does NOT get blocked.
The parent form still pumps some messages: are you sure you care that ShowDialog "blocks"?
If so, try:
private void button1_Click( object sender, EventArgs e )
{
new Thread( () => new Form2().ShowDialog( this ) ).Start();
}
Nick
----------------------------------
Be excellent to each other
|
|
|
|
|
|
Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail.
I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem.
Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.
modified on Monday, October 13, 2008 6:00 AM
|
|
|
|
|
I'm afraid you can't do it. There is no central registry of email addresses, so you can only identify a valid email by sending them a mail and getting them to reply back.
|
|
|
|
|
Pete O'Hanlon wrote: so you can only identify a valid email by sending them a mail
Checking the MX record notwithstanding. Granted not a perfect method for numerous reasons, but one step in between email-address-looks-valid and send-email-address-mail
|
|
|
|
|
J4amieC wrote: Granted not a perfect method for numerous reasons
It would be a fair start, but as you note - not perfect.
|
|
|
|
|
The only sure fire way is to send an email to the address.
You can use regex to check if the address is technically valid, dns lookup to verify the domain exists and has mx records but that's about as far as you can go without sending an email.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
this[^]is in asp but it should give you some ideas
|
|
|
|
|
|
Shweta Gulati wrote: its urgent...
How original. It's urgent - because nobody ever posts here and says "Take your time. I have all the time in the world to get the answer to this."
With only the filename, you have to walk the entire directory structure, looking for names that match it. You could have written the code in the time it took you to post this.
|
|
|
|
|
|
Shweta Gulati wrote: need answer,not comments.
You were given the answer. If you can't implement it, then that's not my problem.
|
|
|
|