CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 2/1/2007 12:39:08 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 74 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
msrinivas
Asp.Net User
COM Exception in calling2/1/2007 12:39:08 PM

0/0

hi friends in one of my application i got com exception. Following is my code:

string strgetbinaryfieldimage;

strgetbinaryfieldimage = a.GetBinaryFieldImageHeader(120, 50, 150, 50,

"jpg");

byte[] byt = Convert.FromBase64String(ds.Tables["photograph"].Rows[0]["photograph_text"].ToString());

ds.Tables[

"photograph"].Rows[0]["photograph_text"] = GetJPEGImageArray(setSignature(byt));

public byte[] GetJPEGImageArray(System.Drawing.Image rawImage)

if (rawImage != null)

   {

System.IO.

MemoryStream ms = new System.IO.MemoryStream();

rawImage.Save(ms, System.Drawing.Imaging.

ImageFormat.Jpeg);

return ms.ToArray();

}

return null;}

private System.Drawing.Image setSignature(byte[] signature){

BinaryFieldClass bf = new BinaryFieldClass();

BinaryField b = new BinaryField();

bf.Value = signature;

if (!(bf.Value is System.DBNull))

{

 

object image = new object();

bf.Value = signature;

b.Value = signature;

try{

b.ScratchPadSave(Server.MapPath(

"images/image.bmp"));}

catch (Exception ex) { string str123 = ex.Message.ToString(); }

imgPhoto.ImageUrl = Server.MapPath(

"images/images.bmp");

return System.Drawing.Image.FromFile(Server.MapPath("images/images.bmp"));}

else{return null;}

 

so i am getting exception as  :

HRESULT E_FAIL has been returned from a call to a COM component

 

plz tell me i waiting for u r helpConfused

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Java in a Nutshell Authors: David Flanagan, Pages: 1254, Published: 2005
Learning Python Authors: Mark Lutz, Pages: 700, Published: 2007
C++ how to Program: how to program Authors: Harvey M. Deitel, Pages: 1436, Published: 2005
Programming C#: Building .NET Applications with C# Authors: Jesse Liberty, Pages: 644, Published: 2005
Software Engineering Authors: Ian Sommerville, Pages: 840, Published: 2007

Web:
microsoft.public.dotnet.framework.interop: COMException in Interop ... When the WebService fails with authenticating proxy it throws exception as ... I call this same exact code via COM interop, (nothing to do with how I return ...
"COMexception was unhandled" when calling excel from visual basic ... I built a windows application and I keep on getting the following error: COMexception was unhandled Call was rejected by callee. (Exception from HRESULT: ...
Re: org.jawin.COMException: 8002802b: Element not : msg#00035 COMException: 8002802b: Element not found. Thanks for the quick response. Here is the test method I use to call everything. It is very simple and it is ...
IPdfDistiller.FileToPDF randomly generates COMException in .NET ... Oct 4, 2005 ... Unhandled Exception: System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed at ACRODISTXLib. ...
MSDN Visual Studio Tools for Office system.Runtime.interopservices ... line of code is working fine in office 2003 solution, but have rasing exception "type mismatch'' in Office 2007 . cAll= (Excel.Range)this.Sheet. ...
microsoft.public.dotnet.framework.aspnet.security: Re ... I am trying to call SAPI methods (which works fine in case of a client > application), but calling .Speak the following exception is thrown: ...
COMException in VB.Net Windows Service - Thedotnet - .Net devoted but when I call the method to start receiving events from the COM object, I get the following error: System.Runtime.InteropServices.COMException ...
Adapting C++ Exception Handling to an Extended COM Exception Model ... Implementation exception: The cause of the error is due to faults in program code. In the table below we assume having a higher-level component A calling a ...
Chart.Export throws COMException (0x800A03EC): Exception from ... properly open workbooks and read cells, but calling Export() on the Chart object throws a COMException Exception: System.Runtime. ...
COMException with Type Mismatch when doing interop with VARIANT ... COMException with Type Mismatch when doing interop with VARIANT* calling parameter ..... issue, I'm getting a "COMException: Member not found" on some code ...

Videos:
Matt Grant- The Bachelor London Calling plays ABC date game ABC love to get the Bachelor into their offices for a bit of fun and Matt is no exception. Matt has to answer a series of questions to win a surprise...
MOW Track Crew Calling It A Night January 23, 2008 4:00 PM CST Well, everyone needs a little time off and these fellas are no exception. This is the track maintnance crew calling ...
Scott Meyers @ NWCPP: Red Code/Green Code - Generalizing Const C++ compilers allow non-const code to call const code, but going the other way requires a cast. In this talk, Scott describes an approach he's been ...
Bush finally calling it by name: Islamic Fascism The gravest mistake Bush and his leadership made, according to expert Ayyan Hirsi Ali, http://www.bigthink.com/user/ayaan-hirsi-ali was to not correc...
Ultimate Radio, Celeb Prank Call! Ultimate Radio, Celeb Prank Call includes some of my talks (less serious more non challant) with, at the time, Number 1 rated So cal Radio show Mr K....
hammerfall - carved in stone with lyrics There's silence, in the dark. There's the fire, ready to start. Torn pages, inked by fury. The exception of the damned. They are calling, out my nam...
Call of Duty 4 Beta Glitches: Overgrown Edition Here is a large collection of glitches that can be done on the multiplayer map Overgrown in the Call of Duty 4 Beta. The Tutorials include: 1. Get o...
Obama will stop "zionist" influence, remove US Israel support MUST READ THIS: According to an Obama campaign insider Barack Obama will if elected president stop "the zionist" influence in US policy. Barack Obama...
Call of duty 4-hans zimmer style I follow a call of duty tradition by adding hans zimmer journey to the line in all the newly released and future releases of call of duty games, part...
Call of Duty 4 Sniper Montage I finally got the time and footage to get this up and running, enjoy! Now for some FAQ: Q: What song is that? A: "When Worlds Collide" by Powerman ...




Search This Site:










add nodes problem

tree view performence issues & asp.net worker process locking files

treeview: class not registered

i can't find microsoft.web.ui.webcontrols.dll file after installation...

treeview selected item problem

toolbar.toolbarcheckbutton

multipage pageview disappears in design mode when i add a third party control.

disable tabs with javascrip

treeview - how to get attributes of selected node

controls not working on web server 2003

treeview click event

tabstrip-choose tab from another webpage

please help with installing and running sample aspx

dynamic population

hyperlink between 2 controls in a multipage tab view

ie control issues

tabstrip rendering error

treeview with 300kb of data

is treeview control really reliable?

anybody ever seen this error and know how to resolve?

microsoft treeview events

iewebcontrols install problem

ie webcontrol compiled assembly using .net framework 1.1 or visual studio 2003

treeview selection different on postback

printing multipage

weird error when trying samples

a challenge with treeview

scroll to selected node treeview

problem with using treeview and tabstrip controls

binding treeview without xml file

  Privacy | Contact Us
All Times Are GMT