473,606 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Manageme nt - DNS/national characters

Hi,

we have been using WMI from VB6 to automate configuration of new DNS
zones on our win2000 servers, and are now trying to move the system to
a vb.net application.

We recently added some zones with names containing national characters
(norwegian ÆØÅ), and then everything stopped working, including the
old VB6 app. The error occurs when I try to enumerate the zones - it
stops when it reaches the first zone (alphabetically ) containing an
national character. It works fine if I only parse before the first
"bad" zone.

Is there any way to get this to work with national characters?

The error (caused by "next" in the for loop):
System.Manageme nt
at
System.Manageme nt.ManagementEx ception.ThrowWi thExtendedInfo( ManagementStatu s
errorCode)
at System.Manageme nt.ManagementOb jectEnumerator. MoveNext()
The code:

Dim s As New ConnectionOptio ns()
s.Username = "..."
s.Password = "..."

Dim ms As New ManagementScope ("\\server\root \MicrosoftDNS", s)
Dim qry As New WqlObjectQuery( "select * from
MicrosoftDNS_SO AType where DomainName = 'example.no'")
Dim searcher As New ManagementObjec tSearcher(ms, qry)
Dim o As ManagementBaseO bject
Dim p As PropertyData
For Each o In searcher.Get()
ListBox1.Items. Add(o.ToString)
Next

Best regards,
Eric Carr
Nov 20 '05 #1
0 1270

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1505
by: James | last post by:
Looking for experienced and resourceful web developer / programmer for following project: Or if anyone knows of a company that specialises in this sort of thing would be grateful if you could let me know! Need creation/production of an accurate scalable map of UK with a programmed invisible National Grid layer allowing us to accurately position simple icons on the map automatically using national grid references from database. ...
9
2938
by: jetobe | last post by:
Hi everyone, I am trying to debug someone's site which has <h3><a href="www.legislation.qld.gov.au">Queensland Acts</a></h3> The problem is that the <a> tag is taking precedence and overriding the <h3> tags that they want the text to resemble. It's problematic because it's a huge site (around 500 pages), it's in
2
14020
by: Paul Gronka | last post by:
I've got a VB.NET windows application (written in VS .NET 2003) that makes a call to WMI for retrieving the MAC Address from the client's PC. It works on 4 out of the 5 PC's tested so far. All the workstations are DELLs running XP SP1a with the 1.1 .NET Framework. The following line of code generates an exception on the one PC: Dim oMac As New System.Management.ManagementClass("Win32_NetworkAdapterConfiguration") The error it...
1
5928
by: PaulThomas | last post by:
I am using VS.Net 2000 and C# trying to access the System.Management namespace in a Web Application -but- after: using System; using System.Management; I get: The type or namespace name "Management" does not exist in the class or namespace "System" How do I go about accessing the "Management" namespace... I am trying to get the Serial Number of the CPU and Operating System from examples I have found like:
2
1462
by: Vladimír Kolesnik | last post by:
Hi there, I receive parameters from html page via 'post' method in the form. <form action="http://localhost/project1/Default.aspx" method=post ID="Form1"> <input type=text name=UID value=UID id=ID> <input type=text name=UserName value=userName id=UN> <input type=submit value=Send ID="Submit1" NAME="Submit1"> </form>
0
1077
by: Peter Hemmingsen | last post by:
Hi, I've an asp.net (cs code behind) application where I want the user to be able to download a file with national (danish) characters. Ex: Response.Clear(); // clear the current output content from the buffer Response.AddHeader("Content-Disposition", "attachment; filename=" +
1
10240
by: lcifers | last post by:
I have an application that uses the following code to return the default printer: Dim moReturn As Management.ManagementObjectCollection Dim moSearch As Management.ManagementObjectSearcher Dim mo As Management.ManagementObject moSearch = New Management.ManagementObjectSearcher("Select * from Win32_Printer")
3
1988
by: Dariusz Tomon | last post by:
Hi My problem is like that: I'm trying to pass values branza and jezyk in querysting: http://localhost/euroadres/pokazbranza.aspx?branza=transport lotniczy&jezyk=1 Branza is type "string" and when I'm passing string value without national
5
1192
by: Jack Russell | last post by:
I have the following code in VB .net 2003 s = "Select * from Win32_UserAccount WHERE Domain =""" + Environment.MachineName.ToString + """" moSearch = New Management.ManagementObjectSearcher(s) moReturn = moSearch.Get For Each mo In moReturn Try If mo("disabled").ToString = "False" Then cboUsers.Items.Add(mo("name")) End If
0
8009
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7939
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8432
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8428
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8078
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5962
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3919
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3964
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.