FishmanTobin
asked on
System.UnauthorizedAccessException: Access to the path is denied IBM DB2
I have several programs which are not ASP.net but VB.net and I am getting this error:
System.Reflection.TargetIn vocationEx ception: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationE xception: The type initializer for 'IBM.Data.DB2.iSeries.iDB2 Trace' threw an exception. ---> System.UnauthorizedAccessE xception: Access to the path is denied.
sporatically from some and consistently from others.
This all began after we upgraded to S6R1 and began using version 12 of the IBM.net connector.
The command this is occuring on is:
Public Connection As New iDB2Connection
Here is the full stack trace after the above command is executed:
System.Reflection.TargetIn vocationEx ception: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationE xception: The type initializer for 'IBM.Data.DB2.iSeries.iDB2 Trace' threw an exception. ---> System.UnauthorizedAccessE xception: Access to the path is denied.
at System.IO.__Error.WinIOErr or(Int32 errorCode, String maybeFullPath)
at System.Threading.EventWait Handle..ct or(Boolean initialState, EventResetMode mode, String name)
at IBM.Data.DB2.iSeries.iDB2N amedEvent. .ctor(Stri ng eventName)
at IBM.Data.DB2.iSeries.iDB2T race..ccto r()
--- End of inner exception stack trace ---
at IBM.Data.DB2.iSeries.iDB2C onnection. .ctor()
System.Reflection.TargetIn
sporatically from some and consistently from others.
This all began after we upgraded to S6R1 and began using version 12 of the IBM.net connector.
The command this is occuring on is:
Public Connection As New iDB2Connection
Here is the full stack trace after the above command is executed:
System.Reflection.TargetIn
at System.IO.__Error.WinIOErr
at System.Threading.EventWait
at IBM.Data.DB2.iSeries.iDB2N
at IBM.Data.DB2.iSeries.iDB2T
--- End of inner exception stack trace ---
at IBM.Data.DB2.iSeries.iDB2C
ASKER
Gary it says this PTF solves this problem. What PTF? Where should I look for log file folders for trace?
PTF number is listed at the top of the article: SE37122. Also in the title bar of your browser most likely when viewing the page.
ADO.NET provider trace log file by default is iDB2Log.txt
Tracing is controlled kicked off using the cwbmptrc program supplied with Client Access. If I understand correctly, this program just changes some registry entries that the AS/400 .NET provider looks at to decide if it needs to produce trace output. This means that if you use the program to turn on tracing, it stays on until you disable it.
You can also specify tracing in your connection string using the "Trace" parameter.
Here is a nice article on tracing: http://systeminetwork.com/node/26086
- Gary Patterson
ADO.NET provider trace log file by default is iDB2Log.txt
Tracing is controlled kicked off using the cwbmptrc program supplied with Client Access. If I understand correctly, this program just changes some registry entries that the AS/400 .NET provider looks at to decide if it needs to produce trace output. This means that if you use the program to turn on tracing, it stays on until you disable it.
You can also specify tracing in your connection string using the "Trace" parameter.
Here is a nice article on tracing: http://systeminetwork.com/node/26086
- Gary Patterson
ASKER
Not quite. I made sure tracing was off and I gave the everyone group full control of my entire C drive. Same error persists.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
We can't find the PTF online anywhere.
ASKER
We contacted IBM showed them the article you found and they gave us a link to the patch. That worked points awarded. Thanks.
ASKER
Thanks for your help with this.
Glad to help. For future reference, you can obtain PTF's online via Fix Central at
http://www.ibm.com/support/fixcentral/
- Gary Patterson
http://www.ibm.com/support/fixcentral/
- Gary Patterson
IBM has a likely PTF for this issue:
http://www-01.ibm.com/support/docview.wss?uid=nas23fe81c193be8ca8d8625756f004215b7
- Gary Patterson