|
No its not asmx page its aspx page in which its methods are added with <webmethod> prefix by adding Imports statement for the "System.Web.Services". These webmethods are calling the WCF Operation Contracts.
Some how may be because of the WebMethods or WCF service methods, its taking long long time for finishing the execution.
I am getting lot of doubts regaring this issue
1. Is the WCF service is timing out, because it is reading the xml files using XMLDocument object
2. Are the webmethods are timing out because this is first I am putting webmethods in the aspx page, I did it earlier with asmx files
3. I am creating the WCF service client using ChannelFactory class, using createchannel method, is it creating lot of channels and WCF service is not able to process and just breaking because when I try to restart the iis also it is taking hell lot of time.
4. Do I have to close this channel factory class object and dispose it, it is how should I do that it is giving object reference null exception and saying that trying to retrieve using disposed object.
5. Then I created a method to clone the clientproxy class (or channel class) to return the cloned object and then dispose the channel factory class. Still the cloned object is coming as nothing, I am using VB.Net.
6. Is there any problem in my architecture or in WCF services, where am I missing.
Please help me in finishing it, its very urgent. Please help me please
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
I've never used WCF, and don't intend to in the near future. I read up on it just now, and it doesn't seem suited for my needs.
All in all, there are 3 parts, the requester , service and the responder.
1. You have to test the requester, and make sure the request is correct
2. Then test the responder, and make sure the response is correct.
3. You have to test the service, and make sure it doesn't crash from bad input.
Once you have tested all 3 parts, then it should work.
In c++ programming, it's good practice to use an exit code,
0 for success
1 for warning
2 for failure
[Edit]
Other than that, I have no clue. But I have many situations in which I have to walk thorugh the service, or build in more error checking before processing.
|
|
|
|
|
Hi,
Yeah its the problem in requester its opening new connection each time it requests. And .Net doesnt close the connection automatically after ending the block.
Either open the connection only when its closed or close and dispose it properly after using it. I preferred first one. Open it only when it is closed.
Its working. Thanks for all your help friend.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Please remove that domain name yes its not a valid one, please edit your message and remove that link and repost it. That would be great. Otherwise its a security breach for me please. I forgot it when I was posting the message
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Hi,
Iam able to send mail with gmail credential in send mail application using c#.
But while sending mail with my host details iam not able to send mail.
Just i replaced gmail details with my host provider details but iam getting error--
The remote certificate is invalid according to the validation procedure.
when i changed enableSsl property to false..iam able to send but the mail is in spam box. what is the logic behind.pls explain.
thankyou
arun
|
|
|
|
|
I have an application folder in my website which is m.mydomain.com
I don't want to use a separate web.config for the m folder.
is it possible to refer the m folder to use the same web.config in root?
|
|
|
|
|
In fact if you don't provide separate web.config at each folder in your website it will continue to use the web.config of root level.
the folder level web.config is only required when we want some special configuration in any folder otherwise the root web.config should be fine.
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.
|
|
|
|
|
I am working on a web application in visual studio 2008 and have come accross a problem where in i am not able to get the column index of the selected cell. the properties like CurrentCell or SelectedCell are not present.kindly assist me in this regard.
|
|
|
|
|
Try this:
private void UsersDataGrid_SelectedIndexChanged(object sender, System.EventArgs e)
{
LabelInfo.Text = UsersDataGrid.SelectedItem.Cells[1].Text;
}
Refer the links below:
MSDN : DataGrid.SelectedIndex Property [^]
|
|
|
|
|
Workout on SelectedIndexChanged Event of Gridview, and pick up the SelectedIndex in that Event.
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
We have a web page designed to be embedded in an iFrame on a different host web site.
The session timeout in web.config for the iFrame page is 20 minutes.
In our testing, the iFrame page times out as expected in various browsers like IE, Chrome, Safari and with IE8/XP and IE9/Win7.
A customer with a classic asp site has embedded our web page in an iFrame on their site. OUr iFrame web page refuses to time out for them except for certain browsers. THey feel they have narrowed it down to IE in Win7 and Vista. It works otherwise.
Any idea why this might be happening? The customer indicates they aren't doing anything to refresh the page and it seems to only happen with IE.
Thanks in advance, Dan
|
|
|
|
|
you put TImer function in that timer funcation call Every 10 mins to IFrame control using Javascripts
|
|
|
|
|
How to use inner join in stored procedure..?
And use that data to show up in dropdownlist on my page..?
|
|
|
|
|
|
INNER JOIN Table2 t2 ON t1.Column = t2.Column
and then take result from SP to a Dataset or Datatable and use .DataSource property of DropdownList
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
Thanxxzz ..!!
This one helped me ..
|
|
|
|
|
How to hide url path in classic asp..??
|
|
|
|
|
|
I have a page with a few validation controls and a ValidationSummary control. Most of the validation controls are RequiredFieldValidator controls and the summary control displays these messages just fine.
I do have a RegularExpressionValidator that checks for the format of an email address. If the address isn't entered correctly my error message from this control isn't being displayed by my summary control.
I know the problem isn't with my regular expression as I can display the error message by the regex control if I change the Display setting.
ValidationSummary doesn't just work with RequiredFieldValidator does it? That would be less than helpful.
My code :
<asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="Test" HeaderText="You must enter a value in the following fields:"
DisplayMode="BulletList" EnableClientScript="False" runat="server" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationGroup="Test" ControlToValidate="txtReqDuration"
ErrorMessage="Enter a valid number" Display="None" ValidationExpression="^([\d]{0,2})$"></asp:RegularExpressionValidator>
Thanks.
|
|
|
|
|
Hi,
Set the DisplayMode="Dynamic" and remove EnableClientScript attribute from your ValidationSummary .
|
|
|
|
|
I want to create a Word document with dynamic graphs (OpenFlashChart which is a third party control) on the asp.net page.
Is it possible to do it in asp.net.ON bank sites, i have seen different graphs get generated for each quarter in a word document.
|
|
|
|
|
how to fire two select query together on empid basis with inner join..???
|
|
|
|
|
Use SQL Transactions or Stored Procedure to execute multiple queries in a batch.
|
|
|
|
|
Clearify your question again.. give us the scenario.
- Happy Coding -
Vishal Vashishta
|
|
|
|
|