Click here to Skip to main content
15,902,835 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionnon-rectangular forms Pin
dlinks2-Feb-06 0:16
dlinks2-Feb-06 0:16 
AnswerRe: non-rectangular forms Pin
Dave Kreskowiak2-Feb-06 5:34
mveDave Kreskowiak2-Feb-06 5:34 
QuestionDelete user by using DirectoryServices Pin
osamahmirza1-Feb-06 20:03
osamahmirza1-Feb-06 20:03 
Question.net Framework Pin
Net-Programer-and-developer1-Feb-06 8:32
Net-Programer-and-developer1-Feb-06 8:32 
AnswerRe: .net Framework Pin
Dave Kreskowiak1-Feb-06 9:08
mveDave Kreskowiak1-Feb-06 9:08 
GeneralRe: .net Framework Pin
gurvinder singh alune8-Jan-09 19:18
gurvinder singh alune8-Jan-09 19:18 
GeneralRe: .net Framework Pin
Dave Kreskowiak9-Jan-09 1:50
mveDave Kreskowiak9-Jan-09 1:50 
Questionunderlying connection was closed:unable to connect to remote server exception message Pin
beachbum7141-Feb-06 6:49
beachbum7141-Feb-06 6:49 
I have been receiving this exception for over a week with a .NET remoting app and can't find a solution anywhere that works. Below I'll paste my config files and the client code calling the remote method. I'd really appreciate some assistance. The Server code and files are on a remote server within our facility and have been told more than once there is no firewall between my workstation and it. So firewalls are out of the question as the source of the problem. I assume its somewhere in my config files but I've tried everything I've seen on the net.

I receive the Net.WebException: underlying connection was closed:unable to connect to remote server exception message.

Any thoughts?


------------------------------------------------------------------------------

client config:



<configuration>
<system.runtime.remoting>
<application>

<client url="http://agiledev2.sanmina- sci.com/DataExtractService">
<wellknown type="AgileExtractNegotiator.ITNSManager, AgileExtractNegotiator"
="" url="http://agiledev2.sanmina-sci.com:1234/DataExtractService/TNSManager.soap">
<wellknown type="AgileExtractNegotiator.IDataExtractManager, AgileExtractNegotiator"
="" url="http://agiledev2.sanmina-sci.com:1234/DataExtractService/DataExtractManager.soap">

<channels>
<channel ref="http">


// <customerrors mode="off">



------------------------------------------------------------------------------

server config:


<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http" port="1234">

<lifetime leasetimeout="20M"
="" renewoncalltime="20M" leasemanagerpolltime="3M">
<service>
<wellknown mode="SingleCall"
="" type="DataExtractServer.DataExtractManager, DataExtractServer" objecturi="DataExtractManager.soap">
<wellknown mode="SingleCall"
="" type="DataExtractServer.TNSManager, DataExtractServer" objecturi="TNSManager.soap">


<customerrors mode="Off">



------------------------------------------------------------------------------

client code:

Dim app As Windows.Forms.Application

Dim rc As RemotingConfiguration

Dim strConfigFile As String = app.StartupPath.Trim & "\DataExtractLogin.exe.config"

rc.Configure(strConfigFile.Trim)

rc.CustomErrorsEnabled(False)

Dim rh As RemotingHelper = New RemotingHelper

Dim tnsm As ITNSManager = CType(rh.GetObject(GetType(ITNSManager)), ITNSManager)

Dim props As IDictionary = ChannelServices.GetChannelSinkProperties(tnsm)

props("username") = "*********"

props("password") = "********"

Dim TNS As TNSGeneral = New TNSGeneral

Try

TNS = tnsm.GetTNSInfo

Catch rEx As RemotingException

MessageBox.Show("Remoting Exception: " & rEx.Message.Trim, _

"Remoting Service Error", MessageBoxButtons.OK, MessageBoxIcon.Stop, _

MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification)

Exit Sub

Catch argEx As ArgumentException

MessageBox.Show("Exception: " & argEx.Message.Trim & argEx.InnerException.Message)

Exit Sub

Catch aEx As ApplicationException

MessageBox.Show("Exception: " & aEx.Message.Trim & aEx.InnerException.Message)

Exit Sub

Catch nrEx As NullReferenceException

MessageBox.Show("Exception: " & nrEx.Message.Trim & nrEx.InnerException.Message)

Exit Sub

Catch nwEx As Net.WebException

MessageBox.Show("Net Web Exception: " & nwEx.Message.Trim)

Exit Sub

Catch Ex As Exception

MessageBox.Show("Exception: " & Ex.Message.Trim & Ex.InnerException.Message)

Exit Sub

End Try


-- modified at 12:49 Wednesday 1st February, 2006
Question.net app fails to launch until once executed by machine admin Pin
patgrape1-Feb-06 6:22
patgrape1-Feb-06 6:22 
AnswerRe: .net app fails to launch until once executed by machine admin Pin
malharone1-Feb-06 11:34
malharone1-Feb-06 11:34 
GeneralRe: .net app fails to launch until once executed by machine admin Pin
patgrape1-Feb-06 12:10
patgrape1-Feb-06 12:10 
GeneralRe: .net app fails to launch until once executed by machine admin Pin
malharone1-Feb-06 12:48
malharone1-Feb-06 12:48 
GeneralRe: .net app fails to launch until once executed by machine admin Pin
patgrape1-Feb-06 15:53
patgrape1-Feb-06 15:53 
GeneralRe: .net app fails to launch until once executed by machine admin Pin
patgrape2-Feb-06 4:53
patgrape2-Feb-06 4:53 
GeneralRe: .net app fails to launch until once executed by machine admin Pin
Dave Kreskowiak2-Feb-06 5:32
mveDave Kreskowiak2-Feb-06 5:32 
GeneralRe: .net app fails to launch until once executed by machine admin Pin
KreativeKai2-Feb-06 9:22
professionalKreativeKai2-Feb-06 9:22 
QuestionProxy for email Pin
Brisunifreddyp1-Feb-06 4:27
Brisunifreddyp1-Feb-06 4:27 
Questionassigning null value Pin
raj kumar reddy31-Jan-06 23:27
raj kumar reddy31-Jan-06 23:27 
AnswerRe: assigning null value Pin
Guffa1-Feb-06 0:43
Guffa1-Feb-06 0:43 
GeneralRe: assigning null value Pin
raj kumar reddy1-Feb-06 1:27
raj kumar reddy1-Feb-06 1:27 
GeneralRe: assigning null value Pin
Darell F. Butch Jr.1-Feb-06 1:35
Darell F. Butch Jr.1-Feb-06 1:35 
GeneralRe: assigning null value Pin
raj kumar reddy1-Feb-06 1:40
raj kumar reddy1-Feb-06 1:40 
GeneralRe: assigning null value Pin
Darell F. Butch Jr.1-Feb-06 2:14
Darell F. Butch Jr.1-Feb-06 2:14 
GeneralRe: assigning null value Pin
raj kumar reddy1-Feb-06 17:12
raj kumar reddy1-Feb-06 17:12 
GeneralRe: assigning null value Pin
Darell F. Butch Jr.2-Feb-06 0:59
Darell F. Butch Jr.2-Feb-06 0:59 

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.