win2003 w/sharepoint giving syntax errors

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We have pages that were updated with vs2005beta2 from v1.1 code and ran fine
on xp-pro, but placing them on a server are blowing on .CommandType in the
init() section of designer generated code left over from v1.1:


Me.SqlSelectCommand1.CommandType = CommandType.StoredProcedure

Compiler Error Message: BC30451: Name 'CommandType' is not declared.

Where should I look for how to fix this, or, do I have to refactor the code
and get rid of the old init() blocks?

Thanks for any clues ...
 
as there is no project file and asp.net does the compile, you have to add
the references to the aspx (System.Data.dll in your case).

-- bruce (sqlwork.com)
 
Thanks Bruce, you were right on about assemblies, the previous
web.config had a <compilers> section with the <assemblies> added there
but it won't take that tag now so I removed them, so, where are
assemblies added now?

Haven't found doc's but still trying things and looking.

tomm
 
Found it, the assemblies section was in the compilers tag, not above
that under the compilation tag. Took a while but it was a copied file
so I thought the original code was OK, shoulda' known ...

Thanks for the response.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top