Click here to Skip to main content
15,896,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to let Google do this for me? Pin
Eddy Vluggen3-Aug-12 2:51
professionalEddy Vluggen3-Aug-12 2:51 
AnswerRe: how to let Google do this for me? Pin
jkirkerx3-Aug-12 9:54
professionaljkirkerx3-Aug-12 9:54 
QuestionI have done login page in asp.net mvc pattern.But,im getting one run time error Pin
rayuduvkr3-Aug-12 0:19
rayuduvkr3-Aug-12 0:19 
AnswerRe: I have done login page in asp.net mvc pattern.But,im getting one run time error Pin
Pete O'Hanlon3-Aug-12 0:43
mvePete O'Hanlon3-Aug-12 0:43 
AnswerRe: I have done login page in asp.net mvc pattern.But,im getting one run time error Pin
Tarun Mangukiya4-Aug-12 21:38
Tarun Mangukiya4-Aug-12 21:38 
Questionasp.net Pin
Sasikumar.mohan2-Aug-12 19:56
Sasikumar.mohan2-Aug-12 19:56 
AnswerRe: asp.net Pin
Sandeep Mewara2-Aug-12 21:23
mveSandeep Mewara2-Aug-12 21:23 
QuestionClose the ChannelFactory connection Pin
indian1432-Aug-12 6:01
indian1432-Aug-12 6:01 
Hi All,

I have used channel factory class to get wcf service proxy object, after executing the methods in the service, its taking too long to give the result and aborting with web service has closed the connection. Is there any way to close the ChannelFactory connection once after its done executing the methods.

Its very urgent please help me.

Below is my code for getting the channel.

Public Function GetChannelForService(ByVal source As String, ByRef loger As Logger) As IStayAtWorkService
    Dim channel As IStayAtWorkService = Nothing
    Dim objStayAtWorkService As IStayAtWorkService = Nothing
    Dim factory As ChannelFactory(Of IStayAtWorkService)
    loger.log(1, "Begin GetClaimRequestContactFromSession, StayAtWorkServiceAddress" + source)
    Try
        Dim result = String.Empty
        'Get the channel from WCF
        Dim address As EndpointAddress = New EndpointAddress(source)
        Dim binding As WSHttpBinding = New WSHttpBinding()
        binding.MaxReceivedMessageSize = 2147483647
        binding.ReaderQuotas.MaxArrayLength = 2147483647
        binding.MaxBufferPoolSize = 2147483647
        binding.SendTimeout = New TimeSpan(1, 1, 1)
        binding.ReceiveTimeout = New TimeSpan(1, 1, 1)
        'binding.CloseTimeout = New TimeSpan(1, 1, 1)
        'binding.OpenTimeout = New TimeSpan(1, 1, 1)
        If factory Is Nothing Then
            factory = New ChannelFactory(Of IStayAtWorkService)(binding, address)
        ElseIf factory.State = CommunicationState.Closed Then
            factory = New ChannelFactory(Of IStayAtWorkService)(binding, address)
        End If
        channel = factory.CreateChannel()
        'Dim tempObj As IStayAtWorkService = channel
        'objStayAtWorkService = DeepClone(tempObj)
        'If (Not factory.State = CommunicationState.Closed) Then
        '    factory.Close()
        'ElseIf factory.State = CommunicationState.Faulted Then
        '    factory.Abort()
        'End If
    Catch ex As Exception
        loger.log(1, "Catch GetChannelForService, Excelption : " + ex.ToString())
    Finally
    End Try
    Return channel
    'Return objStayAtWorkService
End Function

Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

AnswerRe: Close the ChannelFactory connection Pin
jkirkerx3-Aug-12 11:09
professionaljkirkerx3-Aug-12 11:09 
GeneralRe: Close the ChannelFactory connection Pin
jkirkerx3-Aug-12 12:23
professionaljkirkerx3-Aug-12 12:23 
GeneralRe: Close the ChannelFactory connection Pin
indian1434-Aug-12 16:59
indian1434-Aug-12 16:59 
GeneralRe: Close the ChannelFactory connection Pin
jkirkerx5-Aug-12 11:00
professionaljkirkerx5-Aug-12 11:00 
Questionperformance tune a 2010 web app Pin
dcof2-Aug-12 4:25
dcof2-Aug-12 4:25 
AnswerRe: performance tune a 2010 web app Pin
jkirkerx3-Aug-12 10:52
professionaljkirkerx3-Aug-12 10:52 
GeneralCreating Composite Controls ASP.NET 4.0 Pin
RookieCoder_NG1-Aug-12 19:12
RookieCoder_NG1-Aug-12 19:12 
GeneralRe: Creating Composite Controls ASP.NET 4.0 Pin
David Mujica2-Aug-12 8:05
David Mujica2-Aug-12 8:05 
GeneralRe: Creating Composite Controls ASP.NET 4.0 Pin
RookieCoder_NG2-Aug-12 18:08
RookieCoder_NG2-Aug-12 18:08 
GeneralRe: Creating Composite Controls ASP.NET 4.0 Pin
Ahmed Abdulrahman4-Aug-12 4:44
Ahmed Abdulrahman4-Aug-12 4:44 
GeneralWebmethods in ASP.Net page are taking too long Pin
indian1431-Aug-12 10:13
indian1431-Aug-12 10:13 
GeneralRe: Webmethods in ASP.Net page are taking too long Pin
jkirkerx1-Aug-12 11:25
professionaljkirkerx1-Aug-12 11:25 
GeneralI am getting lot of doubts on this issue Pin
indian1431-Aug-12 13:01
indian1431-Aug-12 13:01 
GeneralRe: I am getting lot of doubts on this issue Pin
jkirkerx1-Aug-12 16:33
professionaljkirkerx1-Aug-12 16:33 
GeneralRe: I am getting lot of doubts on this issue Pin
indian1431-Aug-12 18:19
indian1431-Aug-12 18:19 
GeneralRe: Webmethods in ASP.Net page are taking too long Pin
indian1431-Aug-12 13:16
indian1431-Aug-12 13:16 
QuestionError while sending mail--The remote certificate is invalid according to the validation procedure Pin
arunkumaratp1-Aug-12 5:10
arunkumaratp1-Aug-12 5:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.