|
How is anyone supposed to help you with a description like this?
You have to be a lot more precise if you want help...
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
leelaraj wrote: but its giving , out of memory error.pls give me code to rectify this error.
Get more memory.
Cheers,
Vikram.
I don't know and you don't either.
Militant Agnostic
|
|
|
|
|
If you close the Stream you got the image from before saving, you tend to get this error. Keep the "opening" stream open till after you saved it.
|
|
|
|
|
hi
i am facing a problem in communicating web services through desktop client.
my pc is behind the firewall. when i am testing the application through the .net iDE its working fine.its communicating properly. when i am installing the client through setup its giving the error
error : ---- start
The underlying connection was closed: An unexpected error occurred on a receive.
at System.Web.Services.Protocols.WebClientAsyncResult.WaitForResponse()
at System.Web.Services.Protocols.WebClientProtocol.EndSend(IAsyncResult asyncResult, Object& internalAsyncState, Stream& responseStream)
at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
at WebServicesTestingClient.com.sterlinginet.dev.UASPDetails.EndUASPDetailsSet(IAsyncResult asyncResult) in E:\GamaProjects\WebServiceProxyTestingClient\Web References\com.sterlinginet.dev\Reference.cs:line 49
at WebServicesTestingClient.Form1.button1_Click() in e:\gamaprojects\webserviceproxytestingclient\form1.cs:line 211
error end
my code is looks like
private void button1_Click()
{
try
{
setProxy();
richTextBox1.Text = "";
richTextBox1.AppendText("initializing the web services\n");
com.sterlinginet.dev.UASPDetails service = new com.sterlinginet.dev.UASPDetails();
// Firewall/Proxy Setting (use this settings if you are accessing behind a firewall).
WebProxy oProxy = new WebProxy(addressTxt.Text, Convert.ToInt32(portTxt.Text));
///oProxy.Credentials = new NetworkCredential();
service.Proxy = oProxy;
service.Url = "http://dev.sterlinginet.com/Makhaas/Gama/UASP.asmx";
richTextBox1.AppendText("web services initialized successfully\n");
DataSet dataSet = new DataSet();
DataTable dataTable = new DataTable();
dataTable.Columns.Add(new DataColumn("UA_ID",System.Type.GetType("System.Int16")));
dataTable.Columns.Add(new DataColumn("UA_CODE",System.Type.GetType("System.Int16")));
dataTable.Columns.Add(new DataColumn("UA_NAME_LA",System.Type.GetType("System.String")));
dataTable.Columns.Add(new DataColumn("UA_NAME_AR",System.Type.GetType("System.String")));
dataTable.Columns.Add(new DataColumn("UA_MOH_STATUS",System.Type.GetType("System.Int16")));
dataTable.Columns.Add(new DataColumn("UA_MOH_TIMESTAMP",System.Type.GetType("System.String")));
DataRow row = dataTable.NewRow();
row[0]=101;
row[1]=5001;
row[2]="Testing LA";
row[3]="Testing AR";
row[4]=1;
row[5]="2006/02/26 11:33";
dataTable.Rows.Add(row);
dataSet.Tables.Add(dataTable);
richTextBox1.AppendText("wait working on web services\n");
System.IAsyncResult rs = service.BeginUASPDetailsSet(dataSet,null,null);
service.EndUASPDetailsSet(rs);
if(rs.IsCompleted)
{
richTextBox1.AppendText("success\n");
}
else
{
richTextBox1.AppendText("failure\n");
}
}
catch(Exception ex)
{
richTextBox1.AppendText(ex.Message+"\n\n"+ex.StackTrace+"\n\n");
}
richTextBox1.AppendText("finished");
}
private void setProxy()
{
try
{
int port = Convert.ToInt32(portTxt.Text);
WebProxy proxyObject = new WebProxy(addressTxt.Text, port);
GlobalProxySelection.Select = proxyObject;
}
catch(Exception e)
{
MessageBox.Show(e.Message+"\n\n"+e.StackTrace);
}
}
please try to solve my problem
guys i am eagerly waiting your response
Mohammed Meraj
Project Leader (IT)
GAMA
Jeddah
KSA
mohd
-- modified at 6:57 Monday 6th March, 2006
|
|
|
|
|
Hi,
I have to right-click a set of nodes(respectively) and some options should be displayed there...If i click the menu ,according actions should be done....
Similar to a normal mouse Right-Click option..
Kindly help me in implementing this code..
Thanx
|
|
|
|
|
- Add a context menu to your form (contextMenu1)
- Use the designer to set it up
- Add event handlers to it
- Set the ContextMenu property of your tree control to contextMenu1
- Dy
|
|
|
|
|
Thanx for ur quick reply friend...
Could you suggest me any samples in any sites...'coz i have no idea over it.....
|
|
|
|
|
hi guys,
i have a client/server application. i dont want the users of my client application to be able to terminate the process of the client application. how will i do that? is it possible to hide the process from the task manager? or is there a better way of doing this? please help...
|
|
|
|
|
|
hi, thanks for the reply.. ive tried the demo file and its good...
im using c#, can i use it in my code?
|
|
|
|
|
This particular example is written in C++, so you would need to rewrite it to work in C#.
----------
There go my people. I must find out where they are going so I can lead them.
- Alexander Ledru-Rollin
|
|
|
|
|
hey thanks... it was useful..
|
|
|
|
|
i have a application in c# that uses web browser control
How can i disable Back buttons and forward button of my application if there is no page to be navigated. ifa nayone can help please.
thanks ramya
|
|
|
|
|
|
Hi try following code, write it in OnInit method
this.RegisterClientScriptBlock("DesableButton","window.history.forward(1); ");
|
|
|
|
|
can anyone tell me what changes have been made in the namespaces in visual studio 2005 against it's previous versions? even msdn is not so helpful.
Thanks
Max
-- modified at 6:17 Tuesday 28th February, 2006
|
|
|
|
|
Google: Breaking changes .NET 2.0
|
|
|
|
|
I have an application that uses one or more pre-shared AES256 Keys.
Obviously it's not safe to save them in the configuration files, nor put them in the code because you can decompile it with ILDASM.
So, how can I store them in a safe way?
Thanks.
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
It can also be found by ILDASM, however in stead of simply having the key directly as a variable you could "bury" it within some of the resources (e.g. a Bitmap the the program is using).
Pelle
Pelle
|
|
|
|
|
It could be an idea. Thanks.
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
hi,
I want to learn how to make custom datagridview cells.
Martti Dumangeng
|
|
|
|
|
Here ya go[^]
Note that asking a more specific question will result in a more specific answer.
Cheers,
Vikram. "Don't judge me
You could be me in another life
In another set of circumstances"
- "Tomorrow we'll see", Sting.
|
|
|
|
|
Hi friends,
Am exporting data from .NET to Excel..Depending upon the datatype ,am setting the Format of the Cells in the particular range in Excel.
In .NET ,am reading the data using select statement and updating the datas seperately in the Excel and then the Format of the stored datas..
If there's Date field or Time Field,.NET is reading both the datas as DateTime only.So while transferring,though the datas are stored correctly,when i use the same Excel as source to export to someother target,the datatype of the DateField is fetched as String,which i want to be as DateTime...
Am using this to set the range,ie,
mExcelRange.EntireColumn.NumberFormat = "m/d/yyyy";
|
|
|
|
|
Write a little function to parse the field content by yourself.
Standard C: scanf("%i/%i/%i",&month,&day,&year);
|
|
|
|
|