|
List Info
Thread: Problem opening form in windows service
|
|
| Problem opening form in windows service |
  United States |
2007-10-11 00:37:48 |
Hello friends,
i am creating an application using .net 2.0 and c#..My
requirement is
to open a form which will take inputs from user to update
one table
through web service..But my problem is that this should be
done using
windows service..I have tried to find out the solution but
failed to
open the form from windows service..(though i have
alternative to open
a console application at startup and call webservice to do
the
task.But i want to use windows service )
So is it possible to open a form from windows service..If
possible plz
write some steps ..Its urgent..
Thanks in advance
Priyabrata
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopment googlegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribe googlegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Problem opening form in windows
service |

|
2007-10-11 04:35:32 |
|
Compile the WinForm as a separate app. Use Process.Start() (or an overload) in the service to call the form executable.
--Andrew Badera
On 10/11/07,
pintu < priyabratabehera gmail.com">priyabratabehera gmail.com> wrote:
Hello friends, i am creating an application using .net 2.0 and c#..My requirement is to open a form which will take inputs from user to update one table through web service..But my problem is that this should be done using
windows service..I have tried to find out the solution but failed to open the form from windows service..(though i have alternative to open a console application at startup and call webservice to do the task.But
i want to use windows service ) So is it possible to open a form from windows service..If possible plz write some steps ..Its urgent..
Thanks in advance
Priyabrata
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group.
To post to this group, send email to DotNetDevelopment googlegroups.com
To unsubscribe from this group, send email to DotNetDevelopment-unsubscribe googlegroups.com
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx -~----------~----~----~----~------~----~------~--~---
|
| Re: Problem opening form in windows
service |
  United States |
2007-10-11 23:11:05 |
Can you explain more about the structure of your
application. I am
having trouble understanding why you need a Windows service
at all.
How does the Web service fit in ?
On Oct 11, 10:37 am, pintu <priyabratabeh... gmail.com> wrote:
> Hello friends,
> i am creating an application using .net 2.0 and c#..My
requirement is
> to open a form which will take inputs from user to
update one table
> through web service..But my problem is that this should
be done using
> windows service..I have tried to find out the solution
but failed to
> open the form from windows service..(though i have
alternative to open
> a console application at startup and call webservice to
do the
> task.But i want to use windows service )
> So is it possible to open a form from windows
service..If possible plz
> write some steps ..Its urgent..
>
> Thanks in advance
>
> Priyabrata
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopment googlegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribe googlegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Problem opening form in windows
service |

|
2007-10-12 07:51:29 |
|
"Hi..Cerebus Actually the logic was to call the webservice to update something when the window starts and i was told to make the service mode automatic so that it will start at the windows startup
.."
Just a thought on that... Develop a windows forms app and place a short cut to the exe in the startup folder.
On 10/12/07, pintu < priyabratabehera gmail.com">priyabratabehera gmail.com> wrote:
Hi Badera.. Thanks for ur reply..but its also not working...I tried one console app and run the exe by
process.start(),but some error is showing " Could not start the TestService service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error.
If the problem persists, contact your system administrator".. So i am unable to do it..If any other option is there plz let me know..
Hi..Cerebus Actually the logic was to call the webservice to update something when
the window starts and i was told to make the service mode automatic so that it will start at the windows startup..Though am able to connect the webservice from windows service but still the problem is to open
window that will take inputs from user..So if u have any solution plz post asap..
Thanks both of u...
On Oct 11, 2:35 pm, "Andrew Badera" < and... badera.us">and... badera.us
> wrote: > Compile the WinForm as a separate app. Use Process.Start() (or an overload) > in the service to call the form executable. > > --Andrew Badera > > On 10/11/07, pintu <
priyabratabeh... gmail.com">priyabratabeh... gmail.com> wrote: > > > > > > > Hello friends, > > i am creating an application using .net 2.0 and c#..My requirement is
> > to open a form which will take inputs from user to update one table > > through web service..But my problem is that this should be done using > > windows service..I have tried to find out the solution but failed to
> > open the form from windows service..(though i have alternative to open > > a console application at startup and call webservice to do the > > task.But i want to use windows service ) > > So is it possible to open a form from windows service..If possible plz
> > write some steps ..Its urgent.. > > > Thanks in advance > > > Priyabrata- Hide quoted text - > > - Show quoted text -
Vote for Ron Paul
www.RonPaul2008.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group.
To post to this group, send email to DotNetDevelopment googlegroups.com
To unsubscribe from this group, send email to DotNetDevelopment-unsubscribe googlegroups.com
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx -~----------~----~----~----~------~----~------~--~---
|
| Re: Problem opening form in windows
service |

|
2007-10-12 06:32:11 |
|
What version of Windows are you attempting to run this on?
Microsoft has been closing this door since Windows 2000. As of Vista, a Windows Service cannot interact with a user desktop. The service will only have access to Session 0, which is only accessible to the service, not to any logged on user.
Your best solution is to utilize a configuration-type program to place the information in either a file or the registry. Then your service can access it when started.
On 10/12/07, pintu < priyabratabehera gmail.com">priyabratabehera gmail.com> wrote:
Hi Badera.. Thanks for ur reply..but its also not working...I tried one console app and run the exe by
process.start(),but some error is showing " Could not start the TestService service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error.
If the problem persists, contact your system administrator".. So i am unable to do it..If any other option is there plz let me know..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group.
To post to this group, send email to DotNetDevelopment googlegroups.com
To unsubscribe from this group, send email to DotNetDevelopment-unsubscribe googlegroups.com
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx -~----------~----~----~----~------~----~------~--~---
|
[1-5]
|
|