ravi.joshi53's picture

TypeLoadException while using QuickFont with OpenTK v1.1

Hi,

I downloaded QuickFont from its official location and build with OpenTK v1.1.1501.5712. The build was successful.

The build has generated two dll (OpenTK and QuickFont) files, which I was trying to use in my project. But Its showing me following error-

System.TypeLoadException was unhandled
  Message=Could not load type 'QuickFont.QFontBuilderConfiguration' from assembly 'QuickFont, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
  Source=QuickFont
  TypeName=QuickFont.QFontBuilderConfiguration
  StackTrace:
       at QuickFont.Program.OnLoad(EventArgs e)
       at OpenTK.GameWindow.OnLoadInternal(EventArgs e)
       at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
       at OpenTK.GameWindow.Run(Double updateRate)
       at QuickFont.Program.Main(String[] args) in D:\C#\OpenTK\QuickFont\QuickFont\Program.cs:line 149
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

Somebody please provide me QuickFont.dll with supported OpenTK.dll file.

(I tried to build the QuickFont project with the in build OpenTk also, which comes with it, but got the same error)

-
Thanks


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

You need to rebuild QuickFont using OpenTK 1.1. In the project references, remove the reference to OpenTK 1.0, add the reference to OpenTK 1.1 and rebuild the project.

ravi.joshi53's picture
the Fiddler wrote:

You need to rebuild QuickFont using OpenTK 1.1. In the project references, remove the reference to OpenTK 1.0, add the reference to OpenTK 1.1 and rebuild the project.

The un-compressed directory contains a sub directory named Dependencies. I simply replaced this OpenTK.dll with the latest version i.e. 1.1. Done rebuilding the project. Still not working. The generated exe file executes normally. I don't know where is the problem.