toddbailey Posted February 25, 2010 Posted February 25, 2010 Hi All, I have this web application I'm revising and hitting a wall when publishing to a 64 bit machine. It fails to run when I navigate to a page that accesses the Fusion Charts dll on the 64 bit machines ON a 32 bit machine there is no issue, FC runs fine on my 32 bit Vista x86 machine w/IIS 7. The 64 bit machines are Win Server 2008 R2 & Win 7. In each instance IIS 7 was set up the same as the 32 bit vista box and fwiw on the 64 bit machine 32 bit application mode was enabled. What am I missing to set up to allow a 32 bit application to run properly? The error I see when trying to access the fusion charts page (from the machine's desktop) look like this Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type or namespace name 'InfoSoftGlobal' could not be found (are you missing a using directive or an assembly reference?) Source Error: Line 14: using System.Text; Line 15: using System.Diagnostics; Line 16: using InfoSoftGlobal; Line 17: Line 18: public partial class SolarPerformanceSummary : System.Web.UI.Page Source File: c:\inetpub\wwwroot\toddbailey.net\Demos\Solar\SolarPerformanceSummary.aspx.cs Line: 16 Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927 Quote
Forum² Admin F2 Staff Posted February 26, 2010 Forum² Admin Posted February 26, 2010 Make sure the webserver is set to run scripts and programs in 32bit mode. Quote
toddbailey Posted February 26, 2010 Author Posted February 26, 2010 Make sure the webserver is set to run scripts and programs in 32bit mode. So, How do I accomplish this? In the application pool setting I have 32 bit mode enabled (true) , but I don't know how to set script & programs in iis7 thanks. Quote
toddbailey Posted February 26, 2010 Author Posted February 26, 2010 Additionally, I don't think this (allow scripts and programs) is a root cause of the problem, since the web site does run, meaning I can navigate through the various pages (asp.net + javascript, c# and vb or pure html) but only when I navigate to the few pages that utilize the InfoSoftGlobal.dll for charts and graphs will the error occur. In the application pool there is a setting for allow 32 bit, and it is set to true, but I can't say that it changes any thing, in either case, true or false, the error message appears. Quote
toddbailey Posted February 26, 2010 Author Posted February 26, 2010 Additionally, I don't think this (allow scripts and programs) is a root cause of the problem, since the web site does run, meaning I can navigate through the various pages (asp.net + javascript, c# and vb or pure html) but only when I navigate to the few pages that utilize the InfoSoftGlobal.dll for charts and graphs will the error occur. In the application pool there is a setting for allow 32 bit, and it is set to true, but I can't say that it changes any thing, in either case, true or false, the error message appears. Quote
toddbailey Posted February 26, 2010 Author Posted February 26, 2010 A New Development !!! I tracked down where the error is coming from. Just for grins, I recompilied the web application and reposted the app bits from my Win Vista x86 (32 bit os) partition And wouldn't you know it, The Web Application runs, no errors from before. So it's not a Win Server issue but something to do with the Visual Studio 2008 config/install on the Win 7 partition. Sorry for the bother and thanks for the thoughts but I'll need to research this, and perhaps post the issue on a VS forum. Quote
Forum² Admin F2 Staff Posted February 26, 2010 Forum² Admin Posted February 26, 2010 After i posted what I did I started to wonder if it was a VS issue. Thanks for letting us know what the problem was. Quote
toddbailey Posted February 26, 2010 Author Posted February 26, 2010 Since I finally got it nailed down to VS, I played around with VS configurations a bit. Not sure exactly what eventually fixed the problem, but it could be to run VS in admin priv. mode, run in Vista SP 2 compat. mode or resetting the app build config setting. With all the new tech to play with it's no wonder something broke, being very new to R2, Win 7 & IIS 7; I'm amazed anything worked at all, even though it took me about 3 weeks to get everything installed and running. Now I can go back to my real job and write code... what a concept. Thanks again. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.