cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Usermanagement after upgrade to PDK.Net 2.0

Former Member
0 Kudos

Following an upgrade from .net PDK Patch 3 to version 2.0 the following code errors.

UserManagement user = new UserManagement();

UserInfo currentuser = user.GetUser(User.Identity.Name.ToString());

The following error is generated.

Cannot get the member GetService

[SerializationException: Cannot get the member GetService.]

System.Reflection.MemberInfoSerializationHolder.GetRealObject(StreamingContext context) +836

System.Exception.GetExceptionMethodFromString() +454

System.Exception.GetTargetSiteInternal() +43

System.Exception.get_TargetSite() +5

SAP.Portal.Web.UI.PageComponent.OnError(EventArgs e) +49

System.Web.UI.Page.HandleError(Exception e) +60

System.Web.UI.Page.ProcessRequestMain() +2100

System.Web.UI.Page.ProcessRequest() +218

System.Web.UI.Page.ProcessRequest(HttpContext context) +18

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

Any help would be greatly appriciated.

Accepted Solutions (1)

Accepted Solutions (1)

rima-sirich
Advisor
Advisor
0 Kudos

Hi Paul,

Did you deploy the com.sap.portal.dotnet.services.systems.sda that is coming with the PDK 2.0 installation ?

Regards,

Rima.

Former Member
0 Kudos

Hi Rima,

I tried to but the SDM said that there was already a version deployed that was at the same or higher version.

We are running SP16 if that helps.

Many Thanks

rima-sirich
Advisor
Advisor
0 Kudos

Hi Paul,

NW04 SP16 or higher includes PDK 2.5 sdas. That is the reason why deployment didn't succeed. Actually, Portal Runtime for .NET in PDK 2.0 doesn't support working with NW04 SP16 or higher. If you will search in this forum, you will find that customers that tried to work with PDK 2.0 on NW04 SP16 didn't succeed even to run simple .NET iView. If you want to continue developing in Visual Studio .NET 2003, you have 2 options:

1. To stay with PDK Add-in 2.0 and upgrade to PDK Runtime 2.5.

2. Un-deploy 2 PDK's sdas from the Portal and deploy previous version of the sdas that come with the PDK 2.0 installation.

Hope it will solve your problem.

Regards,

Rima.

Answers (1)

Answers (1)

Former Member
0 Kudos

Brilliant, that worked.

Thank you very much for your assistance.