Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
1/13/2011 10:31:25 PM
Gravatar
Total Posts 6

Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Hello,

 

I am getting this error on install.  I am following this guide. Installing on a Server 2008 R2.

1/13/2011 10:33:45 PM
Gravatar
Total Posts 6

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Not sure how to edit the above post but using package mojoportal-2-3-5-8-b-mssql-net40-deploymentfiles.zip  and have SQL 2008 R2 Express installed already

1/14/2011 9:40:45 AM
Gravatar
Total Posts 18439

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Hi,

I am able to replicate this problem after installing Web Platform Installer 3.0 which was just released yesterday. It seems like a bug on their end (IIS) to me because I get the same error if I try to install Orchard downloaded from Codeplex using the same technique. I have emailed the app gallery team at Microsoft about this problem, I'll post again if I get an answer or a workaround. It seems to work fine installing from the Gallery and I assume the Orchard file in the Gallery is the same file but when I try to install it using "Import Application" in IIS I get the very same error as with mojoPortal .NET 4 package. Currently the version of mojoPortal in the Gallery is for .NET 3.5 but now that Web Platform Installer 3 is out, the next time I submit our package to the Gallery I will submit the .NET 4 version.

Best,

Joe

1/14/2011 2:12:30 PM
Gravatar
Total Posts 18439

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Hi,

I came up with a workaround by creating a custom product feed that can be used in the Web Platform Installer. See this new article for steps and screen shots.

http://www.mojoportal.com/installing-mojoportal-using-the-web-platform-installer.aspx

I may have to change the feed url in the future because it seems to cache it, so I may make version specific feeds in the future, but for now the instructions in the new article are up to date.

Best,

Joe

1/14/2011 9:40:42 PM
Gravatar
Total Posts 6

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Thank you very much! That got it installed. After it installed it went to this page http://localhost/mojoportal//Setup/Default.aspx

Then the following error:

 

Server Error in '/mojoportal' Application.
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
mojoPortal.Web.WebTaskManager.StartOrResumeTasks(Boolean appWasRestarted) +570
mojoPortal.Web.Global.StartOrResumeTasks() +250
mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e) +238

[HttpException (0x80004005): An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +3985477
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

[HttpException (0x80004005): An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11524352
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4782309


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

1/15/2011 7:09:48 AM
Gravatar
Total Posts 18439

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Hi,

Which mojoPortal package did you install, you said MS SQL before but this error makes me think you installed the SQLite package in which case you need to go into advanced settings on the application pool and set Enable 32 bit apps to true.

It looks like a bug in my feed caused an extra / in the setup url, it should be http://localhost/mojoportal/Setup/Default.aspx I will fix that soon.

Best,

Joe

1/15/2011 11:15:02 PM
Gravatar
Total Posts 6

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Thanks for the response. I may have installed the wrong version. How do I uninstall it and reinstall the correct one? Thanks

1/16/2011 7:04:48 AM
Gravatar
Total Posts 18439

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Hi,

You can install it multiple times (use the same process but be careful to choose the correct package) but would have to install it in a different location, like you currently installed it at /mojoportal but during the installation you could have changed that to something else like /mojo or /whatever. If you want to install it at the same url again then you would have to go into IIS and delete it and then you may also need to delete the underlying folder from the file system as well, then you could install it again in the same place.

Hope it helps,

Joe

1/16/2011 11:34:17 AM
Gravatar
Total Posts 6

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Ok, I am really struggling with this... I removed everything and started installing again.

I have Mirosoft SQL Server 2008 R2 installed. 

If I open of Sql Server Configuration Manager under SQL Server Services I have a SQL Server (SQLEXPRESS) running.  It says Log On As "CT1\administrator)  When I open the properties I have it set to use This Account. CT1\administrator

When I start the install from Web Platform Installer I leave everything default on Step 1 on Step 2 if I leave everything to default I get ERROR "Cannon connect to the database .Login failed for user 'sa'.

 

 

 

 

1/16/2011 10:26:40 PM
Gravatar
Total Posts 6

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

Ok, I got it to install... Here is what I had to do. I went into Microsoft SQL Server Management Studio and changed the Server Properties to SQL Server and Windows Authentication Mode

Then I went and Enabled the sa account login under Logins.

 

From everything I have read this is not a good way to do it. Can I change It back now?

1/17/2011 7:31:49 AM
Gravatar
Total Posts 18439

Re: Import Application Package 'enable32bitapponwin64' is not a valid attribute of the deployment object 'createapp'

There is nothing wrong with using sql logins, 99% of all web hosts will use sql logins not windows logins for database connection strings.

Web Platform Installer only works with sql authentication not windows.

If you install SQL Server using Platform Installer it will make it use mixed mode authentication (both windows and sql) but if you installed it separately it may default to windows only, but what you did is correct, you enabled mixed mode so it can use sql authentication. There is no reason to change it back.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.