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

.NET (Core and Framework)

 
GeneralMessage Removed Pin
3-Jun-11 2:06
meetnneel3-Jun-11 2:06 
AnswerRe: Bind Sub Grid Pin
Eddy Vluggen3-Jun-11 2:21
professionalEddy Vluggen3-Jun-11 2:21 
QuestionNot able to save the file of HttpPostedfile from test method Pin
vnr3-Jun-11 1:34
vnr3-Jun-11 1:34 
AnswerRe: Not able to save the file of HttpPostedfile from test method Pin
MicroVirus3-Jun-11 1:48
MicroVirus3-Jun-11 1:48 
Question.NET development using Apple Computer Pin
RobCroll28-May-11 14:04
RobCroll28-May-11 14:04 
AnswerRe: .NET development using Apple Computer Pin
Dave Kreskowiak28-May-11 18:21
mveDave Kreskowiak28-May-11 18:21 
AnswerRe: .NET development using Apple Computer Pin
Not Active29-May-11 2:57
mentorNot Active29-May-11 2:57 
Question.NET app can't connect to remote NamedPipe when executed by SQL Pin
TrustTheMath27-May-11 8:22
TrustTheMath27-May-11 8:22 
This appears to be a communications issue between .NET and SQL, so I've chosen to put it in the .NET category first.

Problem: A VB.NET app executed from a SQL stored procedure is unable to open a NamedPipe connection on a workstation. When the same app runs under CMD.EXE, the connection is successful. Unfortunately, the app must be initiated from SQL.

Environment: Server is Win Svr 2003 Enterprise, with SQL Server 2005 and .NET 2.0.50727.3620.
Workstation is Win 7 Pro

On the workstation, a job creates a NamedPipeServer (listener), then separately reads from a multicast broadcast. On the server, a stored procedure periodically runs, kicking off a VB.NET app which connects to the NamedPipe. This connection triggers the workstation job to update the SQL database.

This works fine when the workstation job (a VB.NET app) runs in a user context. However, it needs to run as a service on the workstation so that it can be running continuously, not be dependent on a particular user, and automatically restart if the workstation were to reboot.

When I coded it as a service, the workstation code does not see the NamedPipe connection request (triggered by a VB.NET app executed from a SQL stored procedure). It WILL work, however, if I run the "trigger" app on the same server under CMD.EXE.

Things I've tried:
-- Validated all user ids throughout the process, making sure the stored procedure is running under the same id as the workstation job.
-- Affirmed that SQL can actually run the trigger job.
-- Affirmed that the server can see the NamedPipe on the workstation. The existing (non-service) method works fine, the server connects to the NamedPipe, the NamedPipe listener collects the multicast data and sends it to the SQL database.

Something is different about kicking off the executable from SQL vs. CMD; my first thoughts were security, but I've made sure the stored procedure is running under the same id as the workstation job.

Has anyone run into something like this before? I'm guessing it's a trivial setting somewhere, but for the life of me I can't find it. Whatever help you can give me is greatly appreciated.
AnswerRe: .NET app can't connect to remote NamedPipe when executed by SQL Pin
jschell27-May-11 8:43
jschell27-May-11 8:43 
GeneralRe: .NET app can't connect to remote NamedPipe when executed by SQL Pin
TrustTheMath27-May-11 9:56
TrustTheMath27-May-11 9:56 
GeneralRe: .NET app can't connect to remote NamedPipe when executed by SQL Pin
jschell27-May-11 14:04
jschell27-May-11 14:04 
Questionchange datagridrow color after add it Pin
Defender-NF25-May-11 5:46
Defender-NF25-May-11 5:46 
AnswerRe: change datagridrow color after add it Pin
Not Active25-May-11 6:24
mentorNot Active25-May-11 6:24 
AnswerRe: change datagridrow color after add it Pin
Pete O'Hanlon25-May-11 7:02
mvePete O'Hanlon25-May-11 7:02 
GeneralRe: change datagridrow color after add it Pin
Defender-NF25-May-11 8:26
Defender-NF25-May-11 8:26 
GeneralRe: change datagridrow color after add it Pin
Pete O'Hanlon25-May-11 8:44
mvePete O'Hanlon25-May-11 8:44 
GeneralRe: change datagridrow color after add it Pin
Defender-NF25-May-11 8:48
Defender-NF25-May-11 8:48 
GeneralRe: change datagridrow color after add it Pin
Pete O'Hanlon25-May-11 9:25
mvePete O'Hanlon25-May-11 9:25 
GeneralRe: change datagridrow color after add it Pin
Defender-NF25-May-11 11:17
Defender-NF25-May-11 11:17 
GeneralRe: change datagridrow color after add it Pin
Defender-NF25-May-11 22:47
Defender-NF25-May-11 22:47 
Answerchange datagridrow color after add it Pin
Nilesh G Umaretiya26-May-11 23:35
professionalNilesh G Umaretiya26-May-11 23:35 
GeneralRe: change datagridrow color after add it Pin
Pete O'Hanlon27-May-11 9:17
mvePete O'Hanlon27-May-11 9:17 
AnswerRe: change datagridrow color after add it Pin
robertalis23-Jul-11 1:27
robertalis23-Jul-11 1:27 
QuestionApplication doesn't do anything when run Pin
Winkles22-May-11 15:15
Winkles22-May-11 15:15 
AnswerRe: Application doesn't do anything when run Pin
Luc Pattyn22-May-11 15:35
sitebuilderLuc Pattyn22-May-11 15:35 

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.