Can't add datasource2 to webform

Posts   
 
    
Gerben avatar
Gerben
User
Posts: 12
Joined: 20-Nov-2008
# Posted on: 08-Dec-2008 17:26:57   

Hi there,

I've succesfully added the datasource2 to my toolbox, but I can't drag it onto a webform. That is, I can perform the action, but the necessary asp tags aren't added to my webform. Any ideas as to what is causing this problem?

Note that once I've added the tags manually the datasource2 works as might be expected, I just can't add it to the form using the toolbox.

Regards, Gerben ten Wolde

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39859
Joined: 17-Aug-2003
# Posted on: 08-Dec-2008 17:30:32   

vs.net version? Did you drag it to the form when the form was in design view? (as that's likely the cause it didn't work)

Frans Bouma | Lead developer LLBLGen Pro
Gerben avatar
Gerben
User
Posts: 12
Joined: 20-Nov-2008
# Posted on: 09-Dec-2008 10:04:22   

Otis,

My vs.net version is 2008 and yes, the webform was in design view. I've tried to drag it to the source view, but then I get the message:

The operation could not be completed. Ongeldige FORMATETC-structuur

(Nice touch of dutch there btw wink )

Weird thing is that is did work after I first installed it into the toolbox (I just dragged it to the design view and the component appeared including the 'register' tag in the aspx source).

Vs.net however didn't persist the toolbox then and I had to install it again and again. At this moment the datasource2 is present at vs.net startup (somehow vs.net has remembered) but now I just won't work.

Personally I think vs.net is to blame because the datasource2 does behave normally on other computers at my department. Still, any pointers to get the component working again would be appreciated.

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 09-Dec-2008 10:54:27   

Please make sure you are referencing the exactly same (ORMSupport) dll in your application and in the toolbox.

Do you have V.S 2008 SP1 installed?, if not please install it and try again.

Gerben avatar
Gerben
User
Posts: 12
Joined: 20-Nov-2008
# Posted on: 09-Dec-2008 15:29:19   

Walaa,

Looks like this might be the problem (I was sure I had checked this, but... flushed ).

The solution for me was to just remove the incorrect datasource2 from the toolbox and drop the correct dll onto the toolbox and presto! a working datasource2. Now I'm hoping that vs.net remembers this the next time I restart it.

Thanks for you prompt support!