By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,136 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,136 IT Pros & Developers. It's quick & easy.

Deploying ClickOnce is failing on web server

P: n/a
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where
users can access it from. I created an application folder in IIS where I'm
trying to deployee to.

1) When the application folder was set to 'Allow scripts only', I get an
error:

Failed to connect to 'http://192.168.0.5/TransAct/'

with the following error:

Unable to create the Web 'http://192.168.0.5/TransAct/'.

Server error:

'TransAct' does not refer to a page or folder in this web.
It may be a page or folder in a subweb, or it could be a badly formed URL.

There's nothing wrong with the URL and when I deployed it I was prompted to
login and I did so as Administrator.

2) I changed the applicaiton folder to 'Run scripts and executables' and I
get the following error:

Error 3 Failed to copy file
'D:\nwis\Apps\SampleCode\OneClickDeployment\OneCli ckTest1\OneClickTest1\bin\Release\OneClickTest1.pu blish\OneClickTest1_1_0_0_1\Infragistics2.Shared.v 6.1.dll.deploy'
to
'http://192.168.0.5/TransAct/OneClickTest1_1_0_0_1/Infragistics2.Shared.v6.1.dll.deploy'.
Unable to add 'OneClickTest1_1_0_0_1/Infragistics2.Shared.v6.1.dll.deploy'
to the Web. Server error: The folder "/TransAct/OneClickTest1_1_0_0_1" is
marked executable. You are not allowed to put files into an executable
folder on this server. 1 1 OneClickTest1

How should I setup a website (aplication folder in IIS) to do this
correctly?

--
mo*******@nospam.nospam
Mar 13 '06 #1
Share this Question
Share on Google+
11 Replies


P: n/a
Hi moondaddy,

Thanks for your post!

Can you first check if "TransAct" folder is a virtual folder in IIS
manager? You can verify this by using "inetmgr.exe" from cmd.exe.

Also, can you provide some deployment information regarding your ClickOnce?
Did you deploy the ClickOnce application to a remote server?

I recommanded you first deploy the application to the localhost first and
the root virtual folder of IIS. Does the problem still exist?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Mar 14 '06 #2

P: n/a
I'll come back to this in a few days. These problems are on Win Server 2003
on my local network. When publishing to a remote server I was able to get
past these issues for some reason. I now have other issues to resolve which
will be posted in other threads.

thanks.

--
mo*******@nospam.nospam
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
news:ae**************@TK2MSFTNGXA03.phx.gbl...
Hi moondaddy,

Thanks for your post!

Can you first check if "TransAct" folder is a virtual folder in IIS
manager? You can verify this by using "inetmgr.exe" from cmd.exe.

Also, can you provide some deployment information regarding your
ClickOnce?
Did you deploy the ClickOnce application to a remote server?

I recommanded you first deploy the application to the localhost first and
the root virtual folder of IIS. Does the problem still exist?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Mar 14 '06 #3

P: n/a
I don't know why I can deploy to a remote server OK and the install from
that remote server. I'm trying to deploy and install from a local server
with no success. I have tried many configurations on both the local server
and in my project properties and have got many different failures. To many
to try to describe all the various settings and configurations. Its
frustrating that these are not documented or discussed anywhere that I have
found. I have read the documentation in msdn under ClickOnce deployment and
all of its sub topics. All it does is describe the basic settings which are
mostly self explanatory when you browse the properties in the project
deployment properties. Someone needs to write an in-depth manual or book
about click once deployment and the issues involved. For starters, how
about describing how to setup IIS. Rather than my trying to tell you all
about how my IIS is setup, how about telling EXACTLY how to configure IIS
and a website in IIS starting from the point where IIS is just installed and
everything is turned off and locked down. Having completed this would be a
good start knowing that IIS is properly setup and the remaining issues are
most likely in how my project is configures. Since I can deploy to the
remote server, I am guessing that the Project props are OK.

Where can I get good documentation on this?

Thanks.

