-
Notifications
You must be signed in to change notification settings - Fork 36
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
Runtime error: Windows PDB writer is not available -- could not find Microsoft.DiaSymReader.Native.x86.dll #10
Comments
Are you sure you're using your pre-compiled views? You shouldn't get that at runtime unless you're trying to emit a PDB stream, which would be if you're hitting the RoslynRazorViewEngine instead of the PrecompiledViewEngine? A complete stack trace of the exception would also be very helpful. |
Thanks for the insight, i'll look more into it. It is very random the way it happens and no consistency in the way the issue appears. In our global.asax.cs we definitely have
We use TC as our build server, release mode is chosen in all our release configs. Could it be that for some reason the PrecompiledViewEngine fails to find the view, so it falls back to the RoslynRazorViewEngine one ?. I suspected the Virtual application path could be behind the problem when trying to locate views, but i believe it is not possible since that issue would always show up then, but instead it doesn't. |
Get same problem on production after 7 days of work System.Web.HttpParseException (0x80004005): error CS0041: Unexpected error writing debug information -- 'The version of Windows PDB writer is older than required: 'diasymreader.dll'' Full Trace: RaiseOnError at offset 126 in file:line:column :0:0 |
After changing our build process to use the StackExchange precompiler, everything builds successfully and our build time has drastically improved thanks to this great compiler.
However we're seeing this runtime error on some of our environments as soon as we started using the stackexchange precompiler. Oddly enough, on the same environments we deploy the same application twice but with different configs, one works fine and the other is just broken because of this this runtime error :
Windows PDB writer is not available -- could not find Microsoft.DiaSymReader.Native.x86.dll
.We generate and keep PDB files for our test and staging environments.
One theory is that one of the applications is deployed in IIS as a Website, and the other as a Web Application, but both exactly under the same privileges, Application Pool, settings, etc... But we couldn't prove this exactly either.
We're not very sure the cause behind this, in some cases re-installing visual c++ 2015 redistributable on the server fixed the issue, but in other cases it didn't.
Any help on this would be appreciated.
The text was updated successfully, but these errors were encountered: