Results 1 to 18 of 18

Thread: Problem Publishing

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Problem Publishing

    I am getting two errors
    1) Cannot publish because a project failed to build.
    2) An error occurred while signing: SignTool.exe not found.

    Regarding #1, I can manually build and rebuild the application without error. I only get this error when I try to Publish.

    Regarding #2, I looked in my SDK\v3.5\Bin directory and indeed the signtool was not there. In fact I only had 3 files (genasm.exe, genasm.exe.config, and hidpi.res). I copied the signtool.exe from the Visual Studio 2005, (file dated 10/26/2006), but I still get the same error saying it can not find the file.

    Any guidance would be appreciated.

  2. #2
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Problem Publishing

    Quote Originally Posted by John_SC View Post
    I am getting two errors
    1) Cannot publish because a project failed to build.
    2) An error occurred while signing: SignTool.exe not found.

    Regarding #1, I can manually build and rebuild the application without error. I only get this error when I try to Publish.

    Regarding #2, I looked in my SDK\v3.5\Bin directory and indeed the signtool was not there. In fact I only had 3 files (genasm.exe, genasm.exe.config, and hidpi.res). I copied the signtool.exe from the Visual Studio 2005, (file dated 10/26/2006), but I still get the same error saying it can not find the file.

    Any guidance would be appreciated.
    Install the SDK which contains the sign tool and then try again
    http://www.microsoft.com/downloads/e...displaylang=en

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Re: Problem Publishing

    This link is for Windows 7. I am running XP, although the target users will be on Windows 7.

    When the page indicates it is for Windows 7, I am not sure if they mean the developer machine or the target machine. Anyone know which it is?

  4. #4
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Problem Publishing

    Quote Originally Posted by John_SC View Post
    This link is for Windows 7. I am running XP, although the target users will be on Windows 7.

    When the page indicates it is for Windows 7, I am not sure if they mean the developer machine or the target machine. Anyone know which it is?
    This is for developers

    As per information from the link

    Supported Operating Systems
    Supported Operating Systems:Windows 7;Windows Server 2003 R2 Standard Edition (32-bit x86);Windows Server 2003 R2 Standard x64 Edition;Windows Server 2008;Windows Server 2008 R2;Windows Vista;Windows XP Service Pack 3

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Re: Problem Publishing

    Thanks, I missed the reference to XP. I will give it a try tomorrow, and post back results.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Re: Problem Publishing

    I went ahead and installed the SDK at http://www.microsoft.com/downloads/e...displaylang=en

    Now I do not see either of the two errors, but I get a message saying
    Code:
    This webpage is not found.
    
    No webpage was found for the web address: file:///C:/Documents%20and%20Settings/MYLapTop/My%20Documents/Visual%20Studio%202008/Projects_Real/NewBrowser/NewBrowser/publish%22
    I believe the %22 is an escaped quote mark ("). I tried putting various dummy web pages in the Publish subdirectory including (default.htm, default.html, index.htm, index.html).

    I don't have a web site for this app. How can I address this error and/or change the specification for the webpage?

  7. #7
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Problem Publishing

    Quote Originally Posted by John_SC View Post
    I went ahead and installed the SDK at http://www.microsoft.com/downloads/e...displaylang=en

    Now I do not see either of the two errors, but I get a message saying
    Code:
    This webpage is not found.
    
    No webpage was found for the web address: file:///C:/Documents%20and%20Settings/MYLapTop/My%20Documents/Visual%20Studio%202008/Projects_Real/NewBrowser/NewBrowser/publish%22
    I believe the %22 is an escaped quote mark ("). I tried putting various dummy web pages in the Publish subdirectory including (default.htm, default.html, index.htm, index.html).

    I don't have a web site for this app. How can I address this error and/or change the specification for the webpage?
    I would try this out where the path has no spaces in it. Get the short path name and then try again or create the project under a folder with no spaces.

    Also it does not make sense (at least to me) that there is a trailing " and no beginning ".

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Re: Problem Publishing

    No Joy.

    Code:
    This webpage is not found.
    
    No webpage was found for the web address:
    
    file:///C:/tmp/NewBrowser/NewBrowser/publish%22
    Note, I specified that the application will not check for updates. There is the option to check, in which case I have to specify a web page, the default being

    Code:
    http://localhost/NewBrowser/
    but again, I am not using that option. I am not sure if the "publishing" has completed other than this error.

  9. #9
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Problem Publishing

    Quote Originally Posted by John_SC View Post
    No Joy.

    Code:
    This webpage is not found.
    
    No webpage was found for the web address:
    
    file:///C:/tmp/NewBrowser/NewBrowser/publish%22
    Note, I specified that the application will not check for updates. There is the option to check, in which case I have to specify a web page, the default being

    Code:
    http://localhost/NewBrowser/
    but again, I am not using that option. I am not sure if the "publishing" has completed other than this error.

    Have you tried to remove the %22
    I just did a publish and no %22 added to the path.

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Re: Problem Publishing

    I never typed anything in - never specified a web page. So I don't know how to remove it. Is it in the Application Properties some where? I could not find it.

    The install program is created and seems to work however no Icon was installed on my desktop, and the application was not installed under programs under Start. I thought it was suppose to do both of these. The Publish process may be terminating prior to these steps being accomplished.

  11. #11
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Problem Publishing

    Quote Originally Posted by John_SC View Post
    I never typed anything in - never specified a web page. So I don't know how to remove it. Is it in the Application Properties some where? I could not find it.

    The install program is created and seems to work however no Icon was installed on my desktop, and the application was not installed under programs under Start. I thought it was suppose to do both of these. The Publish process may be terminating prior to these steps being accomplished.
    Was a file created [ApplicationName.Published.xml in the main app folder? While the project is selected select from the IDE menu Project->Show all files then see if the file exists.

    Example, publishUrl is quoted beginning and end.

    From VS2010
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <publishData>
      <publishProfile publishUrl="C:\Dotnetland2010\MyPublishedSite" 
                      deleteExistingFiles="False" 
                      ftpAnonymousLogin="False" 
                      ftpPassiveMode="True" 
                      msdeploySite="" 
                      msdeploySiteID="" 
                      msdeployRemoteSitePhysicalPath="" 
                      msdeployAllowUntrustedCertificate="True" 
                      msdeploySkipExtraFilesOnServer="True" 
                      msdeployMarkAsApp="False" 
                      profileName="Profile1" 
                      publishMethod="FileSystem" 
                      replaceMatchingFiles="True" 
                      userName="" savePWD="False" 
                      userPWD="" 
                      SelectedForPublish="True">
        <file relUrl="Web.config" publishTime="12/15/2010 08:12:27" />
        <file relUrl="Site.Master" publishTime="12/15/2010 08:09:29" />
        <file relUrl="Account/Web.config" publishTime="12/15/2010 08:09:29" />
        <file relUrl="Account/Register.aspx" publishTime="12/15/2010 08:09:29" />
        <file relUrl="bin/WebApplication1.pdb" publishTime="12/15/2010 08:10:37" />
        <file relUrl="Account/ChangePasswordSuccess.aspx" publishTime="12/15/2010 08:09:29" />
        <file relUrl="Account/Login.aspx" publishTime="12/15/2010 08:09:29" />
        <file relUrl="Styles/Site.css" publishTime="12/15/2010 08:09:29" />
        <file relUrl="Scripts/jquery-1.4.1.js" publishTime="12/15/2010 08:09:29" />
        <file relUrl="Account/ChangePassword.aspx" publishTime="12/15/2010 08:09:29" />
        <file relUrl="bin/WebApplication1.dll" publishTime="12/15/2010 08:10:37" />
        <file relUrl="Global.asax" publishTime="12/15/2010 08:09:29" />
        <file relUrl="bin/WebApplication1.xml" publishTime="12/15/2010 08:10:37" />
        <file relUrl="Scripts/jquery-1.4.1-vsdoc.js" publishTime="12/15/2010 08:09:29" />
        <file relUrl="About.aspx" publishTime="12/15/2010 08:09:29" />
        <file relUrl="Default.aspx" publishTime="12/15/2010 08:09:29" />
        <file relUrl="Scripts/jquery-1.4.1.min.js" publishTime="12/15/2010 08:09:29" />
      </publishProfile>
    </publishData>

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Re: Problem Publishing

    Nope, this was not created. I have 4 *.xml files. They are in
    bin\Debug\
    bin\Release\
    obj\Debug\
    obj\Release\

    No others were found anywhere in my app.

  13. #13
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Problem Publishing

    Are you starting SignTool from the Visual Studio Command Prompt as follows

    signtool signwizard

  14. #14

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Re: Problem Publishing

    I don't run signtool at all. I am assuming the Publish wizard does that. I am not even aware of the Visual Studio Command Prompt. If it matters, I am running 2008.

  15. #15
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Problem Publishing

    If nobody else has a clue to why this is happening you might want to ask this question at ClickOnce and Setup & Deployment Projects MSDN forum or perhaps find information here

  16. #16

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Re: Problem Publishing

    I will do that and report back if I ever find an answer. Thanks for taking a shot at it.

  17. #17

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    523

    Re: Problem Publishing

    Still no answer, but more info. I created a new clean application with just one form with an exit button. Publishing this using the defaults:

    location: publish\
    From a CD-Rom or DVD-ROM
    The Application will not check for updates

    and I still get the error that

    This webpage is not found.

    No webpage was found for the web address:
    file:///C:/Documents&#37;20and%20Settings/MyLapTop/My%20Documents/Visual%20Studio%202008/Projects_352/junk-1/junk-1/publish%22

    with the %22 being a quote (") mark.

    Can others Publish without this error? I am running VS 2008 Version 9.0.30729.1 SP; .Net Framework 3.5 SP1

  18. #18
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Problem Publishing

    Quote Originally Posted by John_SC View Post
    Can others Publish without this error? I am running VS 2008 Version 9.0.30729.1 SP; .Net Framework 3.5 SP1
    I can publish in VS2008 and VS2010 under Windows XP, have not tried Vista.

Posting Permissions

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



Click Here to Expand Forum to Full Width