Simple App As A Smart Client

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Simple App As A Smart Client

    Hello,

    "cksj" <cksanjose@hotmail.com> schrieb:
    > I'm working on first app in Smart Client programming.
    Post your application in the
    microsoft.public.dotnet.framework.compactframework ng.

    Regards,
    Herfried K. Wagner
    --
    MVP · VB Classic, VB .NET
    [url]http://www.mvps.org/dotnet[/url]


    Herfried K. Wagner Guest

  2. Similar Questions and Discussions

    1. Smart Client Downloading -Sattelite Assembiles
      Hi I am working with Smart Client.I am having a windows application which needs to works with Multiple Languages so i am using Sattilitie...
    2. smart client for windows ce?
      Hi Can windows ce support smart client? Does using smart client requires IIS? Thanks
    3. Smart Client and IIS 6.0
      I am trying to get a smart client app to work properly under IIS. I used the same techniques as I had under IIS 5 but it is not working. The problem...
    4. Smart Client form Permissons Problem
      Out of 7 users, 3 don't work. One of them did things in the right order so now I'm not so sure what is the common denominator. Here is the error...
    5. How to localize a smart-client?
      Hi! I've made a windows application that I'm going to distribute as a smart-client. When I start the application on a local computer the correct...
  3. #2

    Default Re: Simple App As A Smart Client

    If sLocation is a string, shouldn't the path be in quotes?

    Ken

    "cksj" <cksanjose@hotmail.com> wrote in message
    news:%230CsyH9TDHA.1912@tk2msftngp13.phx.gbl...
    I'm working on first app in Smart Client programming.
    I have a very simple application that has 3 textboxes and 1 command button.
    The command button will add the numbers in the first 2 textboxes and puts
    the sum in the 3rd textbox. The app is done in VB.Net and is compiled as a
    dll. I have another exe app that will load the dll from the http server.
    When I ran the exe on my machine where the dll is located I get an error.
    The error I get is file not found or dependency file not found.

    Here's my code:
    Try

    'Download the assembly from a web server over HTTP

    Dim sLocation As String

    sLocation = [url]HTTP://MIS0014/AdditionServer/AdditionServer.dll[/url]

    Dim formAsm As [Assembly] = [Assembly].LoadFrom(sLocation)

    'Get the Form from the assembly

    Dim formtype As Type = formAsm.GetType("AdditionServer.AddNumbers")

    'Create an instance of the Form

    Dim FormObj As Object

    FormObj = Activator.CreateInstance(formtype)

    'Cast it to a Form object to enable early binding and show the form

    Dim Form1 As Form = CType(FormObj, Form)

    Form1.Show()

    Catch exc As Exception

    MsgBox(exc.ToString)

    End Try







    Ken Cox [Microsoft MVP] Guest

  4. #3

    Default Re: Simple App As A Smart Client

    "Herfried K. Wagner" <hirf.nosp@m.activevb.de> wrote in message news:<u9a3Bu9TDHA.3640@tk2msftngp13.phx.gbl>...
    > Hello,
    >
    > "cksj" <cksanjose@hotmail.com> schrieb:
    > > I'm working on first app in Smart Client programming.
    >
    > Post your application in the
    > microsoft.public.dotnet.framework.compactframework ng.
    >
    > Regards,
    > Herfried K. Wagner
    The app that I'm working on is a "smart client" application. Other
    people call it "no touch deployment". What you're thinking is that my
    app is for "smart devices".
    cksj Guest

  5. #4

    Default Re: Simple App As A Smart Client

    On my original code, the location is between quotes. When I pasted the code,
    some how the quotes were gone.
    When I run my program, I also get a DCOM error. The error states that the
    IWAM account can't logon to the computer. I looked at my Local Policy and
    under "logon locally" rights, the IWAM account is in there. Did I miss any
    other security?

    "Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
    news:OpjETc%23TDHA.1724@TK2MSFTNGP10.phx.gbl...
    > If sLocation is a string, shouldn't the path be in quotes?
    >
    > Ken
    >
    > "cksj" <cksanjose@hotmail.com> wrote in message
    > news:%230CsyH9TDHA.1912@tk2msftngp13.phx.gbl...
    > I'm working on first app in Smart Client programming.
    > I have a very simple application that has 3 textboxes and 1 command
    button.
    > The command button will add the numbers in the first 2 textboxes and puts
    > the sum in the 3rd textbox. The app is done in VB.Net and is compiled as a
    > dll. I have another exe app that will load the dll from the http server.
    > When I ran the exe on my machine where the dll is located I get an error.
    > The error I get is file not found or dependency file not found.
    >
    > Here's my code:
    > Try
    >
    > 'Download the assembly from a web server over HTTP
    >
    > Dim sLocation As String
    >
    > sLocation = [url]HTTP://MIS0014/AdditionServer/AdditionServer.dll[/url]
    >
    > Dim formAsm As [Assembly] = [Assembly].LoadFrom(sLocation)
    >
    > 'Get the Form from the assembly
    >
    > Dim formtype As Type = formAsm.GetType("AdditionServer.AddNumbers")
    >
    > 'Create an instance of the Form
    >
    > Dim FormObj As Object
    >
    > FormObj = Activator.CreateInstance(formtype)
    >
    > 'Cast it to a Form object to enable early binding and show the form
    >
    > Dim Form1 As Form = CType(FormObj, Form)
    >
    > Form1.Show()
    >
    > Catch exc As Exception
    >
    > MsgBox(exc.ToString)
    >
    > End Try
    >
    >
    >
    >
    >
    >
    >

    cksj Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139