We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Getting Red X (no image) where Barcode should be

I have about 12 differnet barcodes built on an ASP.Net page.

Some do not show the Barcode, instead they have the red X

It is inconsistent which one does not show.

Using the new 2.3.1.0 build to fix the Windows 64bit issue.

What is the problem?

Just an update.

I can RightClick and choose Show Picture twice and it will then show the barcode.

Is this a timing thing? I need the page to be built with ALL the images.

More testing results..

This does NOT occur in the 32bit environment, only on the 64bit server.

Same platform, same iis, same code, just 64bit verse 32bit

Hello,

Thank you for your post!

We have started testing this issue now, get back to you later.

Best regards.

How is testing going? Still getting the error.

Hello,

Thank you very much for your feedback,

here's a new build addressing the 64bit problem, it has been verified by our test team,please try the latest build.

Please let me know if it works for you.

Kindest regards.

Seems to work fine, all images show up each time. I'll let you know if I see any further issues.

Chris

UPDATE!!! Further testing shows continuing proble; red X's still show, no image but can load with a couple right click show images.

What is causing it to not load the first time?

Hello,

Thank you for your update.

Could you send one of your page and page source to GuangZhou@aspose.com? Let me try to debug it.

Best regard.

We are experiencing some general Service Unavailable errors as well. The Aspose.Barcode dll is the only new addition to this app that has been running fine for months. Any idea on this one as well.

Chris

Here is the error in the evnt log:

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 7/24/2007
Time: 11:47:56 AM
User: N/A
Computer: XWEB01
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 7/24/2007 11:47:56 AM
Event time (UTC): 7/24/2007 4:47:56 PM
Event ID: 7d9f902da13a4da1a38b5f595a2592c8
Event sequence: 5465
Event occurrence: 40
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1128625274/Root-2-128297683707343750
Trust level: Full
Application Virtual Path: /
Application Path: C:\Inetpub\OneStop\
Machine name: XWEB01

Process information:
Process ID: 600
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: ArgumentOutOfRangeException
Exception message: Index and count must refer to a location within the string.
Parameter name: count

Request information:
Request URL: https://onestop.dsisystemsinc.com/Paperwork.aspx?l=English4569499&BarCode__bcDSICopy=0460e1a7-2cd6-483e-baa6-1646f6d09b2a
Request path: /Paperwork.aspx
User host address: 209.173.255.68
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 6
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.String.Remove(Int32 startIndex, Int32 count)
at Aspose.BarCode.Web.UI.BarCodeWebControl.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Hello,

Thank you very much for your feedback!!

Please try out the latest release.

Kindest regards.

Service Unavailable error is gone, get still get an occasional Red X.

Right click and Refresh page fixes, but 1 or 2 still don't show on the first load. What else can be done?

Hello,

Thank you for your feedback!

We've added two new properties for BarCodeWebControl:

RenderFormat ( Jpeg, Gif )
RenderMethod ( Cache, Session, HttpHandler )

Could you please consider trying this new Build, to set up BarCodeWebControl's RenderMethod property to HttpHandler and give it a try? ( We can't reproduce your problem, sorry for all this hassle. )

When using handler to produce the barcode image, There are two things should be done:

First, we need to modify the Web.Config file and add the handler as followed:



Second, place your license file inside Bin directory, or else we should add a license file path in AppSettings:

Please let me know if this works for you.

Best regards.

Hello,

Here’s a web sample for reference:

https://forum.aspose.com/products/aspose.barcode/debug/handler/websample.zip

Best regards.

2 issues:

First, the codeLocation does not seem to be working. Shows using this new method even though I set to None, does it have to be set at runtime?

Second, gettin g this error when setting bc18 to HttpHandler

[IndexOutOfRangeException: Index was outside the bounds of the array.]
System.Web.UI.HtmlTextWriter.AddStyleAttribute(String name, String value, HtmlTextWriterStyle key) +2140589
System.Web.UI.HtmlTextWriter.AddStyleAttribute(String name, String value) +29
Aspose.BarCode.Web.UI.BarCodeWebControl.Render(HtmlTextWriter output) +1388
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896

Hello,

Thank you for your feedback, Please try the latest version of Aspose.BarCode.

Best regards.

Looks good. No errors and all images seem to show every time.

Looks like can be published as current build.

I'll let you know if I see any further issues.

Thanks for all your help in getting this fixed and working properly.

Hello,

Thank you for your feedback!

Best regards.