This project has moved. For the latest updates, please go here.

The given path's format is not supported.

Sep 9, 2012 at 5:52 AM

Hi!

I am using the netmassdownloader for downloading the pdb-Files on a german windows 8 installation.

The bat-file looks like this:

D:\symbolloader\NetMassDownloader.exe -directory "C:\Program Files\Reference Assemblies" -directory "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework" -directory "C:\Windows\Microsoft.NET" -output "D:\debugSymbols"
pause

The PDB-Files seem to be downloaded ok but the output often says: "The given path's format is not supported".

What am I doing wrong?

Greetings

Wolfram

 

Dec 3, 2012 at 9:28 PM

It is caused by the line m_http_alias.Replace("http://ReferenceSource.microsoft.com/",string.Empty).Replace("/","\\"); in DownloadLibrary\Classes\SrcSrvParsing\SrcSrvFile.cs:

while ((currentLine = bodyReader.ReadLine()) != null)
                {
                    if (currentLine == FileListBegin)
                    {
                        insideFileParsing = true;
                        currentLine = bodyReader.ReadLine();
                        m_targetPath +=
                            m_http_alias.Replace("http://ReferenceSource.microsoft.com/",string.Empty).Replace("/","\\");

Fix:

 

                Regex regex = new Regex("http://ReferenceSource.microsoft.com/", RegexOptions.IgnoreCase);
                while ((currentLine = bodyReader.ReadLine()) != null)
                {
                    if (currentLine == FileListBegin)
                    {
                        insideFileParsing = true;
                        currentLine = bodyReader.ReadLine();
                        m_targetPath += regex.Replace(m_http_alias, "").Replace("/","\\");

 

 

Coordinator
Dec 4, 2012 at 6:29 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Dec 4, 2012 at 6:30 PM
Hi JarLob,

Can you please provide the bugfix as a patch to the given code block.
JarLob wrote:

It is caused by the line m_http_alias.Replace("http://ReferenceSource.microsoft.com/",string.Empty).Replace("/","\\"); in DownloadLibrary\Classes\SrcSrvParsing\SrcSrvFile.cs:

 

while ((currentLine = bodyReader.ReadLine()) != null)
                {
                    if (currentLine == FileListBegin)
                    {
                        insideFileParsing = true;
                        currentLine = bodyReader.ReadLine();
                        m_targetPath +=
                            m_http_alias.Replace("http://ReferenceSource.microsoft.com/",string.Empty).Replace("/","\\");

Fix:

 

 

                Regex regex = new Regex("http://ReferenceSource.microsoft.com/", RegexOptions.IgnoreCase);
                while ((currentLine = bodyReader.ReadLine()) != null)
                {
                    if (currentLine == FileListBegin)
                    {
                        insideFileParsing = true;
                        currentLine = bodyReader.ReadLine();
                        m_targetPath += regex.Replace(m_http_alias, "").Replace("/","\\");

 

 

 

Coordinator
Dec 4, 2012 at 6:32 PM

The given bugfix is copied to the task list and will be patched in the latest netmassdownloader version.

Thx for your reporting.