--
mo*******@nospam.nospam
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
news:ae**************@TK2MSFTNGXA03.phx.gbl...
Hi moondaddy,

Thanks for your post!

Can you first check if "TransAct" folder is a virtual folder in IIS
manager? You can verify this by using "inetmgr.exe" from cmd.exe.

Also, can you provide some deployment information regarding your
ClickOnce?
Did you deploy the ClickOnce application to a remote server?

I recommanded you first deploy the application to the localhost first and
the root virtual folder of IIS. Does the problem still exist?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Mar 14 '06 #4

P: n/a
Ok, if you have bandwidth to come back, you can post a new post regarding
this. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Mar 15 '06 #5

P: n/a
Hi moondaddy,

Thanks for your feedback.

Sorry, if you do not provide detailed information regarding your issue, I
can not provide much useful information to help you out.

I do not think there is much requirement on IIS server, please refer to the
following ClickOnce FAQ link:
"Are there any special server requirements for hosting a "ClickOnce"
application?"
http://www.windowsforms.net/FAQs/def...7&CategoryID=2
4&tabindex=2

So, I suggest you first try to ensure a html or aspx page can be browsed
from this virtual folder with http://localhost/virtualfolder/test.aspx(or
test.html). Then, you may some other client machine to access your
clickonce application, does the error still generate. If so, please post
the detailed failure information and information context.

At last, the link below is the definite documentation regarding how to
troubleshoot the ClickOnce deployment issue, you may give it a detailed
check:
"Troubleshooting ClickOnce Deployment "
http://msdn2.microsoft.com/en-us/library/ms165433.aspx

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Mar 17 '06 #6

P: n/a
Jeffery,

I have already tried the link for trouble shooting clickonce and the other
link was of no help either. What's strange is that I was successfully
publishing to the server but the clickonce install to the client was not
working correctly due to dlls being deployed to the wrong sub directories or
in some cases not being deployed at all. So in my efforts to resolve that,
I removed the bin/debug and bin/release folders from my project and placed
all DLLs (that I wanted to deploy) directly in the bin folder (hoping this
would resolve my install/run issues on the client). Now when I publish the
project to the web server I get the following error:
Error 218 Failed to connect to
'http://xxx.xxx.xx.xxx/TransActDeployment/TransAct_DEMO/' with the following
error: Unable to create the Web
'http://xxx.xxx.xx.xxx/TransActDeployment/TransAct_DEMO/'. Server error:
'TransActDeployment/TransAct_DEMO' does not refer to a page or folder in
this web. It may be a page or folder in a subweb, or it could be a badly
formed URL. 1 1 TransActLogin

I put a web page in:
'http://xxx.xxx.xx.xxx/TransActDeployment/TransAct_DEMO/
and I can browse to it.
I have added mime types to the folder for exe, dll, config, application,
deploy and manifest.
I added the following users to the folder (virtual directory):
Administrators
ASP.NET machine account
Creator Owner
IIS_WPG
Interactive
Internet Guest Account
IUSER_Group
Network
Network Service
System
and I gave them all full control (not good I know, but I'm getting desperate
to get this working).
The folder and website are asp.net 2.0
It has front pager server extensions
Directory Security/Authentication and access control has Enable anonymous
access checked. Integrated windows authentication is checked also.

I need some help and my client is running out of patients as this has not
been working for 1 week now.

any more advice?


--
mo*******@nospam.nospam
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
news:$U****************@TK2MSFTNGXA03.phx.gbl...
Hi moondaddy,

Thanks for your feedback.

Sorry, if you do not provide detailed information regarding your issue, I
can not provide much useful information to help you out.

I do not think there is much requirement on IIS server, please refer to
the
following ClickOnce FAQ link:
"Are there any special server requirements for hosting a "ClickOnce"
application?"
http://www.windowsforms.net/FAQs/def...7&CategoryID=2
4&tabindex=2

