cancel
Showing results for 
Search instead for 
Did you mean: 

.NET server not running .

Former Member
0 Kudos

Hi All,

I'm trying to run my dotnet iview in the browser and I am getting the error as .net server is not running .I am using EP6 SP9.Also the .net server and the portal server are installed on different machines.

The iViewProcessorService configuration values are:

NET Runtime Engine Servers Configuration=<.net server ip address>:8050

Enable Ja.NET Log=false

Lease Time=5

Portal Servers Configuration=<portal ip address>:8051

Request Timeout=15000

Thanx,

Rohit

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

An obvious questions first - Did you start the NT service?

Assuming yes, can you tell me more about the servers you use (2K,XP,2K3?). mostly I'm asking about where you have the .NET installed. Also you should make sure your firewall (and server) settings allow you to use the two ports you use in your configuration (8050, 8051).

Thanks,

Ofer

Former Member
0 Kudos

Hi,

I am using windows 2k professional for the servers.How can I check my server and firewall settings ,if they allow me to use the ports (8050,8051)in my configuration.

Thanks,

Rohit

Former Member
0 Kudos

Hi,

Try talking to your IT...

The .NET server (NT service) uses TCP/IP to communicate with the J2EE portal. They listen on ports (8050 and 8051, each use 1 port). Sometimes firewalls and some severs (like 2003) block TCP communication on some ports. So you first should make sure these ports are available. If not you can either change the port they use (see configuration guide) to a port that your IT opens for you or simply ask your IT to open these ports.

Regards,

Ofer

Former Member
0 Kudos

Hi Ofer,

Thanks for the help.I changed the ports to 8060 and 8061 and its working fine now.

Thanks and regards,

Rohit

Former Member
0 Kudos

Hi Ofer,

Once again I'm facing the same problem. Recently I changed my machine and I installed everything once again. And now I am getting the same error as .net server not running. I tried many combination of port numbers, but couldn't fix it. Also IT guys told me that these ports are free(not blocked).

please provide some clue to fix it.

regards,

Rohit

Former Member
0 Kudos

Hi,

make sure that you updated the ip of the new machine (which runs the .NET Runtime component) in property of the service in the portal.

regards,

Tsachi

Former Member
0 Kudos

Also note that you must restart the portal service and runtime server after you do any changes in the settings.

Regards,

Ofer

Former Member
0 Kudos

Hi,

I did the same,but to no use. I am still getting the error "Problems occured while trying to connect to .NET server..NET server is not running" while viewing the component in browser. Also with the netstat command in command prompt, I can see .net server port listening to the portal server and vice versa.

rgds,

Rohit

Former Member
0 Kudos

Hi Rohit,

Can you tell me what is written to the log by the service,

(just increase the severity of the logging messages of the service using the Visual Admin).

What is the OS of the machine that runs the portal? What is the portal SP? what version of the PDK are you using?

Regards,

Tsachi

Former Member
0 Kudos

Hi,

Message in log is:

1) Exception Information

*********************************************

Exception Type: System.Runtime.Remoting.RemotingException

Message: Remoting configuration failed with the exception System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port)

is normally permitted

at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)

at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()

at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider)

at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider)

--- End of inner exception stack trace ---

at System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault)

at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)

at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)

at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry)

at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData)

at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData).

TargetSite: Void ConfigureRemoting(System.Runtime.Remoting.Activation.RemotingXmlConfigFileData)

HelpLink: NULL

Source: mscorlib

StackTrace Information

*********************************************

Server stack trace:

at SAP.Portal.Framework.Host.PortalHost.RemotingConfig(String configFile)

at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at SAP.Portal.Framework.Host.PortalHost.RemotingConfig(String configFile)

at SAP.Portal.Framework.Host.PortalHost.Start(HostData hostData)

And I am using Windows 2000 professional for both portal and .net servers, EP6.0 SP9 and SAP PDK for .net 1.0

regards,

Rohit

Former Member
0 Kudos

Hi,

"Only one usage of each socket address (protocol/network address/port)is normally permitted" - it mean that your port is not available - try to use a different one.

Regards,

Yehuda

Former Member
0 Kudos

Hi,

Thats right but the problem is whenever I try to change the port no. in ep.exe.config and epsrv.exe.config files, Itdoesn't show the message that the server is running instead I get this message :

<html>

<head>

<title>Mutex could not be created.</title>

<style>

body {font-family:"Verdana";font-weight:normal;font-size: .7em;c

olor:black;}

p {font-family:"Verdana";font-weight:normal;color:black;margin-t

op: -5px}

b {font-family:"Verdana";font-weight:bold;color:black;margin-top

: -5px}

H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;col

or:red }

H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;col

or:maroon }

pre {font-family:"Lucida Console";font-size: .9em}

.marker {font-weight: bold; color: black;text-decoration: none;}

