Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSTS build error: Index source information could not be retrieved. #494

Closed
murraybiscuit opened this issue Jul 18, 2017 · 19 comments
Closed
Labels
status: help wanted requesting help from the community type: bug bug in the library

Comments

@murraybiscuit
Copy link

Issue Summary

I've got a C# MVC 5 app with Sendgrid 9.5.0 installed via nuget. Build is happening online via VSTS (Visual Studio 2017 build agent). Everything compiles ok, but the build throws an error getting symbol indexes from Sendgrid.pdb. Error as follows:

Indexed source information could not be retrieved from 'd:\a\3\s\<ProjectName>\bin\SendGrid.pdb'. Symbol indexes could not be retrieved.

Running symchk I get the same error as the OP in this thread, so perhaps it's the same cause.
JoshClose/CsvHelper#535

Steps to Reproduce

  1. Add deps to MVC project, build and publish symbols on TFS
  2. Project compiles but build throws error.

Sendgrid HTTP Client doesn't throw the same error for me.

Technical details:

  • sendgrid-csharp Version: master (latest commit: 9.5.0)
  • .NET Version: 4.7
@thinkingserious thinkingserious added status: help wanted requesting help from the community type: bug bug in the library labels Jul 18, 2017
@thinkingserious
Copy link
Contributor

Thanks for the heads up @murraybiscuit along with the link to the fix. I have added this to our backlog.

For this issue to gain priority in our backlog, we need additional +1's or a PR. When we receive a PR, that provides the biggest jump in priority.

@murraybiscuit
Copy link
Author

@thinkingserious thanks for the quick response. It's not a blocker my side so backlog is fine. Just putting it on the board.

@codeBoarder-zz
Copy link

codeBoarder-zz commented Jul 18, 2017

+1 - Exact same problem.

@akdurmus
Copy link

having the same problem.
Just notice one thing that File version still stays as 9.4.1.0 in version 9.5.0. Not sure whether this might cause the problem or not.

@thinkingserious
Copy link
Contributor

Ah, thanks for the tip @akdurmus. I'll let you know if this was the issue.

@Niladri24dutta
Copy link
Contributor

I can't say its similar but i am having a strange issue like this in VSTS Azure build definition . The build fails every time the "dotnet restore" command runs in the VSTS build definition. The error message is something like below -
"Unable to resolve Sendgrid(>=9.5.0) for .NETCoreApp1.0" .
Not sure if this is an issue with Nuget cache or VSTS build definition because all other nuget packages are restored perfectly. The strange thing is that in my local system i am able to build the solution perfectly with .NET Core 1.0. The issue only occurs in VSTS build during dotnet restore. Any help would be great.

@thinkingserious
Copy link
Contributor

This issue makes me think it's definitely a pdb issue. I'm going to push a new release soon with an updated pdb.

@thinkingserious
Copy link
Contributor

I'm hoping v9.5.1 fixes this. Please let me know how it goes, thanks! (might take a few minutes for the release to appear on Nuget)

@murraybiscuit
Copy link
Author

I've tested and it's giving the same error on VSTS. I've done some digging and it seems that netcore defaults to portable pdb format which isn't readable by the 4.5 framwework. It is readable by VS Code IDE and .net framework > 4.7.1 apparently. So DebuggerType on .net 4.5 needs to be set to "full" as the workaround.

I'm trying to set a conditional DebugType prop on the SendGrid csproj file to try to force the 4.5 compile to use full debug. Will let you know if I have any success...

@murraybiscuit
Copy link
Author

@Niladri24dutta I saw somebody else mention a versioning issue with 9.5.0 - I'm not using the netcore package - is it possible that your local package has been cached or not updated and the TFS one is trying to compile the newer (broken) one? Perhaps try manually deleting or uninstalling the nuget package locally, do a nuget auto restore / reinstall to ensure you have the latest version locally and then try rebuilding. The issue in this thread isn't about package restore, it's about debug symbols on the .net452 target specifically.

@Niladri24dutta
Copy link
Contributor

Niladri24dutta commented Jul 21, 2017

@murraybiscuit Yes i agree that it might be a VSTS issue with Nuget restore, because it's not able to resolve another similar package (which I used before Sendgrid) which was newly added to project.json. But the strange thing is that it's restoring and building the project fine in my local environment but not in VSTS dotnet restore

@murraybiscuit
Copy link
Author

murraybiscuit commented Jul 21, 2017 via email

@mjfaga
Copy link

mjfaga commented Jul 22, 2017

I installed 9.5.1 fresh into my project and started having this same issue as well.

murraybiscuit added a commit to murraybiscuit/sendgrid-csharp that referenced this issue Jul 24, 2017
murraybiscuit added a commit to murraybiscuit/sendgrid-csharp that referenced this issue Jul 24, 2017
@murraybiscuit
Copy link
Author

@thinkingserious I've updated code in a fork (diff here). Tests all run fine locally. Build on VSTS is no longer throwing error for me either. Not sure if I need to update version numbers or if you need to do that...

@thinkingserious
Copy link
Contributor

That's awesome @murraybiscuit! I'll try that and push up 9.5.2 for testing.

@thinkingserious
Copy link
Contributor

@murraybiscuit,

Just pushed up your fix to Nuget as version 9.5.2. Please let me know how it goes. Also, please fill out this form so that we can send you some swag :)

With Best Regards,

Elmer

@mjfaga
Copy link

mjfaga commented Jul 25, 2017

Verified in my latest build after updating that this fixed worked! Thanks!

@murraybiscuit
Copy link
Author

murraybiscuit commented Jul 26, 2017

@thinkingserious Thanks for the quick turnaround. Builds are fixed for me. @Niladri24dutta - have you tried a rebuild with the new version?
Edit: Issue is resolved for me, please close if you're happy.

@Niladri24dutta
Copy link
Contributor

Ok sure I will try at my end with this current version and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted requesting help from the community type: bug bug in the library
Projects
None yet
Development

No branches or pull requests

6 participants