So, I suggest you first try to ensure a html or aspx page can be browsed
from this virtual folder with http://localhost/virtualfolder/test.aspx(or
test.html). Then, you may some other client machine to access your
clickonce application, does the error still generate. If so, please post
the detailed failure information and information context.

At last, the link below is the definite documentation regarding how to
troubleshoot the ClickOnce deployment issue, you may give it a detailed
check:
"Troubleshooting ClickOnce Deployment "
http://msdn2.microsoft.com/en-us/library/ms165433.aspx

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Mar 20 '06 #7

P: n/a
Here's a different problem, which might be easier to resolve than the one in
the previous post. When I published the project, I added a "xx" to the last
folder name like this:
http://xxx.xxx.xx.xxx/TransActDeploy...ansAct_DEMOxx/
so it created a new folder on the remote server (IIS 6.0) and it published
fine. Then I went to a test workstation to test the clickonce install and
part way through downloading the DLLs it stopped. Here's the details of the
failure. I'll attach the same text in an attachment as it might be easier
to read in a text file. If we can get this to work, then we can forget
about the problem in the previous post (for now). However, it sure would be
nice to have a thorough understanding of why these various problems occur.
MS should publish a book detailing the various issues and resolutions (in
great detail) surrounding clickonce deployment.

Thanks.

PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.42
System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200)
mscorwks.dll : 2.0.50727.42 (RTM.050727-4200)
dfdll.dll : 2.0.50727.42 (RTM.050727-4200)
dfshim.dll : 2.0.50727.42 (RTM.050727-4200)

SOURCES
Deployment url :
http://xxx.xxx.xx.xxx/TransActDeploy...in.application
Server : Microsoft-IIS/6.0
X-Powered-By : ASP.NET
Deployment Provider url :
http://xxx.xxx.xx.xxx/TransActDeploy...in.application
Application url :
http://xxx.xxx.xx.xxx/TransActDeploy...n.exe.manifest
Server : Microsoft-IIS/6.0
X-Powered-By : ASP.NET

IDENTITIES
Deployment Identity : TransActLogin.application, Version=1.0.0.7,
Culture=neutral, PublicKeyToken=954fa8df58cc2d6e, processorArchitecture=msil
Application Identity : TransActLogin.exe, Version=1.0.0.7,
Culture=neutral, PublicKeyToken=954fa8df58cc2d6e,
processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later
in the log.
* Activation of
http://xxx.xxx.xx.xxx/TransActDeploy...in.application
resulted in exception. Following failure messages were detected:
+ File, TransActLogin.exe, has a different computed hash than specified in
manifest.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [3/19/2006 8:58:13 PM] : Activation of
http://xxx.xxx.xx.xxx/TransActDeploy...in.application
has started.
* [3/19/2006 8:58:14 PM] : Processing of deployment manifest has
successfully completed.
* [3/19/2006 8:58:14 PM] : Installation of the application has started.
* [3/19/2006 8:58:14 PM] : Processing of application manifest has
successfully completed.
* [3/19/2006 8:58:19 PM] : Request of trust and detection of platform is
complete.

ERROR DETAILS
Following errors were detected during this operation.
* [3/19/2006 8:58:21 PM]
System.Deployment.Application.InvalidDeploymentExc eption (HashValidation)
- File, TransActLogin.exe, has a different computed hash than specified in
manifest.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentVerifier.Ve rifyFileHash(String
filePath, Hash hash)
at System.Deployment.Application.ComponentVerifier.Ve rifyFileHash(String
filePath, HashCollection hashCollection)
at System.Deployment.Application.ComponentVerifier.Fi leComponent.Verify()
at System.Deployment.Application.ComponentVerifier.Ve rifyComponents()
at
System.Deployment.Application.DownloadManager.Down loadDependencies(SubscriptionState
subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri
sourceUriBase, String targetDirectory, String group, IDownloadNotification
notification, DownloadOptions options)
at
System.Deployment.Application.ApplicationActivator .DownloadApplication(SubscriptionState
subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory&
downloadTemp)
at
System.Deployment.Application.ApplicationActivator .InstallApplication(SubscriptionState
subState, ActivationDescription actDesc)
at
System.Deployment.Application.ApplicationActivator .PerformDeploymentActivation(Uri
activationUri, Boolean isShortcut)
at
System.Deployment.Application.ApplicationActivator .ActivateDeploymentWorker(Object
state)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

