Hello, Nagma!
I'll help Michael look through the code once he gets it from you in email. In the meantime, could you try something else, as well? Before you do the solve, save out the layer as a layer file. It's often easier to see a problem with a layer file in Desktop.
Please add this code just before solve:
Dim naLayer As INALayer3 = TryCast(m_pNAContext.Solver.CreateLayer(m_pNAContext), INALayer3)
Dim layerfile As ILayerFile = New LayerFileClass()
layerfile.[New]("c:\temp\MyLayer.lyr")
layerfile.ReplaceContents(TryCast(naLayer, ILayer))
layerfile.Save()
layerfile.Close()
Could you send along that layer file as well? Also, what network dataset are you using?
Thanks!