** NOTE: ALL OF OUR PRODUCTS RUN ON ALL VERSIONS OF .NET. **
The instructions below are for people using VS2010 and beyond.
--------------------------
As more and more people are upgrading to VS2010, and beyond, I am getting more of the following emails:
aspNetEmail (or any of our other products) doesn't work in later versions of Visual Studio. I usually get one of the following errors:
"aspNetEmail is not declared, it may be inaccessible due to its protection level."
Or
"The referenced assembly "…" could not be resolved because it has a dependency upon System.Web (or some other internal .NET namespace). Please remove references to assemblies not in the targeted framework or consider retargeting your project"
Usually these exceptions occur when the developer is building a client side application.
Starting in VS2010, VS tries to be too smart for it's own good. When you build a client application (console.exe, winform, etc…) VS limits the number of namespaces you need access too, because it thinks you shouldn't need them.
To change this behavior, what you need to do, is change the target framework from a subset of namespaces, to all of them.
To change this, in VS.NET Solution Explorer, Right-Click on your project, an select Properties.
On the Application tab, set the Target Framework to be ".NET Framework XX". By default it is set to ".NET Framework XX Client Profile". Press Ctrl-S for save, and you are done.
Below are 2 pictures that display changing the target framework.
As always, if anyone has any questions, feel free to contact me.
Thanks!
Dave Wanta
C# Screenshot:
VB.NET Screenshot (this option is found under the Compile tab. Then, click the "Advanced Compile Option" button.