Why is this happening?

Started by dmorocampo,

dmorocampo

System.TypeInitializationException was unhandled
  HResult=-2146233036
  Message=Se produjo una excepción en el inicializador de tipo de 'Un4seen.Bass.Bass'.
  Source=Bass.Net
  TypeName=Un4seen.Bass.Bass
  StackTrace:
       en Un4seen.Bass.Bass.BASS_Init(Int32 device, Int32 freq, BASSInit flags, IntPtr win)
       en StreamTest.frmTag.frmTag_Load(Object sender, EventArgs e) en \Samples\VB\StreamTest\frmTag.vb:línea 466
       en System.Windows.Forms.Form.OnLoad(EventArgs e)
       en System.Windows.Forms.Form.OnCreateControl()
       en System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       en System.Windows.Forms.Control.CreateControl()
       en System.Windows.Forms.Control.WmShowWindow(Message& m)
       en System.Windows.Forms.Control.WndProc(Message& m)
       en System.Windows.Forms.Form.WmShowWindow(Message& m)
       en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  InnerException:
       HResult=-2146233052
       Message=No se puede cargar el archivo DLL 'bass': No se puede encontrar el módulo especificado. (Excepción de HRESULT: 0x8007007E)
       Source=Bass.Net
       TypeName=""
       StackTrace:
            en Un4seen.Bass.Bass.BASS_SetConfig(BASSConfig option, Int32 newvalue)
            en Un4seen.Bass.Bass.InitBass()
            en Un4seen.Bass.Bass..cctor()
       InnerException:

Ian @ un4seen

That looks like the BASS.DLL file couldn't be found. It should be placed alongside your EXE and BASS.NET.DLL. Also make sure it is the one that matches your project's "Platform target" setting.


dmorocampo

The errors I had are because I do not have Bass.Net registered, it is a shame, I am in Cuba and it is impossible for me to send any cash outside. .vshost.exe Warning: 0 : You are using an unregistered version of BASS.NET! (c) 2009-2023 radio42, Bernd Niedergesäß - All rights reserved. :-[

Ian @ un4seen

I don't think being unregistered should cause any errors, but you can get a freeware registration key for BASS.Net from here:

   http://bass.radio42.com/bass_register.html