.version

.error {margin-bottom: 10px;}

.expandable { text-decoration:underline; font-weight:bold; color

:navy; cursor:hand; }

</style>

</head>

<body bgcolor="white">

<span><H1>Server Error in '/EPApp1001' Application.<hr width=100% si

ze=1 color=silver></H1>

<h2> <i>Mutex could not be created.</i> </h2></span>

<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

<b> Description: </b>An unhandled exception occurred during the exec

ution of the current web request. Please review the stack trace for more informa

tion about the error and where it originated in the code.

<br><br>

<b> Exception Details: </b>System.InvalidOperationException: Mutex c

ould not be created.<br><br>

<b>Source Error:</b> <br><br>

<table width=100% bgcolor="#ffffcc">

<tr>

<td>

<code>

An unhandled exception was generated during the execution of the current web req

uest. Information regarding the origin and location of the exception can be iden

tified using the exception stack trace below.</code>

</td>

</tr>

</table>

<br>

<b>Stack Trace:</b> <br><br>

<table width=100% bgcolor="#ffffcc">

<tr>

<td>

<code><pre>

[InvalidOperationException: Mutex could not be created.]

System.Web.Compilation.CompilationMutex..ctor(Boolean initialOwner, String na

me, String comment) +212

System.Web.Compilation.CompilationLock..cctor() +112

[TypeInitializationException: The type initializer for &quot;System.Web.Compilat

ion.CompilationLock&quot; threw an exception.]

System.Web.Compilation.CompilationLock.SetMutexState(Int32 state) +0

System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotF

ound) +21

System.Web.UI.TemplateParser.GetParserCacheItem() +32

System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtu

alPath, String inputFile, HttpContext context) +120

System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, S

tring inputFile, HttpContext context) +36

System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath,

String inputFile, HttpContext context) +43

System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String reque

stType, String url, String path) +44

System.Web.HttpApplication.MapHttpHandler(HttpContext context, String request

Type, String path, String pathTranslated, Boolean useAppConfig) +691

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.

Execute() +95

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; comp

letedSynchronously) +173

</pre></code>

</td>

</tr>

</table>

<br>

<hr width=100% size=1 color=silver>

<b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:1.

1.4322.2032; ASP.NET Version:1.1.4322.2032

</font>

</body>

</html>

<!--

[InvalidOperationException]: Mutex could not be created.

at System.Web.Compilation.CompilationMutex..ctor(Boolean initialOwner, String

name, String comment)

at System.Web.Compilation.CompilationLock..cctor()

[TypeInitializationException]: The type initializer for &quot;System.Web.Compila

tion.CompilationLock&quot; threw an exception.

at System.Web.Compilation.CompilationLock.SetMutexState(Int32 state)

at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfN

otFound)

at System.Web.UI.TemplateParser.GetParserCacheItem()

at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String vi

rtualPath, String inputFile, HttpContext context)

at System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath

, String inputFile, HttpContext context)

at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPat

h, String inputFile, HttpContext context)

at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String re

questType, String url, String path)

at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requ

estType, String path, String pathTranslated, Boolean useAppConfig)

at System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionSt

ep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& compl

etedSynchronously)

-->

Please help.

regards,

Rohit

Former Member
0 Kudos

Hi,

1.If you can see this message in the portal iView - it mean that your the Portal and the .NET server communicate just fine ! but we still need to resolve the Mutex problem.

2 Please try to process "Hello World" sample before running your own portal component.

3.Did you made any changes at the "PortalApps" folder?

4.Can you run .net "WebApplication" on your machine?

Regards,

Yehuda

Former Member
0 Kudos

Hi Yehuda,

For now I am trying "Hello World" only. And I didn't make any change in "PortalApps". And my .net WebApplications are running fine.

regards,

Rohit

Former Member
0 Kudos

Hi Rohit,

The mutex problem can occur when two process of the same .net server are running - the console application and the NT service in the same time ,please ensure that just one of the process is running.

I also offer you to switch on the .NET Logger in the portal - from the Visual Administration go to Log configurator under Location com\sap\portal\dotnet change the severity to All and run the Hello World component and send me the all the log's of com.sap.portal.dotnet.

Yehuda

Former Member
0 Kudos

Hi Rohit,

BTW

you can use this tool to discover if the port is available - <u>http://www.download.com/3000-2085-10062969.html?part=65960%2520&subj=dlpage&tag=button</u>

Yehuda

Former Member
0 Kudos

Hi,

Sorry for not responding for a long time as I was busy with some other work. Anyway I have installed patch2 of PDK.NET and things are working fine now.

Thanks for all your helps.

regards,

Rohit

Former Member
0 Kudos

do i need to install the Visual studio.Net 7.0 to install the SAP.net connector 2.0 on my system. Plz help me in this. This has stopped all my work