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

The type initializer for '<Module>' threw an exception (Attempted to read or write protected memory) #565

Closed
Philo opened this issue Aug 13, 2015 · 2 comments · Fixed by #573
Assignees

Comments

@Philo
Copy link
Contributor

Philo commented Aug 13, 2015

I am receiving the following exception from GitVersion when executing GitVersion during a custom deployment command to an Azure Web App. GitVersion is running against the 'master' branch. Any thoughts on what could be causing this?

As the dump below shows I am trying to update a CommonAssemblyInfo.cs.

remote: Failed exitCode=-532462766, command="D:\home\site\repository\Production\lib\gitversion\gitversion.exe" /u
"D:\home\site\repository\Production\CommonAssemblyInfo.cs" /output json
remote: Unhandled Exception: System.TypeInitializationException: The type initializer for '<Module>' threw an exc
m.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other m
remote:    at Costura.AssemblyLoader.MoveFileEx(String lpExistingFileName, String lpNewFileName, Int32 dwFlags)
remote:    at Costura.AssemblyLoader.InternalPreloadUnmanagedLibraries(String tempBasePath, IEnumerable`1 libs, D
ums)
remote:    at Costura.AssemblyLoader.PreloadUnmanagedLibraries(String hash, String tempBasePath, IEnumerable`1 li
hecksums)
remote:    at Costura.AssemblyLoader.Attach()
remote:    at .cctor()
remote:    --- End of inner exception stack trace ---
@JakeGinnivan
Copy link
Contributor

@SimonCropp @distantcam you guys seen this?

@SimonCropp SimonCropp self-assigned this Aug 14, 2015
@SimonCropp
Copy link
Contributor

i will fix this over the weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants