Trouble Compiling 16.4
Trouble Compiling 16.4
Hi, I am using Visual Studio 2015. I believe I have followed all the instructions but when I run the app that is published it crashes immediately on the splash screen.
What could I be doing wrong?
There are a few errors here but I am not sure which one is causing the issue. I am running Windows Server 2016.
Severity Code Description Project File Line Suppression State
Warning The referenced project '..\..\..\Shared Projects Subversion\EHR\EHR_16_4\EHR\xEHR.csproj' does not exist. OpenDental
Severity Code Description Project File Line Suppression State
Warning Item 'Microsoft.Net.Framework.2.0' could not be located in 'E:\vstudio\SDK\Bootstrapper\'. OpenDental
Severity Code Description Project File Line Suppression State
Warning The referenced component 'xEHR' could not be found. OpenDental
Can any of those warnings be causing the crash?
Thanks
What could I be doing wrong?
There are a few errors here but I am not sure which one is causing the issue. I am running Windows Server 2016.
Severity Code Description Project File Line Suppression State
Warning The referenced project '..\..\..\Shared Projects Subversion\EHR\EHR_16_4\EHR\xEHR.csproj' does not exist. OpenDental
Severity Code Description Project File Line Suppression State
Warning Item 'Microsoft.Net.Framework.2.0' could not be located in 'E:\vstudio\SDK\Bootstrapper\'. OpenDental
Severity Code Description Project File Line Suppression State
Warning The referenced component 'xEHR' could not be found. OpenDental
Can any of those warnings be causing the crash?
Thanks
Re: Trouble Compiling 16.4
The first and the third warnings are not what's causing the crash. They are from a reference to a project that is in our internal repository, but the main program will compile fine without it. The second warning I haven't seen before, but maybe you need to make some adjustments in Visual Studio? https://social.msdn.microsoft.com/Forum ... formssetup
Are you able to tell on what lines of code the crash is happening?
Are you able to tell on what lines of code the crash is happening?
Re: Trouble Compiling 16.4
Thanks for the reply, I do get this error while debugging.
Managed Debugging Assistant 'LoaderLock' occurred
HResult=0x00000000
Message=**Managed Debugging Assistant 'LoaderLock' :** 'DLL 'C:\Users\Administrator\Desktop\opendental3\OpenDental\bin\Release\Microsoft.DirectX.Direct3D.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.'
Managed Debugging Assistant 'LoaderLock' occurred
HResult=0x00000000
Message=**Managed Debugging Assistant 'LoaderLock' :** 'DLL 'C:\Users\Administrator\Desktop\opendental3\OpenDental\bin\Release\Microsoft.DirectX.Direct3D.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.'
Re: Trouble Compiling 16.4
actually I went back and removed the loaderlock thing and now hthat doesn't happen anymore. But it still crashes when I publish. Are there settings I should be doing when publishing?
It all runs great in debug mode.
It all runs great in debug mode.
Re: Trouble Compiling 16.4
When i click debug on the crash page it shoes this in VS 2015:
An unhandled exception of type 'System.DllNotFoundException' occurred in NHunspell.dll
Additional information: Hunspell Intel 32Bit DLL not found: C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6d0e8982ec67ca4b\Hunspellx86.dll
An unhandled exception of type 'System.DllNotFoundException' occurred in NHunspell.dll
Additional information: Hunspell Intel 32Bit DLL not found: C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6d0e8982ec67ca4b\Hunspellx86.dll
Re: Trouble Compiling 16.4
You were correct to uncheck "Break when this exception is thrown" for LoaderLock. To fix the other error, copy the file Hunspellx86.dll from the Required dlls folder and paste it into the OpenDental/bin/Debug folder. While you're at it, you will probably want to past the same file into OpenDental/bin/Release folder.
Re: Trouble Compiling 16.4
I did all that and it's fine. But when I publish it doesn't work after. Crashes at open dental splash.
The file install is only about 45mb. I think I'm publishing incorrectly. Any tips?
The file install is only about 45mb. I think I'm publishing incorrectly. Any tips?
Re: Trouble Compiling 16.4
Your publishing is probably missing dll dependencies. What does your Windows OS Event Viewer show as the error when it crashes?
The best thing about a boolean is even if you are wrong, you are only off by a bit.
Jason Salmon
Open Dental Software
http://www.opendental.com
Jason Salmon
Open Dental Software
http://www.opendental.com
Re: Trouble Compiling 16.4
I have this error from the event:
Application: OpenDental.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
at NHunspell.MarshalHunspellDll.LoadNativeHunspellDll()
at NHunspell.Hunspell.HunspellInit(Byte[], Byte[], System.String)
at NHunspell.Hunspell.Load(Byte[], Byte[], System.String)
at OpenDental.ODtextBox..ctor()
at OpenDental.ContrAccount.InitializeComponent()
at OpenDental.ContrAccount..ctor()
at OpenDental.FormOpenDental..ctor(System.String[])
at OpenDental.ProgramEntry.Main(System.String[])
Application: OpenDental.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
at NHunspell.MarshalHunspellDll.LoadNativeHunspellDll()
at NHunspell.Hunspell.HunspellInit(Byte[], Byte[], System.String)
at NHunspell.Hunspell.Load(Byte[], Byte[], System.String)
at OpenDental.ODtextBox..ctor()
at OpenDental.ContrAccount.InitializeComponent()
at OpenDental.ContrAccount..ctor()
at OpenDental.FormOpenDental..ctor(System.String[])
at OpenDental.ProgramEntry.Main(System.String[])
Re: Trouble Compiling 16.4
Also this one:
Log Name: Application
Source: Application Error
Date: 6/14/2017 12:26:08 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: WIN-MO0R2JBQKCF
Description:
Faulting application name: OpenDental.exe, version: 16.4.46.0, time stamp: 0x59418d63
Faulting module name: KERNELBASE.dll, version: 10.0.14393.1358, time stamp: 0x59327ae2
Exception code: 0xe0434352
Fault offset: 0x000da9f2
Faulting process id: 0x5fc
Faulting application start time: 0x01d2e54412c4b928
Faulting application path: C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6d0e898af060484b\OpenDental.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: f2e1ad6f-1926-4953-9ee6-76c27a024fe9
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2017-06-14T19:26:08.928668400Z" />
<EventRecordID>5381</EventRecordID>
<Channel>Application</Channel>
<Computer>WIN-MO0R2JBQKCF</Computer>
<Security />
</System>
<EventData>
<Data>OpenDental.exe</Data>
<Data>16.4.46.0</Data>
<Data>59418d63</Data>
<Data>KERNELBASE.dll</Data>
<Data>10.0.14393.1358</Data>
<Data>59327ae2</Data>
<Data>e0434352</Data>
<Data>000da9f2</Data>
<Data>5fc</Data>
<Data>01d2e54412c4b928</Data>
<Data>C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6d0e898af060484b\OpenDental.exe</Data>
<Data>C:\Windows\System32\KERNELBASE.dll</Data>
<Data>f2e1ad6f-1926-4953-9ee6-76c27a024fe9</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
Log Name: Application
Source: Application Error
Date: 6/14/2017 12:26:08 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: WIN-MO0R2JBQKCF
Description:
Faulting application name: OpenDental.exe, version: 16.4.46.0, time stamp: 0x59418d63
Faulting module name: KERNELBASE.dll, version: 10.0.14393.1358, time stamp: 0x59327ae2
Exception code: 0xe0434352
Fault offset: 0x000da9f2
Faulting process id: 0x5fc
Faulting application start time: 0x01d2e54412c4b928
Faulting application path: C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6d0e898af060484b\OpenDental.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: f2e1ad6f-1926-4953-9ee6-76c27a024fe9
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2017-06-14T19:26:08.928668400Z" />
<EventRecordID>5381</EventRecordID>
<Channel>Application</Channel>
<Computer>WIN-MO0R2JBQKCF</Computer>
<Security />
</System>
<EventData>
<Data>OpenDental.exe</Data>
<Data>16.4.46.0</Data>
<Data>59418d63</Data>
<Data>KERNELBASE.dll</Data>
<Data>10.0.14393.1358</Data>
<Data>59327ae2</Data>
<Data>e0434352</Data>
<Data>000da9f2</Data>
<Data>5fc</Data>
<Data>01d2e54412c4b928</Data>
<Data>C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6d0e898af060484b\OpenDental.exe</Data>
<Data>C:\Windows\System32\KERNELBASE.dll</Data>
<Data>f2e1ad6f-1926-4953-9ee6-76c27a024fe9</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
Re: Trouble Compiling 16.4
when i run debug after the crash:
System.DllNotFoundException was unhandled
HResult=-2146233052
Message=Hunspell Intel 32Bit DLL not found: C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6e0ca8f9e7f03c8b\Hunspellx86.dll
Source=NHunspell
TypeName=""
StackTrace:
at NHunspell.MarshalHunspellDll.LoadNativeHunspellDll()
at NHunspell.Hunspell.HunspellInit(Byte[] affixData, Byte[] dictionaryData, String key)
at NHunspell.Hunspell.Load(Byte[] affixFileData, Byte[] dictionaryFileData, String key)
at NHunspell.Hunspell..ctor(Byte[] affixFileData, Byte[] dictionaryFileData)
at OpenDental.ODtextBox..ctor()
at OpenDental.ContrAccount.InitializeComponent()
at OpenDental.ContrAccount..ctor()
at OpenDental.FormOpenDental..ctor(String[] cla)
at OpenDental.ProgramEntry.Main(String[] args)
InnerException:
System.DllNotFoundException was unhandled
HResult=-2146233052
Message=Hunspell Intel 32Bit DLL not found: C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6e0ca8f9e7f03c8b\Hunspellx86.dll
Source=NHunspell
TypeName=""
StackTrace:
at NHunspell.MarshalHunspellDll.LoadNativeHunspellDll()
at NHunspell.Hunspell.HunspellInit(Byte[] affixData, Byte[] dictionaryData, String key)
at NHunspell.Hunspell.Load(Byte[] affixFileData, Byte[] dictionaryFileData, String key)
at NHunspell.Hunspell..ctor(Byte[] affixFileData, Byte[] dictionaryFileData)
at OpenDental.ODtextBox..ctor()
at OpenDental.ContrAccount.InitializeComponent()
at OpenDental.ContrAccount..ctor()
at OpenDental.FormOpenDental..ctor(String[] cla)
at OpenDental.ProgramEntry.Main(String[] args)
InnerException:
Re: Trouble Compiling 16.4
You need to move the Hunspellx64.dll and Hunspellx86.dll from the Required dlls folder into the bin folder of the debug environment for the version you are running.
Re: Trouble Compiling 16.4
i have done that. still getting the error
Re: Trouble Compiling 16.4
ok, so it works now. i had to copy the 2 dll manually into the published folder. thanks for all the help