modeless windows form on the IIS server.
I tried creating a windows form in the web application project and adding a
reference to system.windows.forms. The app will compile with no problems but
for some reason the form won't launch when the method it's in is called.
The next step will be to try and put the form in a class lib on the server
unless someone knows what the problem might be or has a better idea.Chuck Bowling wrote:
> I have an ASP.NET page with code behind that i'm trying to get to launch a
> modeless windows form on the IIS server.
> I tried creating a windows form in the web application project and adding a
> reference to system.windows.forms. The app will compile with no problems but
> for some reason the form won't launch when the method it's in is called.
> The next step will be to try and put the form in a class lib on the server
> unless someone knows what the problem might be or has a better idea.
Are you trying to get the page to launch a windows app on the SERVER?
that wouldnt help the user/client much, especially a Modal one...
But to answer your question, no. You could call an app sure, but you
need to specify the context/user and that may mean it wont "show" on the
console at the server...
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:eyAcj5XgFHA.1432@.TK2MSFTNGP10.phx.gbl...
> Chuck Bowling wrote:
>> I have an ASP.NET page with code behind that i'm trying to get to launch
>> a modeless windows form on the IIS server.
>>
>> I tried creating a windows form in the web application project and adding
>> a reference to system.windows.forms. The app will compile with no
>> problems but for some reason the form won't launch when the method it's
>> in is called.
>>
>> The next step will be to try and put the form in a class lib on the
>> server unless someone knows what the problem might be or has a better
>> idea.
> Are you trying to get the page to launch a windows app on the SERVER? that
> wouldnt help the user/client much, especially a Modal one...
> But to answer your question, no. You could call an app sure, but you need
> to specify the context/user and that may mean it wont "show" on the
> console at the server...
Yes. I want a popup window on the server that notifies the webmaster when a
specific page has been accessed. It's not intended for the client.
I don't have a problem launching a MessageBox on the server. But I am having
a problem figuring out how to do the same thing with a nonmodal form.
Chuck Bowling wrote:
> Yes. I want a popup window on the server that notifies the webmaster when a
> specific page has been accessed. It's not intended for the client.
> I don't have a problem launching a MessageBox on the server. But I am having
> a problem figuring out how to do the same thing with a nonmodal form.
Path out the EXE, make sure permissions are set on it, and the folder
for the user that IIS is running under or the context of the call.
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:%23ViCn1YgFHA.1412@.TK2MSFTNGP09.phx.gbl...
> Chuck Bowling wrote:
>>
>> Yes. I want a popup window on the server that notifies the webmaster when
>> a specific page has been accessed. It's not intended for the client.
>>
>> I don't have a problem launching a MessageBox on the server. But I am
>> having a problem figuring out how to do the same thing with a nonmodal
>> form.
> Path out the EXE, make sure permissions are set on it, and the folder for
> the user that IIS is running under or the context of the call.
Ok... I'm not sure what you're saying here.
Do you mean compile the Form as a separate project and spawn a process for
the executable?
Chuck Bowling wrote:
> "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
> news:%23ViCn1YgFHA.1412@.TK2MSFTNGP09.phx.gbl...
>>Chuck Bowling wrote:
>>
>>>Yes. I want a popup window on the server that notifies the webmaster when
>>>a specific page has been accessed. It's not intended for the client.
>>>
>>>I don't have a problem launching a MessageBox on the server. But I am
>>>having a problem figuring out how to do the same thing with a nonmodal
>>>form.
>>
>>Path out the EXE, make sure permissions are set on it, and the folder for
>>the user that IIS is running under or the context of the call.
>
> Ok... I'm not sure what you're saying here.
> Do you mean compile the Form as a separate project and spawn a process for
> the executable?
You mean you have the Windows form IN your ASP.NET app??
Eeek..
Yeah, put it in a seperate, windows form app, and put the EXE in a place
that you can call on the server.
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:%23k6iKIagFHA.1248@.TK2MSFTNGP12.phx.gbl...
> Chuck Bowling wrote:
>> "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
>> news:%23ViCn1YgFHA.1412@.TK2MSFTNGP09.phx.gbl...
>>
>>>Chuck Bowling wrote:
>>>
>>>>Yes. I want a popup window on the server that notifies the webmaster
>>>>when a specific page has been accessed. It's not intended for the
>>>>client.
>>>>
>>>>I don't have a problem launching a MessageBox on the server. But I am
>>>>having a problem figuring out how to do the same thing with a nonmodal
>>>>form.
>>>
>>>Path out the EXE, make sure permissions are set on it, and the folder for
>>>the user that IIS is running under or the context of the call.
>>
>>
>> Ok... I'm not sure what you're saying here.
>>
>> Do you mean compile the Form as a separate project and spawn a process
>> for the executable?
> You mean you have the Windows form IN your ASP.NET app??
> Eeek..
> Yeah, put it in a seperate, windows form app, and put the EXE in a place
> that you can call on the server.
Ok, I'll give it a shot. Just out of curiousity, why the Eeek?
Chuck Bowling wrote:
> "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
> news:%23k6iKIagFHA.1248@.TK2MSFTNGP12.phx.gbl...
>>Chuck Bowling wrote:
>>
>>>"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
>>>news:%23ViCn1YgFHA.1412@.TK2MSFTNGP09.phx.gbl...
>>>
>>>
>>>>Chuck Bowling wrote:
>>>>
>>>>
>>>>>Yes. I want a popup window on the server that notifies the webmaster
>>>>>when a specific page has been accessed. It's not intended for the
>>>>>client.
>>>>>
>>>>>I don't have a problem launching a MessageBox on the server. But I am
>>>>>having a problem figuring out how to do the same thing with a nonmodal
>>>>>form.
>>>>
>>>>Path out the EXE, make sure permissions are set on it, and the folder for
>>>>the user that IIS is running under or the context of the call.
>>>
>>>
>>>Ok... I'm not sure what you're saying here.
>>>
>>>Do you mean compile the Form as a separate project and spawn a process
>>>for the executable?
>>
>>You mean you have the Windows form IN your ASP.NET app??
>>Eeek..
>>Yeah, put it in a seperate, windows form app, and put the EXE in a place
>>that you can call on the server.
>
> Ok, I'll give it a shot. Just out of curiousity, why the Eeek?
They run under very different bases, designed for completely different
interfaces and with different "assumptions" (ie root classes).
It's a lot like trying to have your refrigerator cook your food. Sure,
you could probably do it but its going to be a lot easier to just use it
for what it was intended for :}
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:uM2IbZagFHA.1284@.TK2MSFTNGP14.phx.gbl...
> Chuck Bowling wrote:
>> "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
>> news:%23k6iKIagFHA.1248@.TK2MSFTNGP12.phx.gbl...
>>
>>>Chuck Bowling wrote:
>>>
>>>>"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
>>>>news:%23ViCn1YgFHA.1412@.TK2MSFTNGP09.phx.gbl...
>>>>
>>>>
>>>>>Chuck Bowling wrote:
>>>>>
>>>>>
>>>>>>Yes. I want a popup window on the server that notifies the webmaster
>>>>>>when a specific page has been accessed. It's not intended for the
>>>>>>client.
>>>>>>
>>>>>>I don't have a problem launching a MessageBox on the server. But I am
>>>>>>having a problem figuring out how to do the same thing with a nonmodal
>>>>>>form.
>>>>>
>>>>>Path out the EXE, make sure permissions are set on it, and the folder
>>>>>for the user that IIS is running under or the context of the call.
>>>>
>>>>
>>>>Ok... I'm not sure what you're saying here.
>>>>
>>>>Do you mean compile the Form as a separate project and spawn a process
>>>>for the executable?
>>>
>>>You mean you have the Windows form IN your ASP.NET app??
>>>Eeek..
>>>Yeah, put it in a seperate, windows form app, and put the EXE in a place
>>>that you can call on the server.
>>
>>
>> Ok, I'll give it a shot. Just out of curiousity, why the Eeek?
>>
>>
> They run under very different bases, designed for completely different
> interfaces and with different "assumptions" (ie root classes).
> It's a lot like trying to have your refrigerator cook your food. Sure, you
> could probably do it but its going to be a lot easier to just use it for
> what it was intended for :}
Hummm... Ok.
What I don't understand is why a MessageBox works without any problem and a
Form control won't. They are both derived from System.Windows.Forms...
> Hummm... Ok.
> What I don't understand is why a MessageBox works without any problem and a
> Form control won't. They are both derived from System.Windows.Forms...
In your case I cant say for certain but MessageBox is calling a
preconfigured base form, not a custom one... that may make a difference.
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
0 comments:
Post a Comment