Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot load ClassDiagram.cd URI formats are not supported

Tags:

c#

asp.net

When I create a new Class Diagram in my ASP.NET Application C# it gives me an error message that says:

(Cannot load 'C:\Users\...\...\App_Code\ClassDiagram.cd': URI formats are not supported)

I don't have any classes in my ASP.NET project.

like image 308
Eslam Nano Avatar asked Sep 28 '12 12:09

Eslam Nano


1 Answers

string uri = "file:\\C:\Users\...\...\App_Code\ClassDiagram.cd";
string localPath = new Uri(uri).LocalPath;

OR

@'C:\Users\...\...\App_Code\ClassDiagram.cd'

OR

'C:\\Users\\...\\...\\App_Code\\ClassDiagram.cd'

uper three way to solution of you problem

like image 147
Mehul Bhalala Avatar answered Nov 07 '22 09:11

Mehul Bhalala