Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Source file not found

    Scheduled Pinned Locked Moved Support
    sourceprogetsymbolsnet
    4 Posts 3 Posters 47 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hi Guys!

      I've already took a look at the following questions, but I can't figure out my problem.

      Question 1

      Question 2

      I have a problem reguarding the source files and symbols using ProGet and VS2017.

      My scenario is the following

      • Develop test assembly on my pc
      • Push mod files on our git server
      • Get mod files in our TeamCity (2018.2.4)
      • Build source in Release mode, pack and publish the AssemblyTest.symbols.nupkg on ProGet
      • In VS2017 I've create a test console app, install the AssemblyTest via Package Reference and I've tried simply to press F12 on the class in my code to show the source code.

      I've configure VS2017 as the guide suggests here

      The nuget pack command was launched with -symbols command line parameter and the symbol.nupkg was created with the following stucture

      • package
        • service
          • metadata
          • ...
      • lib
        • net472
          • TestAssembly.dll
          • TestAssembly.pdb
          • TestAssembly.xml
      • src
        • Properties
          • AssemblyInfo.cs
        • TestClass.cs

      Pressing F12 on TestClass in my code the pdb was correctly downloaded in

      c:\users\me\appdata\local\temp\symbolcache\testassembly.pdb\bf5be5cd155e4400b9b18c0e1e6a05941\testassembly.pdb

      and selecting ReSharper item form the drop down list on the output window in Visual Studio I see

      PdbNavigator: Downloader: http://srv.symbolsource.org/pdb/Public/testassembly.pdb/bf5be5cd155e4400b9b18c0e1e6a05941/testassembly.pdb -> The remote server returned an error: (500) Internal Server Error. <= OK, it's MS symbol server

      PdbNavigator: Downloader: http://myproget/symbols/dev/testassembly.pdb/bf5be5cd155e4400b9b18c0e1e6a05941/testassembly.pdb -> ok, 15.5 KB <= OK, it's our ProGet server

      PdbNavigator: Searching for 'TestAssembly.TestClass' type sources in C:\Users\me\AppData\Local\Temp\SymbolCache\TestAssembly.pdb\bf5be5cd155e4400b9b18c0e1e6a05941\TestAssembly.pdb

      PdbNavigator: Downloader: http://myproget/source-files/dev/TestAssembly/1.0.0.10/TestClass.cs -> The remote server returned an error: (404) Not Found. <= Here we come :(

      PdbNavigator: No sources found in debugging information for 'TestAssembly.TestClass' in assembly 'TestAssembly, Version=1.0.0.10, Culture=neutral, PublicKeyToken=null'

      In my symbolcache folder there is a subfolder with this path

      C:\Users\me\AppData\Local\Temp\SymbolCache\src\source-files\dev\TestAssembly\1.0.0.10

      but there's no source file instead.

      Taking a look inside the pdb file and I've found

      SRCSRV: ini ------------------------------------------------
      VERSION=2
      INDEXVERSION=2
      VERCTRL=http
      SRCSRV: variables ------------------------------------------
      SRCSRVVERCTRL=http
      PGSERVER=http://myproget/source-files
      PGFEED=dev
      PGPKGID=TestAssembly
      PGPKGVER=1.0.0.10
      HTTP_EXTRACT_TARGET=%pgserver%/%pgfeed%/%pgpkgid%/%pgpkgver%/%var2%
      SRCSRVTRG=%http_extract_target%
      SRCSRVCMD=
      SRCSRV: source files ---------------------------------------
      c:\buildagent\work\b5cfc05c815c43d9\testassembly\testclass.cs*TestClass.cs
      SRCSRV: end ------------------------------------------------
      

      So, my question is: how can I download correctly the source file from ProGet? What's wrong in my scenario?

      Thank you!
      Fabrizio

      Product: ProGet
      Version: 5.1.23

      1 Reply Last reply Reply Quote 0
      • jjonesJ Offline
        jjones inedo-engineer
        last edited by

        Hi Fabrizio,
        It appears that the ProGet source code is fine but the issue is with NuGet symbol & source server.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Hi Jason,
          thank you for your reply!
          So, the problem is how I pack my assebly?
          How can I solve the problem?

          Thank you!
          Fabrizio

          1 Reply Last reply Reply Quote 0
          • jraschJ Offline
            jrasch inedo-engineer
            last edited by

            Apologies, I had seen the StackOverflow post first, so I responded here: https://stackoverflow.com/questions/56338757/proget-symbols-and-source-server-download-pdb-correctly-but-source-not-found/56397293#56397293

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation