Keith Chisarik (10/25/2011)
I have more than a few times forgotten to make sure the Inherits and CodeBehind attributes in my Page directive in my web form matches the name of my partial class when cutting and pasting... might that be it?
I also make sure the Inherits includes the namespace for my project.
Also, unless the template has been fixed, it includes references to the 1.6.0.0 assemblies and you need to change them to 1.7.0.0 in your web.config.
If that doesnt work feel free to post a code snippet, I do a fair amount of web work with SF. Also, maybe try a simple form with just a single field to make sure your "wired up" properly before pasting too much in. Just some thoughts. Good luck.Hi Keith.
Thanks for trying to help. I thought I looked at everything carefully, but I will try again in the morning. I knew that it had to be something stupid - maybe it was just a case of looking at it so long that I didn't see what was in front of my nose.
I came home and tried to see what was up on my machine at home, but, if you can believe it, the problem is worse here. When I try to add an SF webform to the project in VS2010, it looks like it is trying to use the VS2008 version of the template. Then when I try to add an SF webform to a different project in VS2008, it looks like it is trying to use the VS2010 version. Is this even possible? This is the error I get in VS2010 when I try to add an SF webform:
When I try the same thing is VS2008, the error is the same but it references version 10.0.0.0
Furthermore, the template dialog is goofy. This is what I get when I select add new item:
No SF templates, But if I click on Visual C#, the SF templates show up like this:
If I select SF Web form, I get the error pictured in the first image.
I also tried adding an SF webform to the Sample web app and in that solution, everything is peachy keen. What is up with that?