IDatasetContainer2.CreateDataset fails with ArcObjects 10.1

Discussion created by arnaud31 on Jul 30, 2013
Latest reply on Sep 4, 2013 by arnaud31

I have a small application used to check and generate network, created with the help of the following tutorial:

It worked just fine with ArcGIS 10, but since I had to upgrade to 10.1, the application fails on this line:
INetworkDataset networkDataset = (INetworkDataset)datasetContainer2.CreateDataset(deDataset);

The error code is "System.Runtime.InteropServices.COMException was unhandled Message=Exception from HRESULT:
0x80042262", which really isn't helpful. Is there something new I could have missed, or some help on what could cause such an error ?