--
mo*******@nospam.nospam
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
news:$U****************@TK2MSFTNGXA03.phx.gbl...
Hi moondaddy,

Thanks for your feedback.

Sorry, if you do not provide detailed information regarding your issue, I
can not provide much useful information to help you out.

I do not think there is much requirement on IIS server, please refer to
the
following ClickOnce FAQ link:
"Are there any special server requirements for hosting a "ClickOnce"
application?"
http://www.windowsforms.net/FAQs/def...7&CategoryID=2
4&tabindex=2

So, I suggest you first try to ensure a html or aspx page can be browsed
from this virtual folder with http://localhost/virtualfolder/test.aspx(or
test.html). Then, you may some other client machine to access your
clickonce application, does the error still generate. If so, please post
the detailed failure information and information context.

At last, the link below is the definite documentation regarding how to
troubleshoot the ClickOnce deployment issue, you may give it a detailed
check:
"Troubleshooting ClickOnce Deployment "
http://msdn2.microsoft.com/en-us/library/ms165433.aspx

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.



Mar 20 '06 #8

P: n/a
OK I found the problem with this error. I did a Google on the main error
text:
".exe, has a different computed hash than specified in manifest."
and found one and only one search result which said this error occurred when
the Revision number did not change. I have Automatically increment revision
number checked, but I updated it manually and compiled before publishing.
This time the test workstation was able to install and run the app. this
was the fix.

However, not all the DLLs are getting deployed, so I need to tweak that part
some more. Here's the link to the answer I found:

http://www.dotnetslackers.com/newsgr...h_specif_.aspx

--
mo*******@nospam.nospam
"moondaddy" <mo*******@nospam.nospam> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
Here's a different problem, which might be easier to resolve than the one
in the previous post. When I published the project, I added a "xx" to the
last folder name like this:
http://xxx.xxx.xx.xxx/TransActDeploy...ansAct_DEMOxx/
so it created a new folder on the remote server (IIS 6.0) and it published
fine. Then I went to a test workstation to test the clickonce install and
part way through downloading the DLLs it stopped. Here's the details of
the failure. I'll attach the same text in an attachment as it might be
easier to read in a text file. If we can get this to work, then we can
forget about the problem in the previous post (for now). However, it sure
would be nice to have a thorough understanding of why these various
problems occur. MS should publish a book detailing the various issues and
resolutions (in great detail) surrounding clickonce deployment.

Thanks.

PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.42
System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200)
mscorwks.dll : 2.0.50727.42 (RTM.050727-4200)
dfdll.dll : 2.0.50727.42 (RTM.050727-4200)
dfshim.dll : 2.0.50727.42 (RTM.050727-4200)

SOURCES
Deployment url :
http://xxx.xxx.xx.xxx/TransActDeploy...in.application
Server : Microsoft-IIS/6.0
X-Powered-By : ASP.NET
Deployment Provider url :
http://xxx.xxx.xx.xxx/TransActDeploy...in.application
Application url :
http://xxx.xxx.xx.xxx/TransActDeploy...n.exe.manifest
Server : Microsoft-IIS/6.0
X-Powered-By : ASP.NET

