C# - Strange Error From PDF4NET

Nov 30, 2010

I am using pdf4net to export PDF file. In C# I created complete logic to export data. A large part of it is legacy code so I know for sure that it works. But there is one little problem. Error in the end of code. Everything before that line is fine I check it several times. Bellow is the last line in code and bellow it is error that I receive after that line:

return pdfDoc.GetPDFAsByteArray();
at
O2S.Components.PDF4NET.Graphics.PDFBrush..ctor(PDFBrush
brush) at
O2S.Components.PDF4NET.Graphics.Shapes.PDFHTMLTextBox.boolean(Stream[code]....

View 1 Replies


Similar Messages:

VS 2008 Strange Intellisense Error?

Mar 2, 2010

I have this strange error coming up in VS2008, where is says a variable in not declared in HTML view, when it clearly is declared in the codebehind:Can anyone help with why this might be happening? I've tried all sorts of things, even recreating the page from scratch, but this keeps coming up.

View 32 Replies

Strange Error When Hovering Over A Menu Item?

Nov 3, 2010

Whenever I hove over any one of the menu items on my MasterPage, I get the following error: see attached image.I have no idea what is causing this and the filename on the tab appears to look as if it's a dynamically created page so I have NO idea how to debug it.

View 15 Replies

Web Forms :: Parser Error - Strange Characters On Page

Nov 28, 2010

I am having a very odd issue for my website [URL]. I am seeing strange characters in the home page. visit the site [URL] to view the details The site works perfectly in local system The site is done asp 2.0 and sql server 2005. I have made the customer error mode to Off to view the issues. But the page is coming in odd characters.

View 5 Replies

ADO.NET :: [Entity Framework] Strange Error Executing A Sql Query

Nov 29, 2010

I have a strange error, I've tried to search for it before writing this post but I wasn't able to find out a solution yet.

I'm executing a query using ExecuteStoreQuery against a MySQL database, but it throws an exception reporting that there's a syntax error in my SQL.

I've tried to copy&paste the sql query into the MySQL tool and it works nicely, giving the correct results.

I've tried to open manually the connection and using CreateCommand to use it the "old way".

My query is a bit long, 4000 chars more or less, could it be the problem?

View 4 Replies

Forms Data Controls :: Strange Error On Pressing Button In Item Template Of Gridview?

Feb 1, 2010

I have a asp:button in template field of gridview, I set command name for this and in grid I mention on command event. On clicking the page it shows error message is :Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/>

[code]...

View 2 Replies

Vb.net - Strange IIS/ASP.NET JIT Compilation

Jan 19, 2010

I've got extremely strange behavior on one of my pages. I was able to get a work-around in place, but I'd like to get input on why this error is happening (and why my work-around actually works).

(Let me also say that this is in no way, shape, or form my code...so please don't bash me too hard)

When loading the page, we're getting

BC30456 'InitializeCulture' is not a
member of...

I worked through the tips here and nothing worked:

BC30456 Fixes

I was able to get the page back up and working by changing

<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="newsproduct_rss.aspx.vb" Inherits="product_nrss" %>


to

<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="newsproduct_rss.aspx.vb" Inherits="product_nrss" Debug="true" %>

View 3 Replies

Strange Characters After HTML Output

Feb 12, 2010

Recently I started a project and added a HTML file in it. I modified the HTML file and run it in Visual Studio to see the output. When I tried to validate the HTML file, I found some strange characters got appended. This is quite annoying, although I am not able to see those unexpected characters, I wonder what is the cause of the problem. I didn't adjust anything in control panel of the IIS server, I didn't modify the Web.config file. I tried to add another HTML file and put the same content into it, the same problem occured. Could someone tell me how should I troubleshoot the problem?

View 7 Replies

Strange Characters While Trimming String

Feb 21, 2011

using vb.net/asp.net 2005 and sql server 2005. I'm querying the database and returning text which I am then adding to a string. I'm creating a crystal report with the text however this is not a crystal report question, its about the string data. what I"m noticing is that when I show the string on the pdf that there are some strange characters at the end of the string. I am both trimming the string and taking out null characters however the strange text shows up like this:

strangeText>
SÙÇ
TÙçy|Ü
DÙÇ
$ÛÇ
</strangeText>

does anyone know what these characters are and how to get rid of them?

View 7 Replies

C# - How To Use Strange Characters In A Query String

Apr 14, 2010

I am using silverlight / ASP .NET and C#. What if I want to do this from silverlight for instance,

// I have left out the quotes to show you literally what the characters
// are that I want to use
string password = vtakyoj#"5
string encodedPassword = HttpUtility.UrlEncode(encryptedPassword, Encoding.UTF8);
// encoded password now = vtakyoj%23%225

URI uri = new URI("http://www.url.com/page.aspx@password=vtakyoj%23%225");

HttpPage.Window.Navigate(uri);

If I debug and look at the value of uri it shows up as this (we are still inside the silverlight app),

[URL]

So the %22 has become a quote for some reason.

If I then debug inside the page.aspx code (which of course is ASP .NET) the value of Request["password"] is actually this,

vtakyoj#"5

Which is the original value. How does that work? I would have thought that I would have to go,

HttpUtility.UrlDecode(Request["password"], Encoding.UTF8)

To get the original value.

View 2 Replies

AJAX :: Strange Results With MaskedEditExtender?

Oct 12, 2010

I've inherited a web project from another company, and I'm having a weird issue with a phone number mask.

If the ClearMaskOnLostFocus is "true", I lose the mask in the edit field (this is a editing screen for an existing record). If set to false, the mask is present, but the leading digit is truncated, and will write back to the DB an incorrect number if submitted, with that leading "_".

True = 8885551212
False=(_88)-555-1212
The DB field a a varchar(20) -- don't ask me why.
<asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server"
learMaskOnLostFocus="true" MaskType="Number"
Enabled="True" Mask="(999) 999-9999"
TargetControlID="Phone_Number">
</asp:MaskedEditExtender>

I'm recently back at work after a long layoff period, and my ASP is a little rusty.

View 1 Replies

AJAX :: MaskedEditValidator / Strange Behaviour?

Dec 20, 2010

I am using the MaskedEditExtender and MaskedEditValidator, but have experienced some strange
behaviour. (See code example below). When entering a date into the textbox this is what I see:

1. The mask

2. Entering the date and time e.g. "19-01-1980 10:11:12"

3. When removing focus from the textbox the result is: "19-01-1980 19:01:19"

The six first digits of the date is copied as the time? If entering a day of the month larger than 23 and any given month, year and time (eg. 25-10-1980 12:12:12) the validation fails as the six first digits are copied to the time resulting in a time 25:10:19 which obviously is not valid.

I have downloaded the AJAX toolkit sample code and experience the exact same behaviour. When running the AJAX Toolkit samples from[URL] works fine!

Additinal info: Culture is danish (DateTime format is dd-MM-yyyy hh:mm:ss). Tried changing my systems culture to en-US but same behaviour.

Code:

[Code]....

View 5 Replies

MVC :: Strange Behavior On Form Submit?

Oct 14, 2010

i have a strange issue happening while submiting a form:i have this in my form:

<input type="radio" name="type" onclick="document.getElementById('Type').value='Publiser';" />Publisher <br />
<input type="radio" name="type" onclick="document.getElementById('Type').value='Advertiser';" />Advertiser
<%: Html.TextBoxFor(m => m.Type)%>

the javascript is working perfectly and changes the value of the textbox.the problem happens when i submit the form - what is extracteed by the model from the textbox is the string "on", and after the submit, it also changes the value of the textbox to "on".when i load the field with a value from the model, it goes ok, and does not change

View 2 Replies

ExtJs Grid Acting Very Strange

Oct 18, 2010

So I have two pictures of the weirdness that is occuring.As you can see in the picture above, the scroll bar on the right hand side is being cut off a little bit by the screen, and even when you scroll to the right, you don't get the bar back, it remains cut off.

Here is the other scenario:

Here, you can see that when I scroll down in this grid, the scroll bar kind of fits into the bottom of the grid and doesn't even go all the way down. You need to manually click into the grid and hit the down arrow to get the rest of the way down.

Edit: Here is the code to generate the grid (Ext created through VB controls):

Dim VehicleOptionsGrid As New Akcelerant.Framework.WebControls.Grids.Grid
With VehicleOptionsGrid
.ID = "VehicleOptionsGrid"[code].....

View 1 Replies

.net - Fix Strange Conversion From String.ToUpper() In C#?

Feb 1, 2011

I'm trying to show something like "contáctenos" in uppercase, but when I use the string.toUpper() method I have the strange result "CONTáCTENOS" instead of "CONTÁCTENOS". The page "culture" is set correctly to "es-ES" and the "uiculture" too.How can I obtain the correct result if it's possible, without using regex or replace.

View 2 Replies

Asp.net - Getting DropDownList Value Is Generating Strange Behavior?

Jan 3, 2010

I have a DropDownList on a page

[code]...

The problem I am having is that the following code is setting ParentID to 0 (which to me, obviously shouldn't be happening.

View 1 Replies

Web Forms :: Strange Characters Appearing Instead Of Entered

Jul 16, 2010

I have a web application that users insert some comments to the database. But when they try to Write some non-Ascii character to textbox some strange characters apperars instaed of my entered characters.For example When i write ı it appears like this Ä

View 1 Replies

DataSource Controls :: Strange Behavior Of Cmd.ExecuteScalar()?

Jul 27, 2010

I have a simple procedure which updates a table. The procedure works fine and I have tested it in Management Studio. However when I am calling that procedure from code, nothing is happening. cmd.ExecuteScalar returns null when it should return the ID.Has anyone faced anything similar? Any pointers as to how this can be resolved?

View 3 Replies

Web Forms :: Strange Postback Arise When Using Application_BeginRequest?

Dec 15, 2010

I have a problem using Application_BeginRequest and I have absolutely no clue what is going on. When using this code, my website works fine:

[Code]....

Now, when I only alter it like this (note that I am actually doing nothing special):

[Code]....

This small change in code causes that forms don't postback anymore. I am truely clueless why this happens when trying to get some request.form variables.Stupid thing is, when debugging the website using visual studio, everything works fine.

View 8 Replies

Remove Alle Strange Signs From Text?

Feb 26, 2010

How can i remove all strange signs from a string.Is there a solution for in stead of manually replacing everyting?

View 11 Replies

C# - LINQ2Entity Framework Query Acting Strange?

Feb 20, 2011

I have strange problem with my query. I have two almost identical situations in which one query is acting as it should be while the other gives errors.

var osobaIme = (from o in db.osobas
orderby o.osoba_ime
select o.osoba_ime).ToList().Distinct();

[code]...

View 2 Replies

C# - Strange Webserver Exception After Patching Web Farm?

Mar 28, 2011

We recently patched our 12 servers, now have been getting the following exceptions across all servers when hitting URL similar to this.(URL has been modified)

[code]...

View 1 Replies

Web Forms :: Strange Characters Inserted Into Page When Logging In

Oct 12, 2010

I uploaded my .net website precompiled under vs 2008. I do not have this issue with my site running on a webhost with .net 2.0 under sql 2005. When I login to the site, there are oriental characters:

[Code]....

Every one of the squares is an oriental character. I have tested this on two servers now. As you can see, the characters start right after the Doctype line. This is where another page is loaded on my site.

View 3 Replies

AJAX :: Strange Behavior With GridView In A User Control?

Feb 6, 2010

I've got a user control that is displayed via a PopupControlExtender. The user control is a GridView that dynamically adds columns to the control to display the results of a SELECT statement. The PopupControlExtender correctly displays the control and the control displays the neccessary columns. However, when the control is first displayed, the column widths are ignored, despite that they are explicity set. If the control is displayed and then hidden, the column widths are acknowledged the next time the control is displayed.

Here's the user control when first displayed

[IMG]http://i285.photobucket.com/albums/ll48/chyron7/Miscellaneous/screenshot.jpg[/IMG]

Here's how its display after the first time

[URL]

View 4 Replies

Web Forms :: Gridview Makes Scrollbars Hide ,strange?

Mar 8, 2010

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

[code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved