Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Thu Jan 08, 2015 11:23 am

error.png
I'm getting this error everytime when i access the spire dll for creating Barcode

pknarun
 
Posts: 1
Joined: Thu Jan 08, 2015 10:02 am

Fri Jan 09, 2015 2:10 am

Dear pknarun,

Thanks for your inquiry.

After some investigation, I found a workaround for you, please visit link below to get more information:
http://anishantha87.blogspot.com/2014/0 ... ework.html
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Mon Jan 12, 2015 8:11 am

Hello pknarun,

Have you tried the solution I provided to resolve this problem? Did it work?

Looking forward to your response.
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Thu Oct 01, 2015 6:17 pm

Application: w3wp.exe
I am trying to add Barcode generator to our existing intranet web app. When I navigate to the page I get the IIS error.
I believe the error is caused by the popup. I sent request for activation key, I hope that helps.

I can run your demo just fine, that has me a little concerned.

Below is info from event log. Please help.

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
at System.Windows.Forms.Form.ShowDialog()
at Spire.Barcode.BarcodeSettings.ᜀ()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

jduffy
 
Posts: 7
Joined: Thu Oct 01, 2015 3:41 pm

Fri Oct 02, 2015 8:04 am

Hello,

Thanks for your inquiry.
We will investigate this issue further.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Oct 02, 2015 1:54 pm

I have received the activation code, I entered the code in a the demo project, but am receiving the same error in our web application.

Don't understand what is trying to display a windows forms dialog.

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
at System.Windows.Forms.Form.ShowDialog()
at Spire.Barcode.BarcodeSettings.ᜀ()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

jduffy
 
Posts: 7
Joined: Thu Oct 01, 2015 3:41 pm

Fri Oct 02, 2015 1:57 pm

Here is another event log entry.

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1/ROOT/RMS
Process ID: 13644
Exception: System.InvalidOperationException

Message: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

StackTrace: at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at Spire.Barcode.BarcodeSettings.ᜀ()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

jduffy
 
Posts: 7
Joined: Thu Oct 01, 2015 3:41 pm

Fri Oct 02, 2015 3:13 pm

Attached basic solution that will show problem when accessed through IIS.

jduffy
 
Posts: 7
Joined: Thu Oct 01, 2015 3:41 pm

Mon Oct 05, 2015 4:02 am

Hello,

Thanks for the information. Please call the method ApplyKey(string key) in the application to remove the logo. Here is the guidance for your reference.
http://www.e-iceblue.com/Misc/how-to-re ... rcode.html
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Oct 05, 2015 4:18 pm

Thank you.

Missed piece about setting key on application start

jduffy
 
Posts: 7
Joined: Thu Oct 01, 2015 3:41 pm

Return to Spire.BarCode