IDENTITIES
Deployment Identity : TransActLogin.application, Version=1.0.0.7,
Culture=neutral, PublicKeyToken=954fa8df58cc2d6e,
processorArchitecture=msil
Application Identity : TransActLogin.exe, Version=1.0.0.7,
Culture=neutral, PublicKeyToken=954fa8df58cc2d6e,
processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later
in the log.
* Activation of
http://xxx.xxx.xx.xxx/TransActDeploy...in.application
resulted in exception. Following failure messages were detected:
+ File, TransActLogin.exe, has a different computed hash than specified
in manifest.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [3/19/2006 8:58:13 PM] : Activation of
http://xxx.xxx.xx.xxx/TransActDeploy...in.application
has started.
* [3/19/2006 8:58:14 PM] : Processing of deployment manifest has
successfully completed.
* [3/19/2006 8:58:14 PM] : Installation of the application has started.
* [3/19/2006 8:58:14 PM] : Processing of application manifest has
successfully completed.
* [3/19/2006 8:58:19 PM] : Request of trust and detection of platform is
complete.

ERROR DETAILS
Following errors were detected during this operation.
* [3/19/2006 8:58:21 PM]
System.Deployment.Application.InvalidDeploymentExc eption (HashValidation)
- File, TransActLogin.exe, has a different computed hash than specified
in manifest.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentVerifier.Ve rifyFileHash(String
filePath, Hash hash)
at System.Deployment.Application.ComponentVerifier.Ve rifyFileHash(String
filePath, HashCollection hashCollection)
at
System.Deployment.Application.ComponentVerifier.Fi leComponent.Verify()
at System.Deployment.Application.ComponentVerifier.Ve rifyComponents()
at
System.Deployment.Application.DownloadManager.Down loadDependencies(SubscriptionState
subState, AssemblyManifest deployManifest, AssemblyManifest appManifest,
Uri sourceUriBase, String targetDirectory, String group,
IDownloadNotification notification, DownloadOptions options)
at
System.Deployment.Application.ApplicationActivator .DownloadApplication(SubscriptionState
subState, ActivationDescription actDesc, Int64 transactionId,
TempDirectory& downloadTemp)
at
System.Deployment.Application.ApplicationActivator .InstallApplication(SubscriptionState
subState, ActivationDescription actDesc)
at
System.Deployment.Application.ApplicationActivator .PerformDeploymentActivation(Uri
activationUri, Boolean isShortcut)
at
System.Deployment.Application.ApplicationActivator .ActivateDeploymentWorker(Object
state)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

--
mo*******@nospam.nospam
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
news:$U****************@TK2MSFTNGXA03.phx.gbl...
Hi moondaddy,

Thanks for your feedback.

Sorry, if you do not provide detailed information regarding your issue, I
can not provide much useful information to help you out.

I do not think there is much requirement on IIS server, please refer to
the
following ClickOnce FAQ link:
"Are there any special server requirements for hosting a "ClickOnce"
application?"
http://www.windowsforms.net/FAQs/def...7&CategoryID=2
4&tabindex=2

So, I suggest you first try to ensure a html or aspx page can be browsed
from this virtual folder with http://localhost/virtualfolder/test.aspx(or
test.html). Then, you may some other client machine to access your
clickonce application, does the error still generate. If so, please post
the detailed failure information and information context.

At last, the link below is the definite documentation regarding how to
troubleshoot the ClickOnce deployment issue, you may give it a detailed
check:
"Troubleshooting ClickOnce Deployment "
http://msdn2.microsoft.com/en-us/library/ms165433.aspx

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no
rights.


Mar 20 '06 #9

P: n/a
Hi moondaddy,

I am glad this problem is resolved. Currently, do you still need any help
regarding this issue? Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Mar 21 '06 #10

P: n/a
Yes, but I'm going to start a new thread on it with a subject of 'ClickOnce
and com controls'.

Thanks.

--
mo*******@nospam.nospam
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
news:ZK**************@TK2MSFTNGXA03.phx.gbl...
Hi moondaddy,

I am glad this problem is resolved. Currently, do you still need any help
regarding this issue? Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Mar 22 '06 #11

P: n/a
Ok, I think a new post may be clearer to clarify your issue. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 23 '06 #12

This discussion thread is closed

Replies have been disabled for this discussion.