I can't think of any reason why it would not work in .NET 3.5, the markup should be the same in both cases. But as Kerry said there is no way to help without knowing the error details.
Are you talking about a script error on the page or a server side error that you can find in the log? Give details.
Also server configuration for mime types can be an issue as discussed recently on this thread.