|
I have an application which communicates with WebServcie when.I installed the application and the WS on a srever of test,i've got all the results i'm waiting for.But when I installed the Web site and the WS on the WEBFARM, the Web site did no longer communicate with the WS. The site can communicate with the WS installed on the server of test.And another site installed on a site different from the WEBFARM can communicate with the WS installed on the WEBFARM.
The problem is that the Web site installed in WEBFARM cannot communicates with the WS installed on the same WEBFARM. What to do!
Here is a snapshot of the debugging window showing the emerged errors:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +1002066
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +431
[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.GetRequestStream() +1504445
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +103
PTF2_EVALTA.InfoAgent.test(String chaine) in d:\BuildAreas\mk_build\PTF2_EVALTA\V0.013\PROJECTS\PTF2_EVALTA\Web References\PTF2_EIDS_WebService\Reference.cs:90
PTF2_EVALTA.WebForm1.Page_Load(Object sender, EventArgs e) in d:\BuildAreas\mk_build\PTF2_EVALTA\V0.013\PROJECTS\PTF2_EVALTA\PTF2_EVALTA_APP\WebForm1.aspx.cs:34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
mouadh trabelsi
|
|
|
|
|
HI Check for the Firewall make it Off and try once again
|
|
|
|
|
thanks for ur reply
I already try this solution it didn't work
mouadh trabelsi
|
|
|
|
|
Hi Friends,
Anybody know AspMaxRequestEntityAllowed Metabase Property (IIS 6.0)? I want to know what is the drawback if this value is set to maximum (default-200k and Max - 1GB)?
|
|
|
|
|
|
Thanks for replying Vasudeven..
I have read all these articles. Microsoft have three more article regarding the same with different colors. My need is to know the drawbacks if I set the value to maximum (1GB).
|
|
|
|
|
Hi,
I'm having trouble reading the text displayed in a HyperLinkField inside a GridView during a loop. I have no trouble reading BoundField and Checkboxes.
For Each gRow In GridView1.Rows ' Loop the gridview
' get the checkbox object inside a TemplateField
Dim Chkbox As CheckBox = CType(gRow.Cells(0).Controls(1), CheckBox)
If Not Chkbox.Checked Then
' Read from a normal BoundField, works ok
cmd.Parameters.AddWithValue("@ProjectName", gRow.Cells(8).Text)
' Read from a HyperLinkField = ERROR
Dim hlf As HyperLinkField = CType(gRow.Cells(3).Controls(0), HyperLinkField)
' Don't know if next line is valid, but reflects what I want to do.
cmd.Parameters.AddWithValue("@NextField", hlf.Text)
cmd.ExecuteNonQuery()
cmd.Parameters.Clear()
End If
Next
Thanks!
abohlin
|
|
|
|
|
i wanna use a scanner from my web page and i want the scanned picture directly online and not on disk. can u help plz.
vina
|
|
|
|
|
You'd need to automatically open up the scanner's TWAIN interface, fire off a scan automatically and save it on the webserver somewhere automatically (off the top of my head). How do you do that? Probably with a lot of nasty C code!?
|
|
|
|
|
Hi
I’m converting a project from visual studio 2003 to visual studio 2005. The problem is:
In the 2003 project I got a folder (called businessLayer) containing all the .cs business classes and one of these classes is referencing a user control in another folder after converting the businessLayer folder became under app_code folder so it can’t see the folder containing the user control so I put the cs files in a folder (also called businessLayer) out of the app_code folder but the all the controls can’t access the new folder out of app_code while they can see another folder containing another user controls.
So what can I do to overcome this problem, any idea
shaimmaa
|
|
|
|
|
Why is your business layer using a UserControl? You would be better to look at changing that, ideally the business logic doesn't need to have access to anything on the view.
|
|
|
|
|
Hi
Am having a web page with many textboxes and 3 buttons(button1,button2,button3).
Since there are many textboxes,the user can enter value in them with no tab order,according to his convenience.
My requirement is that -- Wherever the cursor is focussing(any of the textboxes),when the user clicks 'Enter' key,it should activate the Button1's Click event.
Can anyone help me how to do this?
Thanks!
|
|
|
|
|
|
Thanks Deepak
I tried like this...
<br />
function buttonClick()<br />
{<br />
if ((window.event.which == 13) || (window.event.keyCode == 13)) <br />
{<br />
document.getElementById('btnDisplay').click();<br />
return true;<br />
} <br />
else <br />
return false;<br />
}<br />
And in Code behind, i tried as
<br />
HtmlForm form1 = (HtmlForm)Page.FindControl("Form1");<br />
form1.Attributes.Add("onkeydown","javascript:buttonClick()");<br />
Is this correct ?
In which event actually i need to call the Javascript?
Please help me!
|
|
|
|
|
the logic is right but thw way u implemented is not right.....
do one thing
function buttonClick()<br />
{<br />
if ((window.event.which == 13) || (window.event.keyCode == 13)) <br />
{<br />
alert("Got U!!")<br />
return true;<br />
} <br />
else <br />
return false;<br />
}<br />
function OnPageLoad()<br />
{ <br />
document.getElementById("Button").onkeydown=buttonClick;<br />
document.forms["FORM_NAME"].onkeydown=buttonClick;<br />
}<br />
<br />
<body onload="OnPageLoad()">
|
|
|
|
|
Thanks friend!
But there's no attribute 'removed' in <body..> tag.
is it enough that i just include that attribute?
Can you please help me?
|
|
|
|
|
I have created application that have gridview for view the details in the page load it self,I’ve puted the command field for edit,update,cancel the data,my codings are as follows for each an even of command field.(RowEditing,RowUpdating)
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = (int)e.NewEditIndex;
BindGrid();
}
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
String updateCmd = "UPDATE College_Sa SET cName = @Name, cState = @State where cCode = @ID";
SqlCommand myCommand = new SqlCommand(updateCmd, mycon);
myCommand.Parameters.Add(new SqlParameter("@ID", SqlDbType.Char, 11));
myCommand.Parameters.Add(new SqlParameter("@Name", SqlDbType.Char, 25));
myCommand.Parameters.Add(new SqlParameter("@State", SqlDbType.Char, 25));
myCommand.Parameters["@Name"].Value = GridView1.Rows[int.Parse(e.RowIndex.ToString())].Cells[3].Text.ToString(); ;
myCommand.Parameters["@State"].Value = GridView1.Rows[int.Parse(e.RowIndex.ToString())].Cells[4].Text.ToString();
myCommand.Connection.Open();
try
{
myCommand.ExecuteNonQuery();
GridView1.EditIndex = -1;
}
catch (SqlException exc)
{
Label2.Text = "Error while entering data into database " + exc;
Label2.Visible = true;
}
myCommand.Connection.Close();
BindGrid();
}
In the BindGrid(),my problem is when I click update button Value of Name and State fields are not taking my new values.pls help me to solve this problem.
Thank You
|
|
|
|
|
Was it overriden by PostBack Databinding? You can check for IsPostback right?
|
|
|
|
|
Should i check IsPostBack in RowUpdaingEvent?is it necesarry?
|
|
|
|
|
I am developing mail server like yahoomail, rediffmail.. if i send mail from my domain to other domain id means how to check the mail id is vaild or not.. ex: from-- a@mail.com.... To=-- hai@yahoo.co.in... in that time how to i check the mail id hai@yahoo.co.in is present in yahoomail ...
Thank you..
Eswaramoorthi
|
|
|
|
|
You can check by sending a validation email to which the user has to click and confirm. Then you can change the state to 'Active'.
There are some email validation components like ones from Hexillion however not all email servers support the commands used by it.
|
|
|
|
|
u can validate the email by regular expession validation
|
|
|
|
|
|
ok sir.. but i want to check the id is in that mailserver database..
|
|
|
|
|
You can't do that. If you could, we'd all get a lot more spam
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|