Question:
I'm getting a strange error when I try to add a dataset to the app_code folder.
I simply right click on the folder -> add new item -> "choose dataset" -> click OK.
I get the follow error:
Unable to cast COM Object of type 'System.__ComObject' to interface type 'System.ComponenetModel.Designer.IDesignerHost'. This operation failed because the QueryInterface call to the Com component for the interface with the IID '{EEC98CD8-EF5B-3B60-82C9-86F616F6BB20}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
I've tried to repair the Visual Studio 2005 installation and it I still have the same error.
I'm running on XP SP 2. So far all else about the VS 2005 installation seems good, just this error for now.
Answer1:
Hi Buddy,
Please check whether you added the reference to the dataset .
In the sense right click on your project click add reference and then select from com components whether the following reference has been added or not
Let me know if this helps you
Mark As Answer if this helps you
Further Queries Recommended
Happy Coding
Answer2:
Which com reference do you mean?
I went to try and add reference and was looking for the System.__ComObject or System.ComponenetModel.Designer.IDesignerHost and it's not there.
I don't understand your last reply, can you please be more specific?
Answer3:
I've now tried to installed VS 2005 SP1. But the same problem is still there. Can someone please help me fix this?
Answer4:
What's the status on this issue? I'd just like to know. I hate to see this thread get buried and never resolved. I know it's a rare issue and one that has little well known solution.
I'd like to use best practice of using dataset as DAL, but if the dataset is having errors, it's a shame. *sigh*
Please help me resolve this problem, what if you come across it in the middle of some critical time?