|
Hi all,
I have a webservice method (call is method X) that is called from a windows forms client. This webservice method X instantiates a class in another assembly (call it assembly A) and calls one of its methods (Y). Assembly A has as reference a COM object written in C++.
In method Y, I instantiate a class from the COM object and call a method of that class (method Z.)
Then the result of Z is sent to Y, which returns it to X, which returns it to the client application.
Now everything works fine if I have only ONE client application calling method X of the webservice. As soon as I launch another call to X from another client application, I start getting exceptions being thrown from the COM. The COM itself uses many mathematics DLLs which I have placed in System32. I notice that the exception is generated from a particular method in one of those DLLs.
Is it right to assume that this particular DLL throwing the exception is not ThreadSafe?
When a second client application calls method X, don't we have a new thread being launched? and if so, then why does the COM seem to be behaving as if all instance of method Z are calling the same COM instance?
I'm quite lost at this one as I have no experience with COM stuff, could someone explain to me what is going on? and if there is a way to make more than one instance of the COM to run simultaneously.
Thanks a lot.
Talal.
Make it possible for programmers to write programs in English, and you will find that programmers can not write in English. - Murphy's Law
|
|
|
|
|
i have a datagrid say grid1 in one page say page1,ill bind only few columns in the grid1,ther s link label in grid1 on clicking that i open a page say page2 which also has a grid say grid2 and i select a pariticular row from grid2 on clicking the checkbox and the seleted row data shud be binded to the 1st grid,
my problem is agter i select the row from the 2nd grid and say ok,the 1st page refreshes and few clumns wat i had binded earlier gets erased
how do i solve this
Regards
Kavitha
|
|
|
|
|
HI
Guys,Can any one let me know how to make the web application DDA(disability discrimination act) compliant, so the disable persons(blind,deaf etc) could also access our web application with out any hinderance, plzzzz reply ASAP,thankx in advnace for ur help.
|
|
|
|
|
I have an open ip in my office we have hosted a site on that ip as master. when i type my ip the first page opens. I have used ajax in my site and register in web.config
there is also other sites when we try to access them they throws the error.
i takes roots web.config as thier own and searches for ajax file but not every project in ajax. non ajax project only throw error
Plzz help me to solve this problem
|
|
|
|
|
Hello Buddies
I want to get DSNs and Tables of corresponding database of DSN ,where browser is running. i.e when user opens browser ,all DSNs and their Tables of client Pc have to fill in dropdownlist box.Actually I am working Sending SMS in Bulk. we provide to import SMS data through ODBC.i requied all DSNs of Where browser(client PC) is opend. I have done through reading .INI file but it always reads Server DSNs
which is not what actually i wanted.
If anyone have some idea or sample code ,plz help me.
Thanks & Regards
Vinay Singh
Vinay@cube-software.com
"Every thing matters in this world but what you think,it matters more.
When thinking changes,the whole world changes."
|
|
|
|
|
Hello,
The following error i got when i run the web crystal report application
Access to the path "C:\DOCUME~1\SYS13\ASPNET\LOCALS~1\Temp\temp_91f57bd7-e64a-42e4-bfe3-d273f43f2c77.rpt" is denied.
Plz Suggest me in correcting the problem
|
|
|
|
|
Guess you have permissions problem
just go to the folder that contains the report
right click --> properties
from the security tab give the permission to the ASPNET use as full control
Hope this would help
Best Regards
3ala2
|
|
|
|
|
Hi,Thank U for u'r Reply
Problem Solved
Thanks&Regards
Srilakshmi
|
|
|
|
|
No problem
Best Regards
3ala2
|
|
|
|
|
hi all
i am submitting a query like
insert into test(PID,Details)values(2,'"+txtdetails.Text+"')
problem with me if the txtdetails contain the string like
"amit's bother resides in delhi"
the character(') create a problem. i don't want any loop to check the index of the character(') because the string is too large having number of character like(').
please just i want a simple query to insert the string.
thanks in advance,
srinandan
|
|
|
|
|
insert into test(PID,Details)values(2,'"+txtdetails.Text+"')
used command parameters
int ptd1=2;
cmd = new SqlCommand("Insert into test(PTD,Details) values (@ptd,@details1)",connection name)
cmd.Parameters.Add("@ptd",ptd)
cmd.Parameters.Add("@details1",txtdetails.text.trim());
myconn.Open();
cmd.ExecuteNonQuery();
myconn.Close();
or simple insert 2 and use parameter for second one.
anuj
dcjoshi2
|
|
|
|
|
I don't know a simple way.
You should do:
string str = "this is a 'sample string'";
str = str.Replace("'", "''");
thats all.
Try it!
elaj
|
|
|
|
|
|
I have two button on each row of a dtatgrid, I want to capture the onclick event of each button and call a function, the onclick event i want to capture is the server side event as i want to update the database
<asp:buttoncolumn text="Down" buttontype="PushButton" headertext="Down">
<asp:buttoncolumn text="Up" buttontype="PushButton" headertext="Up">
|
|
|
|
|
use itemCommand event of the datagrid
Thomas
|
|
|
|
|
ok so i have, please see the comment within function, thanks in advance
Private Sub dgHeaders_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgHeaders.ItemCommand
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
'in here how do i know which button was clicked
End If
End Sub
|
|
|
|
|
Set the CommandName property of each button in html and you can check that name using e.CommandName
Thomas
|
|
|
|
|
thats working perfectly,
Thank you very much thomas
|
|
|
|
|
Hi,
I was trying to send a number from a HTML textbox to add a value to it at the Server, then return it to an ASP textbox.
But I don't know to to pass the value of the HTML textbox to the server.
The 2 Javascript functions are:
<script type="text/javascript">
//the first function to call the server
function GetNumber() {
UseCallBack();
}
// The function receive the adjusted value from the server and display it into the textbox1
function GetRandomNumberFromServer(arg, context) {
document.forms[0].TextBox1.value = arg;
}
</script>
Here are the server side code, written in the .vb file:
Dim _callbackResult As String = Nothing
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim cbReference As String = Page.ClientScript.GetCallbackEventReference(Me, _
"arg", "GetRandomNumberFromServer", "context")
Dim cbScript As String = "function UseCallBack(arg, context) {" & cbReference & "}"
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "UseCallBack", cbScript, True)
End Sub
Public Function GetCallbackResult() As String Implements System.Web.UI.ICallbackEventHandler.GetCallbackResult
Return _callbackResult
End Function
Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent
_callbackResult =
'equal the value from the HTML textbox + 5
End Sub
Does anyone know where I can add some code to ask to pass the value to the Server?
Thanks,
-- modified at 4:30 Tuesday 3rd October, 2006
|
|
|
|
|
Hi,
I get this error randomly, please explain possible reasons..
Owner: ASP.Default_aspx
Type: IBM.WMQ.MQException
Source: amqmdnet
Description: CompCode: 2, Reason: 2018
Exception: CompCode: 2, Reason: 2018
Thanks
Mohan
|
|
|
|
|
Hi Mohan,
Did you integrate .Net application/Servers with IBM websphere MQ (IBM MQSeries).
With Regards
Satips
|
|
|
|
|
Yep, that is done & the website runs fine except this error occasionally & this error occurs when the page is not accessed for a while. But it doesn't sound to be a timeout issue, I’ve checked this.
|
|
|
|
|
|
i need to make web parts for which i need codes,please suggest me a web site from where i can get the required codes . mine is an asp.net application with c# as codebehind developed in .NET 2003 (i.e .NET 1.1)
|
|
|
|
|
Don't repost the same question.
With Regards
Satips
|
|
|
|