This project has moved. For the latest updates, please go here.

Timeout Errors

Coordinator
Mar 31, 2010 at 8:25 PM
Edited Mar 31, 2010 at 8:28 PM

Anyone else having issues with the latest build? I download an update this morning and while I can run within Visual Studio as soon as I push the code out to IIS I start getting Timeouts and the application won't load-- is it just something on my side or is anyone else having this issue? (I'm using the v1.3 Branch)

Coordinator
Apr 1, 2010 at 1:22 AM

I am really curious if anyone else has had any issues. I got timeout errors on my local IIS as-well-as when I tried to upload to The Rackspace Cloud Sites. I then uploaded to an OrcsWeb shared account and everything worked just fine. I am still trying to track down why it was timing out on my local W2k8 IIS box.

Coordinator
Apr 1, 2010 at 4:31 AM
Edited Apr 1, 2010 at 4:32 AM

I just tried out the latest rev 44291 and have had no issues with timeouts or anything else. I'm running it on win2k3, msAccess db, and iis6, so im NOT using url routing. I'd look there first.

Maybe try rolling back to 44100 and see if its any better because in 44240 I applied Patch #5634 which fixed something on /cat/subcat/post in branch 1.3. Just a guess. The change was in CategoryAndPostHandler.cs

Coordinator
Apr 11, 2010 at 10:31 PM

Okay, I have tracked this down to running the code in a 32-bit Enabled application pool on a 64-bit OS. Rackspace will not allow a 64-bit application pool (lame, I know). Now I am trying to figure out how to get this working in a 32-bit application pool.

Any suggestions?

Coordinator
Apr 12, 2010 at 3:31 AM

I created a 32-bit VM and compiled the code base. Uploaded that and it still isn't working. The Graffiti CMS 1.3 code just doesn't seem to be able to run in a 32-bit application pool on a 64-bit OS (which doesn't make sense to me).

Coordinator
Apr 12, 2010 at 3:50 PM

I'm running a test on IIS7 Win2k8r2 with the app pool in 32 bit mode and its working great so far. How did you configure permissions?

Ive had a similar problem running a different web app in a 32 bit pool on a 64 bit Windows 2003 OS. In the end I got it working by going back default 64 bit pool on a 64 bit OS with the regular 64 bit .net framework 2.0. If you're not using MS Access as your db provider, you should be fine running in a 64 bit pool, if you could.

Coordinator
Apr 12, 2010 at 4:36 PM

Yes, it works fine with a 64-bit app pool, but I have no control over the production environment which does not allow this.

So, I have a Windows Server 2008 R2 64-bit Edition with Visual Studio 2008. I download and compile the code, deploy to IIS on the same box with no changes and it works fine. I set 'Enable 32-bit Applications' for the application pool and everything fails. The application times out and the app pool crashes.

Just to see, I loaded up a Windows Server 2003 32-bit box, loaded Visual Studio 2010 RC, downloaded the code, compiled, deployed and with 32-bit Applications enabled the app pool crashes still.

I've tested on two dev and staging environments, as-well-as production with the same exact results. If I delete the Graffiti code and deploy something else in the 32-bit app pool it works fine.

Maybe I am compiling the code wrong? I've tried setting the build to just x86, tried Any CPU, tried just x64, tried everything I know to try.

Coordinator
Apr 12, 2010 at 4:59 PM

I complied under vs2008, didnt change any default settings at all, but I'm using MS Access db, so I'm forced to use a 32 bit app pool due to the 32 bit Jet limitation. It works fine on in my otherwise identical setup. Why not try Ms Access just for kicks and see if it works for you?

How did you configure permissions to the site folder? Are you using Network Service as the app pool identituy or something else? Not that it matters since it works in 64 bit mode but I'm just trying to match your config.

Coordinator
Apr 20, 2010 at 1:32 AM
jkillebrew wrote:

How did you configure permissions to the site folder? Are you using Network Service as the app pool identituy or something else? Not that it matters since it works in 64 bit mode but I'm just trying to match your config.

Yes, we use Network Services for the app pool identity.

The only fix I have found for now is running on servers that support the 64-bit app pool. I am using SQL Server 2008 though, and have not had a chance to test with an Access database.

Coordinator
Apr 30, 2010 at 4:23 AM

I was finally able to get a debugger attached to the process when this happened. Here is the output:

'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.JScript\8.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_global.asax.wdpmf87z.dll', Symbols loaded.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\e1167f22\2cccc151_17e8ca01\Graffiti.Core.DLL', Symbols loaded.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Web.Routing\3.5.0.0__31bf3856ad364e35\System.Web.Routing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Web.Abstractions\3.5.0.0__31bf3856ad364e35\System.Web.Abstractions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\b65479b2\3cfdef50_17e8ca01\DataBuddy.DLL', Symbols loaded.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'eom1o_cd'
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\b36d957e\ec1c1179_08e8ca01\CookComputing.XmlRpcV2.DLL', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\a85286f1\b8520952_17e8ca01\Graffiti.Core.API.DLL', Symbols loaded.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\8acdcf03\62ae177f_08e8ca01\NVelocity.DLL', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\a50df829\30f6239b_0be8ca01\Telligent.DynamicConfiguration.DLL', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\13bb23db\22cf1c9b_0be8ca01\Telligent.Glow.DLL', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\3658e9c7\eca3a47c_08e8ca01\Lucene.Net.DLL'
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\1405af0d\f2257e52_17e8ca01\Graffiti.Web.DLL', Symbols loaded.
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll
'w3wp.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\2e19c203\5046917f_08e8ca01\RssToolkit.DLL'
System.StackOverflowException was unhandled

This error occurs at line 131 of Events.cs in Graffiti.Core

						Assembly asm = Assembly.LoadFrom(assemblies[i]);
						foreach (Type type in asm.GetTypes())
						{
							try
							{
								if (type.IsClass && !type.IsAbstract && type.IsSubclassOf(typeof(GraffitiEvent)))
								{
									string the_Type = type.AssemblyQualifiedName;
									the_Type = the_Type.Substring(0, the_Type.IndexOf(", Version="));
									EventDetails ed = null;
									foreach (ObjectStore os in osc)
									{
										if (os.Name == the_Type)
										{
											ed = LoadEventDetailsFromObjectStore(os);
											break;
										}
									}

									if (ed == null)
									{
										ed = CreateNewEventFromTypeName(the_Type);
									}

									details.Add(ed);
								}
							}
							catch (Exception exType)
							{
								Log.Warn("Plugin", "Failed to load type {0}. Reason: {1}", type.FullName, exType.Message);
							}
						}

Coordinator
May 3, 2010 at 2:30 AM

I walked through with the debugger and got to the loader exception: 'Message = "Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."'

It seems to maybe have to do with the Telligent.Glow -- though I thought you got this error when running in partial trust, but I have it set to Full trust both at the system level, and in my web.config: <trust level="Full" />

 

Coordinator
May 3, 2010 at 3:07 AM
Edited May 3, 2010 at 3:08 AM

Like with most errors, I was actually running into multiple issues. #1 I discovered this interesting button when I went to the properties of "Telligent.Glow.dll" that said the file had come from another computer and I have to click "Unblock" (http://206.72.114.49/Telligent-Glow-Security-Unblock.png) -- that got the site running again in my dev environment. Seems the ASP.NET Development Server did not honor this setting, but IIS was blocking that DLL because of this setting.

Now, issue #2--Medium Trust. Seems the Lucene.Net.dll won't load in Medium Trust. (Failed to load assembly C:\inetpub\wwwroot\bin\Lucene.Net.dll. Reason: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.)