Link to home
Start Free TrialLog in
Avatar of Gregdo
GregdoFlag for Canada

asked on

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

Avatar of GiftsonDJohn
GiftsonDJohn
Flag of India image

The file CppCodeProvider.dll  is bundled with .Net Framework version 2.0 and above.
Avatar of Gregdo

ASKER

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.
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.
Avatar of Gregdo

ASKER

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.

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
Avatar of Gregdo

ASKER

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

Avatar of Gregdo

ASKER

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!
ASKER CERTIFIED SOLUTION
Avatar of Gregdo
Gregdo
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial