|
Hi,
I'm trying to load an XML file and got the "System.Net.WebException was unhandled" Message="The operation has timed out". Is it due to the loading operation timing out? How do I overcome this problem? I saw the following at msdn but do not know how to implement the "solution". Can anyone kindly advise pls. Thanks.
solution at msdn:
Service1 obj = new Service1();
obj.TimeOut = -1; // infinite time out.
-- modified at 22:31 Sunday 25th March, 2007
|
|
|
|
|
First question to provide an answer to is where are you loading the Xml file from? Based on the fact that you're getting a WebException you must be loading it from the network somewhere. Have you established that this file does indeed exist and that you can download copies of it?
|
|
|
|
|
Hi,
indeed I'm loading it from the company network. The file exist for I am able to load it from IE w/o problem. However, the file is hosted in my company server so using IE to load it is accessing from LAN so no problem? I'm able to load the Xml from the program but sometimes it throws this timeout exception but loading from IE doesn't give any problem. So any ideas and suggestions please. Many thanks.
-- modified at 22:59 Tuesday 20th March, 2007
|
|
|
|
|
Based on the fact that the program can load the xml file occasionally I don't think that it's a problem with the code, it's more likely to be a problem with the network or permissions somewhere.
Sorry I can't be more specific.
|
|
|
|
|
I am a new C# sharp programmer and currently working on a project for a small company. The project should resuult in a software that could enable people on a network to communicate with one another as they please. Talk a about it as working like an intercom. Am using the power that .NET provides to accomplish this. I know of applications developed in .NET to run on windows platforms. Is it possible to develop .NET applications that could run on say a LINUX sever or any other server? If so then how can it be done?
I will be very grateful if my problem is addressed.
David Ssali
C.T.O Magezi Solutions
|
|
|
|
|
Take a look at the Mono Project[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
dvdssali wrote: I know of applications developed in .NET to run on windows platforms. Is it possible to develop .NET applications that could run on say a LINUX sever or any other server? If so then how can it be done?
That's because there is Windows implementation of .NET (Microsoft .NET Framework). Since .NET is in fact standardized, there can be implementations on other platforms as well. For non-Windows world, there is one - called Mono[^]
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
You could also consider 3rd party freeware/opensource/non-free software. The time you spend building this application might cost the company more than they might spend on a small VOIP (Voice Over IP) package.
That being said, I think I would make my own software too
|
|
|
|
|
hi,
I am trying to write records in a dbase table to a sql tabe. for that i have created the oledb connection and i have filled the datase . now i am trying to fill the sql table. eventhough my coding doesnt show errors sql table doesnt get updated.
plz help me with this . below is my coding
public class TransferClass
{
OleDbConnection oledbConnection = new OleDbConnection();
OleDbCommand oledbCommnd = new OleDbCommand();
OleDbDataAdapter oledbDataadapter = new OleDbDataAdapter();
SqlConnection sqlConnection = new SqlConnection();
SqlCommand sqlInsertCommand = new SqlCommand();
SqlCommand sqlSelectCommamnd = new SqlCommand();
SqlDataAdapter sqlDataAdapter = new SqlDataAdapter();
public DataSet dsPlu = new DataSet();
string oledbselctString;
string sqlUpdateString;
string sqlSelectString;
//creating oledb connection
void oledbConnectionMethod()
{
oledbConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Z:/cpk;Extended Properties=dBase III";
}
void oledbSelectMethod(string comTxt)
{
oledbCommnd.CommandText = comTxt;
oledbCommnd.Connection = oledbConnection;
}
void oledbDataAdapterMethod()
{
oledbDataadapter.SelectCommand = oledbCommnd;
}
void PluFill()
{
oledbConnectionMethod();
oledbselctString = "SELECT PLU_NUM,[DESC],COST_PRICE,QTY,Q_OPEN,O_CP FROM Plu";
oledbSelectMethod(oledbselctString);
oledbDataAdapterMethod();
oledbDataadapter.Fill(dsPlu);
}
void sqlConnectionMethod()
{
sqlConnection.ConnectionString = "Data Source=RUWANDI;Initial Catalog=MIS;User Id=sa";
}
void sqlupdateMethod(string UpComTxt)
{
sqlInsertCommand.CommandText = UpComTxt;
sqlInsertCommand.Connection = sqlConnection;
}
void sqlselectMethod(string SelComTxt)
{
sqlSelectCommamnd.CommandText = SelComTxt;
sqlSelectCommamnd.Connection = sqlConnection;
}
void sqlDataAdapterMethod()
{
sqlDataAdapter.InsertCommand = sqlInsertCommand;
sqlDataAdapter.SelectCommand = sqlSelectCommamnd;
}
void PluUpdate()
{
sqlConnectionMethod();
sqlDataAdapterMethod();
sqlSelectString = "SELECT * FROM Plu";
sqlselectMethod(sqlSelectString);
sqlDataAdapter.SelectCommand = sqlSelectCommamnd;
sqlDataAdapter.Fill(dsPlu);
PluFill();
sqlUpdateString = "INERT INTO Plu(PLU_NUM,[DESC],COST_PRICE,QTY,Q_OPEN,O_CP) VALUES (PLU_NUM,[DESC],COST_PRICE,QTY,Q_OPEN,O_CP IN dsPlu)";
sqlupdateMethod(sqlUpdateString);
sqlDataAdapter.InsertCommand = sqlInsertCommand;
SqlCommandBuilder comBuilder = new SqlCommandBuilder(sqlDataAdapter);
sqlDataAdapter.Update(dsPlu);
}
public void Excecute()
{
PluUpdate();
}
}
Thx
rkherath
rkherath
|
|
|
|
|
I am exporting data grid to excel. (Tech .Net, C#, Sql Server) It is working fine on my network ( work on both IE 6.0 and 7.0 version ) But on client side the window is closing itself automatically.
I hit the Client Site url from my pc it is working fine.
I am not able to spot the problem if there is any security reason there. The exported excel open as pop up window. Client tried after removing popup blocker also, still same problem exits. To my surprise if you press CTRL key and continue then the excel sheet is open there without problem.
Please suggest me for possible problem.
Thanks in advance.
------------------------CODE USED----------------------------
DataTable dt= con.GenrateReport(Convert.ToInt32( repconfigid),FormId,FormTypeId,fromDate,enddate,status);
dgReport.DataSource=dt;
dgReport.DataBind();
worksheetname=FormName + " Report";
//
// going to export into excel our grid
//
Context.Response.Buffer = true;
Context.Response.ClearContent();
Context.Response.ClearHeaders();
Context.Response.ContentType = "application/vnd.ms-excel";
Context.Response.ContentEncoding = System.Text.Encoding.Default;
Context.Response.AppendHeader("Content-Disposition", "attachment;filename=" + worksheetname + ".xls");
EnableViewState = true;
StringWriter tw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(tw);
tblGrid.RenderControl(hw);
//dgReport.RenderControl(hw);
Context.Response.Write(tw.ToString());
Context.Response.Flush();
Context.Response.Close();
Context.Response.End();
Raj Kumar
|
|
|
|
|
Hi,
I want some instructions in how to convert existing C# Windows Application to C# Web Application..
Please post your replies as soon as possible..
|
|
|
|
|
write a n-tier application. One of the layers should be GUI only.
Then you can "attach" a windows forms or web based GUI to your application.
V.
I found a living worth working for, but haven't found work worth living for.
|
|
|
|
|
If the application has been properly architected it should just be a matter of rewriting the presentation (UI) layer - perhaps with the odd addition elsewhere to support a stateless model of working. If it hasn't been well architected then you are looking at rewriting the whole application.
|
|
|
|
|
Spamming different 10 forums with the same question is very rude and totally unnecessary.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi All,
I am required to create a program which when triggered, automatically dials specified telephone numbers and plays prerecorded sound. In usual IVR user dials, but here system is supposed to dial the users. I am new to this domain. So need little direction on doing this.
Thanks
|
|
|
|
|
|
how to apply checkbox inside datagrid for pocket pc 2003 (language c#)
help me
meraj
B
|
|
|
|
|
Are you using Webforms or Winforms?
When using ASP.NET Webforms I would recommend using a GridView.
when using Winforms I would recommend using a DataGridView.
public object BufferOverFlow<br />
{<br />
__get { return BufferOverFlow; }<br />
__set { BufferOverFlow = value; }<br />
}
|
|
|
|
|
hello
i want to use System DataGrid in pocket pc 2003 with checkbox feature
please help me
small
|
|
|
|
|
HI i had created one setup solution for an c# application. I tried to install the application in another machin's shared folder.It was a sucess.
But it shows an error message when i tried to run the application
The error message was like this....
The operation is not aloowed due to security policy.The operartion required SecurityException.use the Microsoft .net security policy administration tool
please help
My small attempt...
|
|
|
|
|
could you copypaste or screenshot the exact errormessage? makes it a lot easier to find a solution.
I had a similar problem recently when deploying a ASP.NET application under a Sharepoint webserver. Where I had to edit the wss_minimaltrust.config and machine.config.
public object BufferOverFlow<br />
{<br />
__get { return BufferOverFlow; }<br />
__set { BufferOverFlow = value; }<br />
}
|
|
|
|
|
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitdebugging="true">
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
My small attempt...
|
|
|
|
|
I don't really see any errormessages. Where did you copypaste this from?
public object BufferOverFlow<br />
{<br />
__get { return BufferOverFlow; }<br />
__set { BufferOverFlow = value; }<br />
}
|
|
|
|
|
i cant copy paste the picture.........
i didnt works
My small attempt...
|
|
|
|
|
hi all
i want to make a remoting applications in which i have some events which i want to handle on my clients,but i dont know how to register events on my clients,
any example code, ane help will be highly appreciated,
thanks in advance
hello
|
|
|
|