French Verson: Whsinfo.GetUsersInfo Broken
- I have created a web application for WHS called P80. My application runs on ASP.Net via .net Framework 3.5. MY application runs great on all versions. However only on the French version of Windows Home Server does the following error occur.
When I execute the following code:Dim pInfo As WHSInfoClass = New WHSInfoClass()
Dim users As Array = pInfo.GetUsersInfo
pInfo.GetUsersInfo throws an error stating that The group name is not found (translated from French). Have any other developers seen this? My code works, but fails in French. Everything else and I touch almost every point in the API works in any language including French.
Here is the error:
System.Runtime.InteropServices.COMException was unhandled by user code
ErrorCode=-2147022676
Message="Le nom de groupe est introuvable. (Exception de HRESULT : 0x800708AC)"
Source="Microsoft.HomeServer.SDK.Interop.v1"
StackTrace:
à Microsoft.HomeServer.SDK.Interop.v1.WHSInfoClass.GetUsersInfo()
à Users.ListUsers() dans C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\WebSites\P80\Users.aspx.vb:ligne 15
à Users.Page_Load(Object sender, EventArgs e) dans C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\WebSites\P80\Users.aspx.vb:ligne 10
à System.Web.UI.Control.OnLoad(EventArgs e)
à System.Web.UI.Control.LoadRecursive()
à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
All Replies
Haven't seen that before! Very interesting. Can you post the full stack trace (including the InnerException), or is that all you get?
Best thing to do is log a bug at https://connect.microsoft.com/windowshomeserver
Tentacle Blog: http://www.tentaclesoftware.com/blog/
WHS Disk Management: http://www.tentaclesoftware.com/WHSDiskManagement/- You're right, looks like the feedback button is disabled. I'll poke some people and see what's up.
Tentacle Blog: http://www.tentaclesoftware.com/blog/
WHS Disk Management: http://www.tentaclesoftware.com/WHSDiskManagement/ - Sounds good, thanks for checking into that!
- Ah, not disabled - you have to search for the error/problem first, to prevent lots of duplicates being submitted.
So, plug "GetUserInfo" into the search box at that URL, then click "Submit it yourself" in the bottom left corner of the search results. Then you can use the"Windows Home Server Post RTM Bug Report Form".
Tentacle Blog: http://www.tentaclesoftware.com/blog/
WHS Disk Management: http://www.tentaclesoftware.com/WHSDiskManagement/ - Hi Kris,
I created a small test application that calls the function and prints out the output:
WHSInfoClass whsInfo = new WHSInfoClass();
Console.WriteLine("Retrieving user information");foreach
(IUserInfo userInfo in whsInfo.GetUsersInfo())
{
Console.WriteLine("============IUserInfo===============");
Console.WriteLine(string.Format("Enabled :{0}", userInfo.Enabled));
Console.WriteLine(string.Format("FirstName :{0}", userInfo.FirstName));
Console.WriteLine(string.Format("LastName :{0}", userInfo.LastName));
Console.WriteLine(string.Format("LogOnName :{0}", userInfo.LogOnName));
Console.WriteLine(string.Format("PasswordStrength :{0}",userInfo.PasswordStrength.ToString()));
Console.WriteLine(string.Format("RemoteAllowed :{0}", userInfo.RemoteAllowed));
}
Then I had a try on a French WHS (clean install with SP2 on):
- The first time it worked ok. (I didn't change anything to the default setup)
- Then I created a user and retried -> This gave exactly the same error as yours.
- I restarted the application and retried and then it worked again.
Can you try to restart your website (IIS) after having this problem and see if that helps?
I also had a try on the English & Japanese version, but there it didn't occur.
So you might be onto something here...already reported it on Connect?
Cheers,
Nick - Good stuff Nick. I havent had time tonight to debug anymore into it but I will try tomorow. I also have not posted a bug yet. I will post an update on my findings in the next couple days.

