French Verson: Whsinfo.GetUsersInfo Broken
-
maandag 19 oktober 2009 2:19I 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:
Alle reacties
-
maandag 19 oktober 2009 5:02Moderator
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/ -
maandag 19 oktober 2009 5:12
-
maandag 19 oktober 2009 5:15ModeratorYou'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/ -
maandag 19 oktober 2009 5:18Sounds good, thanks for checking into that!
-
maandag 19 oktober 2009 5:40ModeratorAh, 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/ -
maandag 19 oktober 2009 20:02Hi 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 -
dinsdag 20 oktober 2009 4:19Good 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.
-
zaterdag 2 januari 2010 21:04I 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)
-
zondag 17 januari 2010 19:06Hi 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 -
zondag 17 januari 2010 19:09Thanks 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. -
zondag 17 januari 2010 19:15Well 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...? ;-) -
zondag 17 januari 2010 19:25I 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.
-
vrijdag 19 februari 2010 23:16Hi,since I was still unable to find anything on Connect I created a new feedback entry:Please feel free to vote!GreetzFelix
-
zaterdag 20 februari 2010 2:37ModeratorHi 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 -
zaterdag 20 februari 2010 3:51I 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! =) -
zaterdag 20 februari 2010 10:10I 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
-
zaterdag 20 februari 2010 18:51
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 :-)
-- -
donderdag 2 december 2010 23:33
Did you ever find a fix for this issue? I'm having the same problem with my addin.
Paul Juenger- Als antwoord voorgesteld door ASoft-ware donderdag 17 februari 2011 20:31
-
donderdag 17 februari 2011 20:32
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- Als antwoord voorgesteld door ASoft-ware donderdag 17 februari 2011 20:33
- Als antwoord gemarkeerd door Nick AsseloosMVP, Moderator donderdag 21 april 2011 21:48