cancel
Showing results for 
Search instead for 
Did you mean: 

Fail to execute my portal application .

Former Member
0 Kudos

Hi all.

I am using SAP Portal Add-in 1.0 Patch 3 for Visual Studio 2003 with SAP Portal Runtime 1.0 Patch 3 for Microsoft .NET and SAPDotNetConnector2.0.

Function filter of SAP R3 destination is succesfully created and my RFC enabled function is successfully

assigned to this filter.

I deployed this application successfully on portal

when i excute this par file it gives me error.

-


Server Error in '/EPApp1400' Application.

-


The key 'portalDestination1.SystemAlias' does not exist in the appSettings configuration section.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The key 'portalDestination1.SystemAlias' does not exist in the appSettings configuration section.

Source Error:

Line 74: this.portalDestination1.SystemAlias = ((string)(configurationAppSettings.GetValue("portalDestination1.SystemAlias", typeof(string))));

Source File: c:\portal application\conferbook\portalcomponent1.ascx.cs Line: 74

Stack Trace:

[InvalidOperationException: The key 'portalDestination1.SystemAlias' does not exist in the appSettings configuration section.]

System.Configuration.AppSettingsReader.GetValue(String key, Type type) +470

ConferBook.PortalComponent1.InitializeComponent() in c:\portal application\conferbook\portalcomponent1.ascx.cs:74

ConferBook.PortalComponent1.OnInit(EventArgs e) in c:\portal application\conferbook\portalcomponent1.ascx.cs:55

System.Web.UI.Control.InitRecursive(Control namingContainer) +233

System.Web.UI.Control.AddedControl(Control control, Int32 index) +185

System.Web.UI.ControlCollection.Add(Control child) +153

SAP.Portal.Web.UI.PageComponent.OnInit(EventArgs e) +175

System.Web.UI.Control.InitRecursive(Control namingContainer) +233

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

-


my app.config file is here

-


<?xml version="1.0" encoding="utf-8"?>

<configuration>

<configSections>

<appSettings>

<!-- User application and configured property settings go here.-->

<!-- Example: <add key="settingName" value="settingValue"/> -->

<add key="portalDestination1.AppServerHost" value="172.25.8.91" />

<add key="portalDestination1.Client" value="100" />

<add key="portalDestination1.Language" value="EN" />

<add key="portalDestination1.LogonGroup" value="" />

<add key="portalDestination1.MsgServerHost" value="" />

<add key="portalDestination1.SAPSystemName" value="172.25.8.91" />

<add key="portalDestination1.SystemNumber" value="00" />

<add key="portalDestination1.Trace" value="True" />

<add key="portalDestination1.SystemAlias" value="172_25_8_91_server" />

<add key="confproxy1.filter" value="Filter1" />

</appSettings>

</configSections>

<system.web>

<compilation>

<assemblies>

<add assembly="SAP.Connector, Version=2.0.0.0, Culture=neutral, PublicKeyToken=50436dca5c7f7d23" />

<add assembly="SAP.Connector.Rfc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=50436dca5c7f7d23" />

</assemblies>

</compilation>

</system.web>

</configuration>

-


Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This is caused because of one major difference of how the PDK runtime works from how regular asp.net works.

See "<b>LIMITATION: Using Dynamic Properties Causes a Runtime Error</b>" here:

https://media.sdn.sap.com/html/submitted_docs/dotnet/Limitations/Known%20Bugs%20and%20Limitations.ht...

Regards,

Ofer

-


Have you filled the PDK survey yet? You can win an MP3 player!!!

http://feedback.sap.com/efs/vote?campaign=39c7899ecca40a6709a638bd0388ac8b&org=332

Former Member
0 Kudos

dynamic property has been removed from all components

but still i am getting same error.

Former Member
0 Kudos

If you removed all dynamic properties, then you couldn't get this exact same error. make sure the codebehind doesn't have this code:

this.portalDestination1.SystemAlias = ((string)(configurationAppSettings.GetValue("portalDestination1.SystemAlias", typeof(string))));

this.portalDestination1.AppServerHost = ((string)(configurationAppSettings.GetValue(...

this.portalDestination1.Client = ((int)(configurationAppSettings.GetValue(...

this.portalDestination1.Language = ((string)(configurationAppSettings.GetValue(...

this.portalDestination1.LogonGroup = ((string)(configurationAppSettings.GetValue(...

this.portalDestination1.MsgServerHost = ((string)(configurationAppSettings.GetValue(...

this.portalDestination1.SAPSystemName = ((string)(configurationAppSettings.GetValue(...

this.portalDestination1.SystemNumber = .((int)(configurationAppSettings.GetValue(...

this.portalDestination1.Trace = ((string)(configurationAppSettings.GetValue(...

but instead has:

this.portalDestination1.SystemAlias = "XXXX";

All other properties should come from portal, based on this system alias.

Regards,

Ofer

Former Member
0 Kudos

Hi,

I recieved another error while excuting my par file on portal.Here ZConf is my RFC enabled function module and

ZCONFBOOK is R3 table.

-


Error

-


You must set a connection before doing a call.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: SAP.Connector.RfcException: You must set a connection before doing a call.

Source Error:

Line 120: {

Line 121: object[]results = null;

Line 122: results = this.SAPInvoke("Zconf",new object[] {

Line 123: filter,_table });

Line 124: _table = (ZCONFBOOKTable) results[0];

Source File: C:\portal application\ConferBook\confproxy.cs Line: 122

Stack Trace:

[RfcException: You must set a connection before doing a call.]

SAP.Connector.SAPClient.BeforeCall() +211

SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) +13

ConferBook.confproxy.Zconf() in C:\portal application\ConferBook\confproxy.cs:122

ConferBook.PortalComponent1.Page_Load(Object sender, EventArgs e) in c:\portal application\conferbook\portalcomponent1.ascx.cs:93

System.Web.UI.Control.OnLoad(EventArgs e) +55

SAP.Portal.Web.UI.PortalComponent.OnLoad(EventArgs e) +17

System.Web.UI.Control.LoadRecursive() +27

System.Web.UI.Control.LoadRecursive() +90

System.Web.UI.Control.LoadRecursive() +90

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

-