|
The solution is by using common agent between the Web Site and the Web Service, umm what's your opinion about MSMQ rather than DB connection ?? or for simplicity i can use DB?
|
|
|
|
|
I don't know much about MSMQ. So I prefer DBConnection
|
|
|
|
|
Thank You Very Much For your support
|
|
|
|
|
Hi
I'm calling a web service through my aspx file, the web service is doing some huge operations [takes min 10 to 15 min to complete]. In the mean while the UI page [aspx] returns error "The Page cannot be displayed".
How can I resolve this issue??? Please state your comments...Thanks in advance.
Cheers,
Chandru.
|
|
|
|
|
From your description, one of your ASP.NET webservice can work well (can
view error info when turn off customErrors...), but always return "page can
not be displayed..... error when move to a deployment server, yes?
As for the <customerrors mode="Off" ...="">, it only ensure that when there
is unhandled exception occurs in ASP.NET runtime, it'll be displayed on the
web page with detaield error info... However, since the ASP.NET web
application will recieve request from client browser , then IIS server and
finally the asp.net pipeline ... , there could have some exception or
error occur before the ASP.NET runtime handle the request, in such cases,
the error info can not be captured by customErros page.....
So for general troubleshooting, I would suggest first try putting a normal
HTML page in your asp.net app's virtual dir and visit it to see whether we
can view it correctly(see IIS works well or not...). Also, the IIS log
under %windows% \system32\logfiles is another thing we can check , please
also have a look to see whether there is error entry mapped to your request
to the webservice...
Regards,
Satips.
|
|
|
|
|
Hi Satips,
The error has been captured in HttpErr1.log file. Error is "Timer_EntityBody". Can you briefly describe how can I resolve this???
Thanks,
Chandru.
|
|
|
|
|
The connection expired before the request entity body arrived. When it is clear that a request has an entity body, the HTTP API turns on the Timer_EntityBody timer. Initially, the limit of this timer is set to the ConnectionTimeout value (typically 2 minutes). Each time another data indication is received on this request, the HTTP API resets the timer to give the connection two more minutes (or whatever is specified in ConnectionTimeout).
Becouse in the web.config file you could have set the time as 20 min if i m rite. Please check it out and change the timeout time.
Regards,
Satips.
|
|
|
|
|
May be some unhandled exception occured in the webservice ? I am not sure abt it
|
|
|
|
|
Think about calling your Web Service asynchronously and having it return status when it completes. It is EXTREMELY bad practice to tie up your application waiting on a 10~15 minute process to complete.
Think of it this way; You have 100 users that hit your application and run this Web Service method. For every user, a thread is used to the worker process AND another thread is used by another worker process for the Web Service (if the web app and Web Service are using separate Application pools... so, you are using roughly 200+ threads and blocking tons of calls for this long method. Now, if you have other web applications in the same application pool, they are also going to be blocked because the worker process is going to be waiting and waiting on all these calls to complete, meanwhile it is queuing up more calls. See the pattern here?
Call your Web Service method asynchronously and then move on to other things. when it has completed, then you can update your page in some manner.
hth,
~dnc
|
|
|
|
|
Hi I am using ASP.NET1.1 with Back end VB.NET Code.
I am trying to used Update command in Datagrid. But i am getting error in this line..
Private Sub DataGrid1_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.UpdateCommand
Dim eId As String
eId = DataGrid1.DataKeys(e.Item.ItemIndex) 'This line
End Sub
Error: "Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
i want to know there i done Mistke
Mkanchha
|
|
|
|
|
I think the Datagrid is not returned by the function UpdateCommand. Hence it's throwing the error. Do check whether it returns any DataGrid1_UpdateCommand.
Regards,
Satips.
|
|
|
|
|
I need to programatically read the endPoints within the client section
in asp.net, how do I do that?
so basically I need to get the name & the address in this endpoint.
<servicemodel>
<client>
<endpoint name="httpEndPoint" address="http://localhost:8001/xxx" binding="basicHttpBinding" contract="IMessageBus" bindingConfiguration="basicHttpBinding_Config"/>
</client>
</servicemodel>
thanks.
|
|
|
|
|
I have a webservice method that throws a soapexception if it has any errors, but when I test the service via the services.asmx?op=webserviceMethod page and an exception is thrown the web page shows a 500 error. I expected it to show some xml with the error message I created, but maybe I'm missing something.
Question: Is there a way to view the soap error message (xml) thats part of the SoapException instead of the 500 error?
|
|
|
|
|
hi,
whenever i have an error which i can't understand after all my personal efforts i copy tht error message and paste in Google Search bar n get useful help. hope it also works for u.
Regards,
Atif
|
|
|
|
|
If you modify the auto generated class that wraps the web service you can get the raw xml. I was more or less just curious about whether or not the detail I added to my soap exception was being sent to the consumer correctly. See OmegaMans article
http://www.codeproject.com/cs/webservices/SerializationFun.asp
|
|
|
|
|
How do can one specify the datakeynames when i have more than one parameter to be passed to a datagrid source?
t.aransiola
|
|
|
|
|
in code behind:
GridView1.DataKeyNames="Key1,Key2,Key3";
in source:
<asp:GridView runat="server" id="GridView1" DataKeyNames="Key1,Key2,Key3" />
hth,
~dnc
|
|
|
|
|
Probably a simple question.
I have a form with a search button. The click event of the button calls a method for preforming a search. The search method returns a collection of business objects which I bind to a DataList.
The binding only appears to work properly when done in the OnInit event. That's fine.
The issue is in the order of the events. When the user clicks the search button the buttons click event isn't fired until after the init event.
<br />
protected void btnSearch_Click(object sender, EventArgs e)<br />
{<br />
List<Customers> customersList = Search();<br />
<br />
}<br />
I need to trigger a second post back to get the OnInit to fire again. Or do I?
-Mike.
|
|
|
|
|
Doing ASP.NET for several years, I never needed to handle OnInit() . Is there a reason you use it?
Usually my code looks something like this:
protected void Page_Load( object sender, EventArgs e )
{
if ( !IsPostBack )
{
List customersList = Search();
...
}
}
|
|
|
|
|
Reading the MSDN articles I was under the impression that dynamic content (in this case the template of my DataList has a custom control) needs to be created during the init event.
But, if you say you can do it through the Page_Load I believe ya. However, so far that has not worked.
This is what I have now tried:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (SearchResults != null)
{
SearchResultsList.DataSource = SearchResults;
SearchResultsList.DataBind();
}
}
}
protected void btnSearch_Click(object sender, EventArgs e)
{
SearchResults = Search();
}
private List<Customer> SearchResults
{
get
{
return Session["SearchResults"] as List<Customer>;
}
set
{
Session["SearchResults"] = value;
}
}
When I hit search, nothing shows up. It doesn't appear as though the bind is ever happening.
It's probably something obvious. Usually is the case.
-Mike.
|
|
|
|
|
I guess you need to do something like this:
protected void btnSearch_Click(object sender, EventArgs e)
{
SearchResults = Search();
SearchResultsList.DataSource = SearchResults;
SearchResultsList.DataBind();
}
|
|
|
|
|
That got it!
I was actually already doing this when I first started, but nothing was showing up. Turns out the problem wasn't the order of where I set my DataSource but rather where I render my HTML in my custom control (the one in the template of the DataList).
Thanks for your help.
-Mike.
|
|
|
|
|
Dear All,
I bound my tree view to a sitemap datasourec from the web.sitemap
my propblem is that i want to display a confirmation message (javascript) when the node is clicked because clicking it does much on the database so i want to make sure that the client confirms clicking before doin that
I would appreciate any comment or hint
Thank in advance
Best Regards
3ala2
|
|
|
|
|
Hi
I am using ASP.Net 1.1.
I just want to get idea about AJAX with ASP.Net 1.1
Say for example, I have tmp.aspx which contain one textbox, a button and one lable. Now i want to print address from database on base of textbox value on click of button without server trip with AJAX. I have a function "GetAddress(String name)" in tmp.cs. So could anybody direct me how can i call this function using AJAX on click of button to save round trip.
Actully I have tried by assigning label using XMLHttpRequestobj.responsetext but whole response is coming. i just want to excute one function on button click thats it. Please direct me.
Actully this is not my actual requirnment but if i get this solution then i can handle any requirnment about AJAX.
Thanks in Advance to that genius who will make me clear about AJAX.
Thanks
Anand
|
|
|
|
|
There are a number of libraries that can make this easier for you. Try this one
http://www.ajaxpro.info/[^], it has examples that should be helpful to you.
only two letters away from being an asset
|
|
|
|