Free Support Forum - aspose.com

Bc30002

I've been running ASPose.Word for two months without a problem. Today I get the error BC30002. Nothing has changed on the server.

This is an ASP.Net app and here's a summary of the code:

At the top I have "Imports Aspose.Words"

This fails:

If (System.IO.File.Exists(licenseFile)) Then

Dim license As Aspose.Words.License = New Aspose.Words.License

license.SetLicense(licenseFile)

End If

If I comment out the above this fails:

Dim doc As Document = New Document(System.IO.Path.Combine(sDocPath, oFile))

Any ideas? We're on the latest v3.6.??? (whatever it is). I've reinstalled on the server with no luck either. The framework is 2.0.

More information:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'Document' is not defined.

Source Error:

Line 162: Dim oFile As Object = sTemplateFile
Line 163:
Line 164: Dim doc As Document = New Document(System.IO.Path.Combine(sDocPath, oFile))
Line 165: doc.MailMerge.RemoveEmptyParagraphs = True
Line 166: doc.MailMerge.UseNonMergeFields = True

Line 164 is the error line.

Looks like your web application cannot access Aspose.Words library anymore. Please check that the Aspose.Words.dll is present in your application directory. Reinstall Aspose.Words and/or your application if necessary.

Hope this will help.