locked
Deploying my project to another machine from web RRS feed

  • Question

  • Hi,

    I am trying to publish my project on a web server and be able to install it on other computers from the web.  I don't have any problem installing on my computer, but when i try to install it from another computer, instead of prompting me to install the program, on the computer, a screen with a bunch of xml scripts appears.

    Are there security setting that i need to configure to allow my program to be installed on another machine?  Please help!

    Pete M

    Sunday, March 11, 2007 10:59 PM

Answers

  • The solution to you problem is found in the following thread.

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=437234&SiteID=1

    This is a common problem for deploying to web servers and once you either install .net framework on the web server machine or make the changes manually so that it knows what to do with the MIME types then this should work just fine.

     

    Thursday, March 15, 2007 2:47 AM
  • you could just zip your program

    call it deploy zip

    and then just put a link to it on your web page

    download and unzip

    very easy

    cheers

    Sunday, March 18, 2007 4:20 PM

All replies

  • Pete_M,

    To deploy an application to the Web

    1. From the Project menu, choose Deploy, and then Web.
    The Web Project Wizard appears.

    2. Follow the steps of the Web Project Wizard.

    Note:  It is necessary to know the name of the server to which the application is being deployed. Also the person who deploys the project must have permission to write to the root of the Web server and must be added as an operator for that server.

    Note:  It is necessary to have Visual InterDev installed to create Web projects. Documentation for the Web Project Wizard is not available unless Visual InterDev Help or the MSDN® Library has been installed.


     

    Wednesday, March 14, 2007 9:30 AM
  • Thanks for the reply.

    I am using the express version of VB.net.  I do not see a deploy option on the Project menu.  I think i meant to say publish...I want to allow anyone on the internet to download my program from a website i have created.  Does deploy mean something different?

    Thanks for the help.

    pete m

    Wednesday, March 14, 2007 9:43 PM
  • Deploy was the VB6 term for publishing
    Wednesday, March 14, 2007 10:00 PM
  • Thanx.  Can you tell me why this is happening:

    I published my program to a web server and when i download it to my computer it downloads and installs perfectly, but when i try to do it from another computer, all that happens is a screen with a bunch of xml scripts appears...

    is this a security/signing issue?

    Wednesday, March 14, 2007 11:20 PM
  • Pete_M,

    When you compile the application and publish it in the Publish Wizard, you can click "Browser" button, there are four options in the "Open Web Site" panel: File System, Local IIS, FTP Site and Remote Site. I recommend you to choose the Remote Site option for the application publish. Just input the IP address or the remote host name after the http://.

    I hope this can pulish your application to your web server, and if it fails ,could you provide me the error message and the original piece of XML script code? Thank you.

    Thursday, March 15, 2007 2:41 AM
  • The solution to you problem is found in the following thread.

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=437234&SiteID=1

    This is a common problem for deploying to web servers and once you either install .net framework on the web server machine or make the changes manually so that it knows what to do with the MIME types then this should work just fine.

     

    Thursday, March 15, 2007 2:47 AM
  • spotty,

    Thank you very much for you to provide us such a nice solution! It has been quite a long time to see you again in the VB.NET forum. Nice meeting you and thanks for your effort on supporting this forum!

    Thursday, March 15, 2007 2:56 AM
  • Thanks for your help so far bruno.  I am still struggling though.  I haven't published directly to the webserver.  I publish to a folder on my pc and then ftp the files to the webserver.  I don't get any error messages when i try to install, I just get the following:

      <?xml version="1.0" encoding="utf-8" ?>
    - <asmv1:assembly xsi:schemaLocation ="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion ="1.0" xmlns:dsig=" http://www.w3.org/2000/09/xmldsig#" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1 " xmlns:asmv2="urn:schemas-microsoft-com:asm.v2 " xmlns:xrml=" urn:mpeg:mpeg21:2003:01-REL-R-NS " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
      < assemblyIdentity name="Fantasy1.application" version="1.0.0.12" publicKeyToken="660e65bb812b4498" language="neutral" processorArchitecture ="msil" xmlns ="urn:schemas-microsoft-com:asm.v1" />
      < description asmv2:publisher="Fantasy Sports Design" asmv2:product="Fantasy Simulator" xmlns="urn:schemas-microsoft-com:asm.v1 " />
    - <deployment install=" true" mapFileExtensions="true ">
    - <subscription>
    - <update>
      < beforeApplicationStartup />
      </update >
      </subscription >
      </deployment >
    - <dependency>
    - <dependentAssembly dependencyType ="install" codebase="Fantasy1_1_0_0_12\Fantasy1.exe.manifest " size="7849 ">
      < assemblyIdentity name="Fantasy1.exe" version="1.0.0.12" publicKeyToken="660e65bb812b4498" language=" neutral" processorArchitecture ="msil" type ="win32" />
    - <hash>
    - <dsig:Transforms>
      < dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity " />
      </dsig:Transforms >
      < dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1 " />
      < dsig:DigestValue>IS1lzPOb8A+m5aW5a2je8CO5FtI=</ dsig:DigestValue>
      </hash >
      </dependentAssembly >
      </dependency >
      < publisherIdentity name="CN=PETERM\Peter" issuerKeyHash="a51b6ad89a37655ad609272121c19b04d35102fb" />
    - <Signature Id=" StrongNameSignature" xmlns=" http://www.w3.org/2000/09/xmldsig#">
    - <SignedInfo>
      < CanonicalizationMethod Algorithm=" http://www.w3.org/2001/10/xml-exc-c14n# " />
      < SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1 " />
    - <Reference URI=" ">
    - <Transforms>
      < Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n# " />
      </Transforms >
      < DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1 " />
      < DigestValue>hUyDkgybTBqNpE+YfuP6CtADmq0=</ DigestValue>
      </Reference >
      </SignedInfo >
      < SignatureValue>jVvR2y0sl47d82Jy6qw9kMXyblrX28jmFE4Fjc75x8EPOgbATB6Z1uNHTREcIQxzV8BWcySUblg2rM0u5I4kqF9Ko9kv+0md8f70mWPYZI7HwxpiQJ66r6TN0RusgP8yiNTOFNwlBwMUC2AgFNvK2Ekdl0KpB4XBsUvm8kZFBPc= </SignatureValue>
    - <KeyInfo Id=" StrongNameKeyInfo">
    - < KeyValue>
    - <RSAKeyValue>
      < Modulus>qICvJtq3q+z7RqPR+pCb085BjIr2iZUj8Z7bS7qw/A3wqsqWAvQieXfQfkkpPUEVdFttBP5/ne+1A3NdYJhFinE515txefYd4RW39J0vc1hsJRrloaPcCMOkn939e19LN0mh9s4E3SxY9L/2p6XXKbPev5b1LSvzFxKGbxkEc90= </Modulus>
      < Exponent>AQAB</Exponent >
      </RSAKeyValue >
      </KeyValue >
    - <r:license xmlns:r ="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:as ="http://schemas.microsoft.com/windows/pki/2005/Authenticode ">
    - <r:grant>
    - <as:ManifestInformation Hash=" ad9a03d00afae37e984fa48d1a4c9b0c92834c85" Description ="" Url="">
      < as:assemblyIdentity name="Fantasy1.application" version="1.0.0.12" publicKeyToken="660e65bb812b4498" language="neutral" processorArchitecture ="msil" xmlns ="urn:schemas-microsoft-com:asm.v1" />
      </as:ManifestInformation >
      < as:SignedBy />
    - <as:AuthenticodePublisher>
      < as:X509SubjectName>CN=PETERM\Peter</ as:X509SubjectName>
      </ as:AuthenticodePublisher >
      </r:grant >
    - <r:issuer>
    - <Signature Id=" AuthenticodeSignature" xmlns=" http://www.w3.org/2000/09/xmldsig#">
    - <SignedInfo >
      < CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n# " />
      < SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1 " />
    - <Reference URI=" ">
    - < Transforms>
      < Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n# " />
      </Transforms >
      < DigestMethod Algorithm="http://www.w3.org/2000/09 /xmldsig#sha1 " />
      < DigestValue>H9AQidn/KkfjFKaysCTmSgfLHXA=</ DigestValue>
      </Reference >
      </SignedInfo >
      < SignatureValue>eTEnaKneBTSJBVjMANarwPau0CHaPHlJl5SLoeHH3a/KuGV077dirBJtU+56P/BUMjpHc0qIbWKx+3vpBdzk4SuxSgx3lnU0pPPof/s7WxmZcuW2TM0p1cN38+p6/1xuupTfFvuEDlfp32MFGJXiBeplsVnhOoW57NFgXqxOC5c= </SignatureValue>
    - <KeyInfo>
    - <KeyValue>
    - <RSAKeyValue>
      < Modulus>qICvJtq3q+z7RqPR+pCb085BjIr2iZUj8Z7bS7qw/A3wqsqWAvQieXfQfkkpPUEVdFttBP5/ne+1A3NdYJhFinE515txefYd4RW39J0vc1hsJRrloaPcCMOkn939e19LN0mh9s4E3SxY9L/2p6XXKbPev5b1LSvzFxKGbxkEc90= </Modulus>
      < Exponent>AQAB</Exponent >
      </RSAKeyValue >
      </KeyValue >
    - <X509Data>
      < X509Certificate>MIIBwTCCAS6gAwIBAgIQXG2TfXC7eKlP62KLqI8VlzAJBgUrDgMCHQUAMCMxITAfBgNVBAMeGABQAEUAVABFAFIATQBcAFAAZQB0AGUAcjAeFw0wNzAxMDYyMjUzMjRaFw0wODAxMDcwNDUzMjRaMCMxITAfBgNVBAMeGABQAEUAVABFAFIATQBcAFAAZQB0AGUAcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAqICvJtq3q+z7RqPR+pCb085BjIr2iZUj8Z7bS7qw/A3wqsqWAvQieXfQfkkpPUEVdFttBP5/ne+1A3NdYJhFinE515txefYd4RW39J0vc1hsJRrloaPcCMOkn939e19LN0mh9s4E3SxY9L/2p6XXKbPev5b1LSvzFxKGbxkEc90CAwEAATAJBgUrDgMCHQUAA4GBAHzlHBEdqdyZ6AeHKZKzayOLJI6FrP5VuYe0dYDKxMpn/C8bb+VwU2z0wZYhzp2FexZ5fUuqVlPV4M8zo/98b+H+y6UPBeVof2WOzzQX96qH+ACEpoFSGrjyUIej11PL8uYvi7AbzaFSDLCjegpMtVTw80TGdWSMhyiJnzCLAIEY </X509Certificate >
      </X509Data >
      </KeyInfo >
      </Signature >
      </r:issuer >
      </r:license >
      </msrel:RelData >
      </KeyInfo >
      </Signature >
      </asmv1:assembly >
     
    Friday, March 16, 2007 6:56 PM
  • Spotty,

    I am trying to take the advice you gave an that other post but am having some trouble.

    Here's the adive you posted:

    The mime types which need to be setup on the server.   If you dont install the .NET 2.0 framework

      .manifest  application/octet-stream

    ·         .application application/x-ms-application

    ·         .deploy application/octet-stream

     

    For entire website:

    1.      Open the Computer Management mmc snap in.  (Right-click on My Computer and choose Manage.)

    2.      Select the Internet Information Services node.  Right-click and select Properties.

    3.      Click the button labeled ‘MIME Types…’

    4.      When the Mime Types dialog appears, add the mime types listed above.

     

    When i right click on my computer and choose manage, there isn't an Internet Information Services node to select.   I am using Windows XP--where do i find the MMC that contains the ISS snap in?

    Thanks in advance!

    Pete

    Sunday, March 18, 2007 3:38 PM
  • you could just zip your program

    call it deploy zip

    and then just put a link to it on your web page

    download and unzip

    very easy

    cheers

    Sunday, March 18, 2007 4:20 PM
  • Thanks clint,

    I don't know why i didn't think of that....it was easy.

    Pete M

    Monday, March 19, 2007 3:06 AM
  • Spotty,

    I still think the best way to deply is to download using ontouch directly from my website, as opposed to zipping my program and downloading the zip file.  If you can still help me out, i will be eternally grateful.

    Pete

    Thursday, March 22, 2007 3:30 AM
  • I have a beta; 'not quite professional quality'

    installer described at

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1371143&SiteID=1

    It still ends up installing everthing in the deep buried, cryptic path, folder that

    VB designed.

    But it does reduce the installation down to one EXE file.

    I hope that it will be useful to someone!


    Saturday, March 24, 2007 12:45 AM