on 07-22-2005 5:26 PM
Has anyone had this issue? I can deploy the code and run it in debug mode, but my breakpoints are not getting hit. I have set the portal's production mode to false and am including the debug information in the PAR also.
"The breakpoint will not currently be hit. No symbols have been loaded for this document."
Any help appreciated. Thanks - Shawn.
Shawn - did you figure anything out for this? I am getting this problem as well and I am doing nothing with debugging. In fact it's our first attempt to get PDK patch 3 to work on our Portal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is my error specifically.
Exception Details: System.InvalidOperationException: Mutex could not be created.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Mutex could not be created.]
System.Web.Compilation.CompilationMutex..ctor(Boolean initialOwner, String name, String comment) +212
System.Web.Compilation.CompilationLock..cctor() +112
[TypeInitializationException: The type initializer for "System.Web.Compilation.CompilationLock" threw an exception.]
System.Web.Compilation.CompilationLock.SetMutexState(Int32 state) +0
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +21
System.Web.UI.TemplateParser.GetParserCacheItem() +32
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +120
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +36
System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +691
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173
Thanks Shawn. This is quite frustrating and I can't help but feel some irony in seeing the advertisement for the .Net PDK survey a couple posts up.
We had the PDK working with patch 2, but when we upgraded to SP12 we decided to upgrade to patch 3, and now we cannot get it working again.
We are a .Net development shop for web and we are analyzing Web Dynpro and .Net PDK, so I must get it to work. The troubles we've faced with both technologies is bordering humorous.
But, back to the issue... if it helps anyone, we're on EP6, SP12 running on Unix. The NT server is Windows 2k, SP4. We are running a network trace to our NT server and verifying that the portal is in communication with the configured backup NT node (we are not yet sure why it is using the backup and not primary but that's another story). We are running only the NT service version of the Portal .Net runtime, not the console (I've found where it was stated running both can cause the Mutex error).
We're continuing to investigate, I'll follow up if we figure anything out.
Hi Joseph,
1.In order to debug the project mode must to be "Debug" and not "Release".
2.Can you try the following scenario?
a.stop the .net runtime service if its run on the development machine.
b.create new "SAP Portal Application" project
c.put a breakpoint at Page_Load
d.click "start" or F5 in order to debug it.
please tell me what's happen
Regards,
Yehuda
I am not trying to debug. I'm not in debug mode and I have no break points. I just want my Hello World iView to run. I will see what I can do to do those steps though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shawn
Please also ensure that you compile the project in VS.net with the "Debug" mode and not the "Release" mode.
Compiling in "Release" mode and then trying to debug would also typically show a question mark on the breakpoint and give you the message
"The breakpoint will not currently be hit. No symbols have been loaded for this document."
Regards, Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you filled the PDK for .NET survey yet? You can win an MP3 player!!!
http://feedback.sap.com/efs/vote?campaign=39c7899ecca40a6709a638bd0388ac8b&org=332
Can you please provide more details on your development environment?
1.VS Version ?
2.Portal Version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried it with the portal runtime installed locally also but had issues. I have tried it with differing variations of the local runtime using port 8050 or 8060 while varying the projects compile time parms between those 2 also.
Every time I get "System.InvalidOperationException occurred in system.web.dll. Additional information: Mutex could not be created."
I appreciate the responses. I currently do have the runtime installed and running locally.
I removed all breakpoints and put the 2 lines as the first lines in my OnInit. I get the same mutex error as before. When I have a break point set, it contains the question mark when running the project (indicating symbols not being loaded and break point will not be hit).
I just checked my Event Log and saw that I have a SAP log...here is what it contains:
Event Type: Error
Event Source: PortalDesign
Event Category: None
Event ID: 0
Date: 7/25/2005
Time: 11:49:31 AM
User: N/A
Computer: XXXXXXXXX
Description:
1) Exception Information
*********************************************
Exception Type: System.InvalidOperationException
Message: Cannot call Invoke or InvokeAsync on a control until the window handle has been created.
TargetSite: System.Object MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
HelpLink: NULL
Source: System.Windows.Forms
StackTrace Information
*********************************************
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.Control.Invoke(Delegate method)
at SAP.Portal.Design.Deployment.DeployManager.DeployCallBack(IAsyncResult ar)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Debug Output is below. It shows ep.exe being loaded with no symbols.
'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
'ep': Loaded 'C:\Program Files\SAP\Portal Add-in for Visual Studio 2003\Debug\ep.exe', No symbols loaded.
'ep.exe': Loaded 'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded.
'ep.exe': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No symbols loaded.
'ep.exe': Loaded 'c:\windows\assembly\gac\sap.portal.web\1.2.0.0__50436dca5c7f7d23\sap.portal.web.dll', No symbols loaded.
'ep.exe': Loaded 'c:\windows\assembly\gac\sap.portal.common\1.2.0.0__50436dca5c7f7d23\sap.portal.common.dll', No symbols loaded.
'ep.exe': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll', No symbols loaded.
'Domain2': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\sap.portal.web\1.2.0.0__50436dca5c7f7d23\sap.portal.web.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system.runtime.remoting\1.0.5000.0__b77a5c561934e089\system.runtime.remoting.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system.web.regularexpressions\1.0.5000.0__b03f5f7f11d50a3a\system.web.regularexpressions.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\epapp1400\b595ab99\21c94177\ea6en8u5.dll', Symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\microsoft.visualbasic\7.0.5000.0__b03f5f7f11d50a3a\microsoft.visualbasic.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\sap.connector.rfc\2.0.0.0__50436dca5c7f7d23\sap.connector.rfc.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\sap.web\1.2.0.0__50436dca5c7f7d23\sap.web.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\sap.connector\2.0.0.0__50436dca5c7f7d23\sap.connector.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll', No symbols loaded.
'fe27d8a4': Loaded 'c:\windows\assembly\gac\sap.portal.web.ui\1.2.0.0__50436dca5c7f7d23\sap.portal.web.ui.dll', No symbols loaded.
'ep.exe': Loaded 'c:\windows\assembly\gac\system.runtime.remoting\1.0.5000.0__b77a5c561934e089\system.runtime.remoting.dll', No symbols loaded.
'ep.exe': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
Hi Shawn,
Just to explain something -
If you install the runtime on your machine, don't use F5 to debug, since when you click F5 a new local runtime is created for this debugging. So the 2 runtimes collide.
Either use F5, and then you don't need any runtime. (As I said, you need to stop it first).
<b>Note</b> - Setting the working port for <i>this</i> "local debug runtime" is done in the SAP options menu (reached through tools -> options).
Or -
Use "view in portal" to run your component, and attach VS to the ep process to actually debug.
Read more about it in the documentation -
https://media.sdn.sap.com/html/submitted_docs/dotnet/index.htm
There go to
Programming with PDK for .NET ->
Previewing and Debugging Portal Components ->
Debugging a Portal Component
Hope it clears things up,
Ofer
When I have the local runtime service running I get the Mutex error when I attempt to debug. It doesn't execute a single line of my code that I can tell. Maybe it would hit the breakpoint if not for the error.
When I stop the local runtime service and debug, the component does launch in the browser window. The comnponent even works. BUT no breakpoints are hit. No symbols are loaded and I can't debug.
Hi Ofer,
I hadn't seen your original post. I have all the prereqs as far as I can tell. I opened the PAR file with Winzip and confirmed that the PDB file is in it. I have stopped the local runtime. The SAP Project props are set the same as is outlined in the doc you referred me to.
In the project server explorer should I have an entry for localhost that is set as the current project, or is it ok to have it pointed the SAP portal?
Thanks,
Shawn
Hi,
Yes, the server expolorer should point to a valid SAP Portal (J2EE server, not .NET runtime). So - yes, it's ok to have it pointed to the SAP portal.
Did you try to do what Yehuda suggested with the lines of code that call the debugger? (I know you did when youo had both runtimes running at the same time, but did you try it only with the F5 option and local runtime disabled)?
Regards,
Ofer
Hi Ofer,
I did. I attempts to launch a JIT compiler on the portal server itself (and fails) and causes the .NET runtime to stop running. I have to manually restart it.
It seems the code is all being executed on the server and not locally.
I really do appreciate your time, and everyone else's who has responded.
Shawn
Hi Shawn,
I must say, I'm out of ideas. I suggest you open an OSS (support) message, specifying the component EP-PIN-DNT. There you can describe the entire problem and your system landscape, and maybe even refer them to this thread, to speed things up.
Regards,
Ofer
P.S: Just for making sure, could you try this on a different development machine? might be something wrong with your VS...
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.