Re: running winform exe from the web

From: Shachar (shacharm@pos.co.il)
Date: 11/07/02


From: "Shachar" <shacharm@pos.co.il>
Date: Thu, 7 Nov 2002 04:01:23 +0200


Hi,

Try clean the gac : gacutil /cdl
Its should work

good luck .

Let me ask u a question:
Have u tyr to padd parameters to the program, I try but I couldn't :
http://magnus/deployment/AppStart.exe?test
http://magnus/deployment/AppStart.exe test

Thanks ,

Shachar

"Magnus Koch" <magnus.koch@ef.com> wrote in message
news:uLBFRhHhCHA.1688@tkmsftngp09...
> Hi,
> I have the same problem, but adding the http handlers section does not
help.
>
> I have a web server with a folder http://magnus/deployment/
>
> The folder is set up to be trusted, and I have a winforms application
> AppStart.exe and an AppStart.exe.config in the folder. I can type in
> http://magnus/deployment/AppStart.exe to run the application. I can also
> open the config file directly in the browser, by typing the url
> http://magnus/deployment/AppStart.exe.config, which displays the beautiful
> xml.
>
> At this point, I expected that typing in the .exe link in the browser
would
> open the application and load the config file, but it doesn't!
>
> I haven't done anything in particular with the web server or the folder,
> it's just a regular virtual directory running as an isolated application
w/
> no execute permissions.
>
> Ideas? Is there something I missed (Website setup, winforms assembly
> configuration, anything)?
>
> Thanks,
> Magnus
>
> "Mike Shaw [MS]" <mikeshaw@online.microsoft.com> wrote in message
> news:OkA5#3gfCHA.2552@tkmsftngp12...
> > Hi Shachar
> >
> > The answer to your first question is that ASP.NET is configured to
prevent
> > the download of all files with the .config file extension. This is
> > controlled by the machine.config file on the web server in the line:
> > <add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler" />
> >
> > For a particular web application you can override this setting in the
> > web.config file by adding the following lines within the <system.web>
> > section:
> >
> > <httpHandlers>
> >
> > <add verb="*" path="myApp.exe.config"
type="System.Web.StaticFileHandler"
> />
> >
> > </httpHandlers>
> >
> > Where you replace 'myApp' with the name of your application, or '*' if
you
> > want all .exe.config files available.
> >
> > Please ensure that the config file does not contain any information that
> > might lead to some form of exploitation of your system, as the file can
be
> > freely downloaded and examined.
> >
> > I've not looked at your second question, but the answer to your third
> > question is to progromatically manipulate the XML of the machine.config
> > file, but I do not recommend this and it might be that there is an
> > alternative method of achieving what you want in some other way.
> >
> >
> > --
> > Mike Shaw
> > .NET Developer Group, UK
> >
> >
> > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > You assume all risk for your use. © 2002 Microsoft Corporation. All
rights
> > reserved.
> >
> > "Shachar Matyas" <shacharm> wrote in message
> > news:eVkTS1YfCHA.608@tkmsftngp10...
> > > Hi All,
> > >
> > > I try to deploy my program via the web
> http://netserver/deployment/app.exe
> > > ,what is the profesional name for this deployment I cant find any
> > > documentation for this ?
> > >
> > > I have 3 problems with this un document option:
> > >
> > > 1) The application don't read the config file app.exe
> > > When I run the application not using http:// from the network :
> > > \\netserver\deployment\app.exe
> > > It work fine and read the app.exe.config file
> > > but when I use the web start http://netserver/deployment/app.exe
it
> > > don't .
> > >
> > > 2) My application create an object dynamicly using :
> > >
> > > AppDomain.CurrentDomain.CreateInstanceAndUnwrap("namespace",
> > > "MyObject");
> > >
> > > When I run the application not using http:// from the network :
> > > \\netserver\deployment\app.exe
> > > it work fine and create the object
> > > but when I use the web start http://netserver/deployment/app.exe
it
> > dont
> > > .
> > > I even don't see the MyObject in the GAC directory.
> > > How should I force hime to down load the MyObject .
> > > MyObject is not in the referance but it is in the app directory.
> > >
> > > 3) How can I config the .Net Configuration Run Security out side an
msi
> /
> > > setup regfile
> > > or any thing Automaticly, if the configuration is done under
> > > Administrator authorization .
> > > for all the users in the computer .
> > >
> > > Thanks in advance.
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: running winform exe from the web
    ... The folder is set up to be trusted, and I have a winforms application ... open the config file directly in the browser, ... I haven't done anything in particular with the web server or the folder, ... >> I even don't see the MyObject in the GAC directory. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Find/Replace function
    ... I completely agree that a config file is the way to go. ... but the reason I was asking for the function to ... I drag them from one sourcesafe folder (called ... > file ends up in my project folder when I check it out. ...
    (microsoft.public.vb.general.discussion)
  • Re: Howto: WebService in not Bin folder?
    ... > Hi Alexander, ... > And i've develop my own web server for hosting own WebServices (i've seen ... > cases of customisations(hacking, unlicense usage, etc.). ... > But .config file is also TEXT file and it can be customised by somebody ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Apache Webserver ?
    ... I am running Red hat version ... > get a simple web server up and running to host my domain. ... The popular belief is that the apache configuration file is ... Apache said where the config file is ...
    (alt.os.linux)
  • Re: .NET Framework 1.1 installed, but VS still sees 1.0
    ... to the project's \bin folder (in fact, to the folder where you will start ... | I recently downloaded and installed the .NET Framework 1.1. ... | Microsoft Development Environment menu item in the Help menu of Microsoft ... I would like to point out that the config file trick does not work. ...
    (microsoft.public.dotnet.languages.vb)