• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6593
  • Last Modified:

Web Service can't find CppCodeProvider.dll and VJSharpCodeProvider.dll

I have used Visual Studio 2005 and .NET 2.0 to developed a .NET web service in C# which connects to a dll written with C++.NET which in turn connects to a bunch of unmanaged C++ dlls.  Everything works well on my development computer.

I'm now trying to install the web service in IIS on a Windows XP Pro computer.  I have installed the .NET framework 2.0 SP1 and the Visual Studio redistributable packages.  

When I attempt to load the web service, I get errors that state that CppCodeProvider.dll and VJSharpCodeProvider.dll cannot be located.  I had assumed that the CppCodeProvider.dll would be part of the .NET framework install package.  I have found a VJ# redistributable package which contains VJSharpCodeProvider.dll.

Where can I get an install package containing CppCodeProvider.dll?

Also, why do I need the VJ# provider even though my application does not use java?

Thanks,
- Greg
*** Assembly Binder Log Entry  (29/04/2009 @ 5:14:13 PM) ***
 
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
 
Assembly manager loaded from:  c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  c:\windows\microsoft.net\framework\v2.0.50727\aspnet_wp.exe
--- A detailed error log follows. 
 
=== Pre-bind state information ===
LOG: User = GREG-VM-XP\ASPNET
LOG: DisplayName = CppCodeProvider, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/
LOG: Initial PrivatePath = C:\Program Files\DMSI\MAINTelligence\MTWebService\bin
LOG: Dynamic Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mtwebservice\3179095c
LOG: Cache Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mtwebservice\3179095c
LOG: AppName = 11e47155
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files\DMSI\MAINTelligence\MTWebService\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: CppCodeProvider, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/mtwebservice/3179095c/11e47155/CppCodeProvider.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/mtwebservice/3179095c/11e47155/CppCodeProvider/CppCodeProvider.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/bin/CppCodeProvider.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/bin/CppCodeProvider/CppCodeProvider.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/mtwebservice/3179095c/11e47155/CppCodeProvider.EXE.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/mtwebservice/3179095c/11e47155/CppCodeProvider/CppCodeProvider.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/bin/CppCodeProvider.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/bin/CppCodeProvider/CppCodeProvider.EXE.
LOG: All probing URLs attempted and failed.
 
============================================================================
 
*** Assembly Binder Log Entry  (29/04/2009 @ 5:14:12 PM) ***
 
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
 
Assembly manager loaded from:  c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  c:\windows\microsoft.net\framework\v2.0.50727\aspnet_wp.exe
--- A detailed error log follows. 
 
=== Pre-bind state information ===
LOG: User = GREG-VM-XP\ASPNET
LOG: DisplayName = VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/
LOG: Initial PrivatePath = C:\Program Files\DMSI\MAINTelligence\MTWebService\bin
LOG: Dynamic Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mtwebservice\3179095c
LOG: Cache Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mtwebservice\3179095c
LOG: AppName = 11e47155
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files\DMSI\MAINTelligence\MTWebService\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/mtwebservice/3179095c/11e47155/VJSharpCodeProvider.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/mtwebservice/3179095c/11e47155/VJSharpCodeProvider/VJSharpCodeProvider.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/bin/VJSharpCodeProvider.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/bin/VJSharpCodeProvider/VJSharpCodeProvider.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/mtwebservice/3179095c/11e47155/VJSharpCodeProvider.EXE.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/mtwebservice/3179095c/11e47155/VJSharpCodeProvider/VJSharpCodeProvider.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/bin/VJSharpCodeProvider.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/DMSI/MAINTelligence/MTWebService/bin/VJSharpCodeProvider/VJSharpCodeProvider.EXE.
LOG: All probing URLs attempted and failed.

Open in new window

0
Gregdo
Asked:
Gregdo
  • 5
  • 3
1 Solution
 
GiftsonDJohnCommented:
The file CppCodeProvider.dll  is bundled with .Net Framework version 2.0 and above.
0
 
GregdoAuthor Commented:
I had expected that the CppCodeProvider.dll would be bundled with the .NET framework, but I have searched on several computers with the framework installed and none of them have CppCodeProvider.dll.  The only computers that seem to have it are the ones with VIsual Studio 2005 installed on them, and in that case, CppCodeProvider.dll is installed in a sub directory of VS, not in the .NET directories.

Is there some option that needs to be specified when installing .NET to make it install CppCodeProvider.dll?  I don't recall seeing any options in the installer program.
0
 
