question

RandallAnderson-8172 avatar image
0 Votes"
RandallAnderson-8172 asked RandallAnderson-8172 commented

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

I get this error on my ASP.NET VB script, even though the SendGrid and SendGrid.Helpers.Mail are referenced:

Imports SendGrid
Imports SendGrid.Helpers.Mail

Is there something more that I need to do to ensure this reference doesn't fail?

dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AddWebSolution-0525 avatar image
0 Votes"
AddWebSolution-0525 answered RandallAnderson-8172 commented

Try checking by lowering the Target framework to match the other 'older' projects if you have
VB library and the target frameworks should match
Check this too :-
error-bc30002-type-xxx-is-not-defined


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks. I have other production applications running and I'm a little concerned about changing the framework at this point. I did notice that the web.config file was missing the reference, but I corrected that and still the same error.

I think the next thing to try is to publish via VS instead of FTP, to see if it loads anything additional that I may be forgetting.

0 Votes 0 ·