I use VS2010. When I try to add WCF service to my project and rebuild the solution, I receive COMPILATION error "object reference not set to an instance of an object" Without WCF service everything looks fine.
Then you must be doing something to that pure service before compilation and after add it to solution.
Or you have compilation service in entirely different place.
That what I can say without more info.
Are you asking about using the enter button to submit a form?
If so, you have to wrap the area in a panel, and set the panels default button ID for submit. Then the content in that area, if the cursor is in the textbox, will fire the assigned button. If the cursor is not in a element within the panel, nothing will fire.