index > ClickOnce and Setup & Deployment Projects > Problems with MIME settings at the hosting provider

Problems with MIME settings at the hosting provider

Hi,

My web hosting company is www.brinkster.com and I have asked them to enable MIME type for ".application". After a short period of time, the extension was not recognized anymore (404 Page not found) so I have asked them to reenable the settings. This is what I have received from their suport:

-------------------------------
Hello,
I am not sure what has happened now but I have just reset the MIME settings for the ".application" extension.  It is possible that this extension name is too long for our server to recognize it.  If problems occur in the future, would it be possible to shorten the extension name?(for example to ".app")
--------------------------------

After a couple of days, again the extension was not working. So I am gonna ask even if I think it's not possible: Is it possible to use a different extension for ".application" ?
I must mention that I have asked them to enable ".xapp" (Avalon Express Applications) and I didn't have any problems with it since it was enabled (a month ago).

Valentin



Valentin Iliescu [MVP - Client Application Development]
viliescu
If you're activating over http, it is possible to use a different extension other than .application for deployment manifest. As long as web server returns Content-Type "application/x-ms-application" for the deployment manifest ClickOnce will work.

For UNC or local machine activation where you're double clicking the deployment manifest it must have .application extension for ClickOnce to work.

-Sameer


This posting is provided "AS IS" with no warranties, and confers no rights.
Sameer Bhangar
The problem is now I have to change the extension of the deployment manifest from .application to .app. Not only that, in the deployment manifest itself I have to change the extension in the element <deploymentProvider codebase="http://<server_name>/<application_name>/<application_name>.application" /> but this invalidate the manifest because it is signed.
So there must be a way to manually build the project for publish so I can specify a different name for the deployment manifest.
I have read about "MSBuild /target:publish" and GenerateDeploymentManifest task but I don't know how to start, maybe somebody can help me by giving an example.

Thank you,
Valentin Iliescu



Valentin Iliescu [MVP - Client Application Development]
viliescu
I  have solved the problem by modifying the Microsoft.Common.Targets - these 2 lines

<TargetDeployManifestFileName Condition="'$(TargetDeployManifestFileName)' == ''">$(AssemblyName).application</TargetDeployManifestFileName>

<DeployManifestIdentity>$(ManifestIdentity).application</DeployManifestIdentity>



Valentin Iliescu [MVP - Client Application Development]
viliescu
Valentin,
Where are these lines of code located in your project and how do you modify them?
I am having a similar problem with Brinkster and I can't figure out where these lines would be some I can edit them.
I'd appreciate any help you can provide.
Thanks,
Marc
mdg17
Look for "Microsoft.Common.Targets" file in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215 directory



Valentin Iliescu [MVP - Client Application Development]
viliescu
I have changed them to

<TargetDeployManifestFileName Condition="'$(TargetDeployManifestFileName)' == ''">$(AssemblyName).app</TargetDeployManifestFileName>

<DeployManifestIdentity>$(ManifestIdentity).app</DeployManifestIdentity>


viliescu
reply 7

You can use google to search for other answers

 

More Articles

• Generic Bootstrapper - SQL Express Named Instance
• Can not publish my application because of vjslib not in GAC...
• Creating Publish.htm without Visual Studio
• Troubles with access
• Moving published ClickOnce deployment files to another location?
• Can't get 'registry search' function to work in my deployment pro...
• msvcp77.dll
• Custom/Typical Deployment Dialog
• + Exception occurred during store operation.
• Reading Installer Public Properties from a file.
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• 'Back' Button gets disabled on the Insta
• How to create a setup packge including f
• Multiple download of the same assembly
• smart client problem (multiple files upl
• Exception when rising event to javascrip
• Code Group Children problem at Visual St
• Problem with registering msxml6.dll as a
• What would cause a program to try to rei
• CheckForUpdateAsync not raise event
• Deploying .NET 2.0 Application to Network?
• Install Wizard problem
• Help me please(Deployment)
• project setup?
• Visual Studio Installer - insert License
• ClickOnce - No execution of application

Hot Articles

• Database install question
• RDP : Block administrator to access clie
• Can not turn off automatic update
• Help, Published Application Ref Becomes
• My.Settings System.OutofmemoryException
• Fail to do setup in WindowsXP sp1 when r
• ClickOnce Installs fail, ADODB 7.0.3300
• Help hosting .net control in IE
• .net application updater
• Internet Explorer 7 problem
• Strongly-typed access to a resources (sa
• Preparing for ClickOnce?
• Verisign Certificate unavailable in Store
• Install from CD
• Click doesn't install required components

Recommend Articles

• Disable Custom action instead of deleting
• User consent prompt
• Link to form by a web browser
• Visual Studio Installer and empty workin
• Using Microsoft.Build.Tasks.Deployment.M
• Hosting controls in IE 6
• Execute VSTO Word document from a share
• How can i set JIT Debugging in VB Expres
• Moving Hosting location of a Deployed Ap
• ClickOnce, Updates, and Settings
• Rich Client not working on HTTPS Server...
• what is the difference between no-touch
• Does windows User Control have similar t
• Updating files with mage.exe doesn't work
• cruisecontrol, msbuild, obfuscate, click