on 01-31-2005 7:56 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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 "System.Web.Compilat
ion.CompilationLock" 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& comp
letedSynchronously) +173
</pre></code>
</td>
</tr>
</table>
<br>
<hr width=100% size=1 color=silver>
<b>Version Information:</b> 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 "System.Web.Compila
tion.CompilationLock" 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
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
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
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.