.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Eror is occuring during the inclusion of third party namespace

Posted By: sridar1     Posted Date: May 06, 2011    Points:5   Category :C#
Hai,


I am developing .net application for converting tally files into text format.I am using rtslink namespace for this.After entering the code i got the error.Plz clear this error.

//below is my program//

mypage.aspx.cs

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Runtime.InteropServices;

namespace rtslink
{
public partial class _Default : System.Web.UI.Page
{
[DllImport("RTSLINK.dll")]
public extern static int Open();
[DllImport("RTSLINK.dll")]
public extern static int Send(string request);

[DllImport("RTSLINK.dll")]
public extern static string ResponseText();

[DllImport("RTSLINK.dll")]
public extern static string GetLastErrorMessage();


protected void Button1_Click(object sender, EventArgs e)
{
string strResponse = null;
string strXMLfile = "";
int n = 0;



strXMLfile = "<ENVELOPE><HEADER><TALLYREQUEST>Import Data</TALLYREQUEST></HEADER><BODY><IMPORTDATA> <REQUESTDESC><REPORTNAME>All Masters</REPORTNAME></REQUESTDESC><REQUESTDATA><TALLYMESSAGE xmlns:UDF=\"TallyUDF\"> <GROUP NAME=\"My Debtors\" ACTION=\"Create\"><NAME.LIST><NAME>My Debtors</NAME></NAME.LIST><PARENT>Sundry Debtors</PARENT><ISSUBLEDGER>yes</ISSUBLEDGER><ISBILLWISEON>yes</ISBILLWISEON><ISCOSTCENTRESON>yes</ISCOSTCENTRESON></GROUP></TALLYMESSAGE></REQUESTDATA></IMPORTDATA></BODY></ENVELOPE>";

n = Open();
if (n == 0)
{
if (Send(strXMLfile) == 0)
{
Response.Write("SUCCESS");

strResponse = ResponseText();
Response.Write(strResponse);
}
else
{
Response.Write("send failed");
}

}
else
{

Response.Write(GetLastErrorMessage().ToString());
}

}
}
}

In the above code I am getting error in the line "n=open();".

"Unable to find an entry point named 'Open' in DLL 'RTSLINK.dll'."
Plz clear this

Responses
Author: Sunil Yadav       [Moderator]      
Posted Date: May 27, 2011     Points: 20   


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend