Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Mar 02, 2012 01:13 PM|LINK
I have built a web site that is using an URLRewrite module I wrote. The module is a vb class file compiled in a dll, when was developing using VS 2005 and the 2.0 .Net framework. Now I am using VS 2010 and the 3.5 framework (my hosting provider does not support
I cannot make any change to the vb file, because whenever I compile the vb into the dll using the VBC command, the dll is compiled with the framework 4.0 and I get the "System.BadImageFormatException" error message.
My only chance is to compile the vb file using the VS2005 VBC command prompt from another computer and put bacj the dll into my Bin folder.
How can I solve this issue? How can I compile, with the VBC command prompt, targeting a different framework?
Thanks and regards,