GiftsonDJohnCommented:
That file will be installed in GAC as MSIL. If your installation has not generated IL then it won't be there. Try reinstalling .Net Framework 2.0.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
GregdoAuthor Commented:
I had already tried a reinstall, but I tried again.  I uninstalled the .NET Framework 2.0, rebooted, reisntalled again (SP2) and rebooted once more.  Unfortunately there is no change.  Still no CppCodeProvider.

I had a look in the C:\WINDOWS\assembly directory and there is no sign of it.

0
 
GiftsonDJohnCommented:
Hi,

Try with windows command prompt.

open command prompt and browse to

C:\WINDOWS\assembly\GAC_MSIL\CppCodeProvider\8.0.0.0__b03f5f7f11d50a3a

You can see the dll stored over there. Check the attached image.
CppCodeProvider.JPG
0
 
GregdoAuthor Commented:
It's not there.  See list of everything in C:\WINDOWS\assembly\GAC_MSIL below.
Accessibility
AspNetMMCExt
cscompmgd
IEExecRemote
IEHost
IIEHost
Microsoft.AnalysisServices
Microsoft.AnalysisServices.AdomdClient
Microsoft.AnalysisServices.DeploymentEngine
Microsoft.Build.Engine
Microsoft.Build.Framework
Microsoft.Build.Tasks
Microsoft.Build.Utilities
Microsoft.Build.VisualJSharp
Microsoft.DataWarehouse.Interfaces
Microsoft.ExceptionMessageBox
Microsoft.JScript
Microsoft.MSXML
Microsoft.NetEnterpriseServers.ExceptionMessageBox
Microsoft.SqlServer.ConnectionInfo
Microsoft.SqlServer.CustomControls
Microsoft.SqlServer.GridControl
Microsoft.SqlServer.Instapi
Microsoft.SqlServer.RegSvrEnum
Microsoft.SqlServer.Replication.BusinessLogicSupport
Microsoft.SqlServer.Rmo
Microsoft.SqlServer.ServiceBrokerEnum
Microsoft.SqlServer.Setup
Microsoft.SqlServer.Smo
Microsoft.SqlServer.SmoEnum
Microsoft.SqlServer.SqlEnum
Microsoft.SqlServer.SqlTDiagM
Microsoft.SqlServer.SString
Microsoft.SqlServer.WizardFrameworkLite
Microsoft.SqlServer.WmiEnum
Microsoft.VisualBasic
Microsoft.VisualBasic.Compatibility
Microsoft.VisualBasic.Compatibility.Data
Microsoft.VisualBasic.Vsa
Microsoft.VisualC
Microsoft.VisualStudio.CommonIDE
Microsoft.VisualStudio.Shell
Microsoft.VisualStudio.VSContentInstaller
Microsoft.VisualStudio.Zip
Microsoft.Vsa
Microsoft.Vsa.Vb.CodeDOMProcessor
Microsoft_VsaVb
MSClusterLib
Pervasive.Data.SqlClient
sysglobl
System
System.Configuration
System.Configuration.Install
System.Data.SqlXml
System.Deployment
System.Design
System.DirectoryServices
System.DirectoryServices.Protocols
System.Drawing
System.Drawing.Design
System.Management
System.Messaging
System.Runtime.Remoting
System.Runtime.Serialization.Formatters.Soap
System.Security
System.ServiceProcess
System.Web.Mobile
System.Web.RegularExpressions
System.Web.Services
System.Windows.Forms
System.Xml
vjscor
vjsjbc
vjsvwaux

Open in new window

0
 
GregdoAuthor Commented:
I finally came across a helpful link that says that CppCodeProvider is not part of the .NET Framework, but it is part of the .NET SDK (https://www.atalasoft.de/cs/forums/post/9925.aspx).

I have downloaded and installed the SDK and now CppCodeProvider exists.

Problem solved!
0
 
GregdoAuthor Commented:
More info just for anyone who is interested.  In my case, I found that the "Define TRACE constant" option was enabled for the release build.  When I turned it off, the program no longer needed CppCodeProvider.dll and VJSharpCodeProvider.dll.

So, in summary make sure "Define DEBUG constant" and "Define TRACE constant" are off and you won't need CppCodeProvider.dll and VJSharpCodeProvider.dll.

If you actually use CppCodeProvider.dll and therefore still need it, you need to install the .NET 2.0 SDK as it is not part of the regular .NET Framework.

If you need VJSharpCodeProvider.dll, you need to install the VJ# redistributable
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now