French Verson: Whsinfo.GetUsersInfo Broken
-
Monday, 19 October, 2009 2:19 AMI 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
-
Monday, 19 October, 2009 5:02 AMModerator
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/ -
Monday, 19 October, 2009 5:12 AM
-
Monday, 19 October, 2009 5:15 AMModeratorYou'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/ -
Monday, 19 October, 2009 5:18 AMSounds good, thanks for checking into that!
-
Monday, 19 October, 2009 5:40 AMModeratorAh, 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/ -
Monday, 19 October, 2009 8:02 PMHi 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 -
Tuesday, 20 October, 2009 4:19 AMGood 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.
-
Saturday, 2 January, 2010 9:04 PMI have not gotten reports that this happens on German WHS Servers as well. This has now been reported on French and German WHS. No other language, and not US once. This has gotta be a bug in the API.
The error in German is:
Log Entry: 02.01.2010 06:58:51
Error in: https://whs/p80/Users.aspx
Error Message: Der Gruppenname konnte nicht gefunden werden. (Exception from HRESULT: 0x800708AC)
StackTrace: bei Microsoft.HomeServer.SDK.Interop.v1.WHSInfoClass.GetUsersInfo()
bei Users.ListUsers()
bei Users.Page_Load(Object sender, EventArgs e)
bei System.Web.UI.Control.OnLoad(EventArgs e)
bei System.Web.UI.Control.LoadRecursive()
bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-
Sunday, 17 January, 2010 7:06 PMHi Kris,
I searched Connect but didn't find any defect reported, so I created one myself now.
Hopefuly they will find the cause and get it fixed in an update.
Cheers,
Nick -
Sunday, 17 January, 2010 7:09 PMThanks man =).
I get emails from users about this once a week on this from German and French users. I'd like those emails to stop at some point haha. -
Sunday, 17 January, 2010 7:15 PMWell I assume they would find it quickly as there is a scenario/testcode and details on how to reproduce... ;-)
But when will there be a fix...? ;-) -
Sunday, 17 January, 2010 7:25 PMI put in a Try..catch statement around the below code in the latest build.
Dim pInfo As WHSInfoClass = New WHSInfoClass()
Dim users As Array = pInfo.GetUsersInfoAs if that's a fix, that's not even a hack fix. That's just pure junk, but at least I shouldn't get any more error reports haha.
I'm not expecting a fix on MS's end on this anytime soon, so I think showing an empty data set is better than nothing.
-
Friday, 19 February, 2010 11:16 PMHi,since I was still unable to find anything on Connect I created a new feedback entry:Please feel free to vote!GreetzFelix
-
Saturday, 20 February, 2010 2:37 AMModeratorHi Felix,
I had a look at mine and I see that its visibility is set to private.
I submitted it on 17/01 and heard back from Microsoft on 01/02 for some more feedback, which I then submitted.
So I am now awaiting feedback from them again and hope they can find and fix it.
Cheers,
Nick -
Saturday, 20 February, 2010 3:51 AMI am glad I am not the only developer seeing this issue. I think that some of the users of my software think I am full of it when I say its a bug in MS's API.
I voted! =) -
Saturday, 20 February, 2010 10:10 AMI hope they fix it soon. Even having a Hotfix which I could include in the installation process would be fine. But this bug is a real show stopper for me :( .Greetz Felix
-
Saturday, 20 February, 2010 6:51 PM
Hey Felix,
Voited - You should ask the guys at homeservershow, kentdome and mediasmartserver.net to vote too - bit unfair that you can't get 100 votes for every developers vote :-)
-- -
Thursday, 2 December, 2010 11:33 PM
Did you ever find a fix for this issue? I'm having the same problem with my addin.
Paul Juenger- Proposed As Answer by ASoft-ware Thursday, 17 February, 2011 8:31 PM
-
Thursday, 17 February, 2011 8:32 PM
Hi guys,
This has finally been fixed in UR2 of WHSv1: http://support.microsoft.com/kb/981089 which was released on 25/01/2011.Cheers,
Nick- Proposed As Answer by ASoft-ware Thursday, 17 February, 2011 8:33 PM
- Marked As Answer by Nick AsseloosMVP, Moderator Thursday, 21 April, 2011 9:48 PM