locked
How can I make run 64bit web Apps in 64bit IIS7.5 ? RRS feed

  • Question

  • User-550764907 posted

    I have been trying to run the x64 platform build ASP. Net MVC 2 application on IIS7.5. Do we have any specific changes to get run this 64 bit apps in IIS 7.5?

    My IIS 7.5 is on 64 bit machine with 64 bit Windows Server 2008 R2.

    The Application pool is using .Net Framework v4.0.30319 in Integrated mode.

    Enable 32-bit Application is False.

    When I run my application "myApps", I get the error:

    The only change I made was switching to "x64" from "Any CPU" . This get compiled but when I run it I get:

    Event code: 3006

    Event message: A parser error has occurred.

    Event time: 1/13/2011 10:36:19 AM

     

    Application information:

    Application domain: /LM/W3SVC/1/ROOT/myApps-19-129394173781318091

    Trust level: Full

    Application Virtual Path: /myApps

     

    Exception information:

    Exception type: HttpException

    Exception message: Could not load type 'myApps.tikiApplication'.

    at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()

    at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()

    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

    Could not load type 'myApps.tikiApplication'.

    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

    at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)

    at System.Web.UI.TemplateParser.Parse()

    at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()

    at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)

    at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()

    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()

    at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)

    at System.Web.Compilation.BuildManager.CompileGlobalAsax()

    at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()

     

    Could not load type 'myApps.tikiApplication'.

    at System.Web.UI.TemplateParser.ProcessException(Exception ex)

    at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

     

    Could not load type 'myApps.tikiApplication'.

    at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError)

    at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly)

    at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData)

    If there is addtional configuration needed on IIS7.5 to make run the compiled x64web apps then please let me know. I am totally blocked.

    Thank you

     

     

     

    Friday, January 14, 2011 2:03 PM

Answers

  • User-176674611 posted

    Hi,

    My IIS 7.5 is on 64 bit machine with 64 bit Windows Server 2008 R2.

    The Application pool is using .Net Framework v4.0.30319 in Integrated mode.

    Enable 32-bit Application is False.

    The .net framework version for your application pool depends on the framework version your MVC application is targeting. As far as I know, if there is no problem with this setting, there will be no special configuration needed to host a MVC 2 application on Windows Server 2008 R2.

    The only change I made was switching to "x64" from "Any CPU"

    If you choose "Any CPU", the CLR will load the assembly as whatever the default target is for the machine it is being executed on. So it is not the issue with this setting. Since you get a parser error which seems to be more related with compilation of asp.net content, I suggest you also post the problem in MVC forum, engineers and community members there can help you in a more efficient way.

    Thanks.

     

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, January 17, 2011 9:05 PM