Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 8th, 2004, 03:49 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default COM in .Net ; no error but no result

Hi,

I am using a COM dll in my ASP.Net code. I converted it to proxy using
tblimp and put it to the bin directory of my application.

I have one method of that dll which takes two parameters; source file path and destination path-file name.

When I run the code, it doesnot give any error but it doesn't execute method either.
Another method of that dll works perfectly.

Code for my program :

Code:
<% @Page Language="C#" trace="true" %>
<% @Import Namespace="System.IO" %>
<% @Import Namespace="NewNetTiffMaster" %>

<%

    Trace.Write ("now starting, creating TiffMaster object");
    TiffSqueezerClass TiffMaster = new TiffSqueezerClass();        


    //TiffMaster.CreateSingleTiff("C:\\dotnet\\01062004\\hirahul.tif","d:\\rahul");
    //This above method works fine.
    try        
    {    
        string pathNoExt = @"d:\01062004";
        string pathToCreate = @"d:\test.tif";
        //TiffMaster.CreateMultiTiff("d:\\01062004","d:\\");
        TiffMaster.CreateMultiTiff(pathNoExt, pathToCreate);
        Trace.Write ("It should create multipage tiff now");
    }
    catch (ArgumentException exArg)
    {
    throw new ArgumentException("Doh - you forgot the filename.", exArg);
    }
    catch (FileNotFoundException exFNF)
    {
    //throw new FileNotFoundException("error.", "rahul.tif");
    Trace.Write (exFNF.Message);
    //Trace.Write (exFNF.Description);
    }
    finally
    {
         Trace.Write ("I do not know where it goes.....any help");
    }
%>
Any other way to solve this ? Any suggestions.

thxs
rahul





Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp.net 2.0 Instant result Chapter 4 SurveyEngine: aalhussein BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 May 3rd, 2008 02:40 AM
GridView and SQL More than one result = one result DarkForce ASP.NET 2.0 Basics 0 July 20th, 2007 04:29 AM
Database unable to show result. (ASP.NET C#) richie86 ASP.NET 1.0 and 1.1 Basics 3 November 10th, 2005 01:59 PM
problem in show result (vb.net) q8z Beginning VB 6 0 October 27th, 2004 03:01 PM
ASP.NET Using VB.NET Chapt 3 Code error? uh6uj All Other Wrox Books 1 February 26th, 2004 10:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.