Fresh Installation causing server errors.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/19/2012 5:41:38 PM
Gravatar
Total Posts 40

Fresh Installation causing server errors.

Hi. I have a fresh installation of mojoportal-2-3-9-3-mssql-net40 installed on a shared 'Medium Trust' server with my webhost Pipeten and a new MSSQL database also hosted by Pipeten. The installation went fine & everything seemed to be running ok. I've just added one test 'Contact' page (which is working fine), changed the default password & edited a bit of text. Apart from that the site is 'as installed'.

After only 24hrs the site has been automatically closed down by Pipeten as it was generating lots of errors. This is the second time that it has happened, each time with a fresh install (although the first was with version 2-3-9-0). The following is a reply from their helpdesk:

A: Hi Craig,

Yes, it looks like it has been generating a lot of errors and causing problems on the server again.

I've attached them below for you.

Regards,

Gavin
---
Gavin Kimpton
Pipe Ten Support Team

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/230/ROOT

Process ID: 7368

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace: at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)
at System.Security.CodeAccessPermission.Demand()
at System.IO.Directory.CreateDirectory(String path)
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()
at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()
at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/230/ROOT

Process ID: 10672

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace: at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)
at System.Security.CodeAccessPermission.Demand()
at System.IO.Directory.CreateDirectory(String path)
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()
at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()
at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Does anyone have any idea what might be causing this? I've already checked file permissions with Pipeten & they have informed me that they are already set as 'maximal permissions' for shared hosting.

Regards,

Craig 

10/19/2012 5:47:53 PM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

The /Data folder and all child folders need to be writable by th euser that is the identity on the application pool.

Its simply a file system permission error, its trying to index content into the search index which is file system based. It doesn't seem able to write to /Data/Sites/[SiteID]/index folder

typically SiteID is 1 in a new installation with only one site.

So you need to solve this file system permission problem by permission configuration. Your hosting control panel should have something for that or your host should be able to help.

Hope that helps,

Joe

10/19/2012 6:02:42 PM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

OK. Thanks for that Joe. Apparently I have no direct control over file permissions in shared hosting, so I've put it back to Pipeten to see if they can help.

Regards,

Craig

10/19/2012 6:13:20 PM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

This error could also be because the task is using xml serialization which requires the runtime to generate a class in temporary files this comment and linked thread is in your Web.config file and may help you or help your host resolve the problem:

<!-- the below example can be useful if you encounter the error described in this post
http://www.mojoportal.com/Forums/Thread.aspx?thread=6741&mid=34&pageid=5&ItemID=3&pagenumber=1#post27613
-->
<!--
<system.xml.serialization>
<xmlSerializer tempFilesLocation="D:\__projects\mojoportal\__code\joedev\Web\Data"/>
</system.xml.serialization>
-->

So the above can be commented out and adjusted to the actual file path of you /Data folder if your host doesn't allow your app pool user to write to the default location which is down below the Windows folder in a temp folder.

Hope that helps,

Joe

10/19/2012 6:31:53 PM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Thanks again Joe. Pipeten got back to me about the permissions:

A: Hi Craig,

We use Identity Impersonate on the shared servers and I've double checked for you and your user has writable permissions over all your files and folders.

Regards,

Gavin
---
Gavin Kimpton
Pipe Ten Support Team

It might well be the xml serialization then. I've sent your last comment back to Pipeten, so hopefully this will help. I'll let you know if it works.

Regards,

Craig

10/28/2012 9:34:59 AM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

I edited the web.config file in order to overcome the permission errors & it seemed to sort the problem... for a while!

I had two sites (the original running on the main installation domain1.com and the second running on a separate installation at domain2.com, but both having a shared database). I made sure that the web.config's for both sites were modified as instructed in the post you linked to and using the values given by my webhost (H:\hshome\username\domain1.com\Data\ and H:\hshome\username\domain2.com\Data\).

I've subsequently added a third site. This site is an aliased sub-domain of the first one (ie testsite.domain1.com) and I've added the host mapping in the site3 settings. I can access it fine, but it occasionally stalls & I'm getting errors again:

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/230/ROOT

Process ID: 5936

Exception: System.UnauthorizedAccessException

Message: Access to the temp directory is denied. Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory. CodeDom will use the user account the process is using to do the compilation, so if the user doesn?t have access to system temp directory, you will not be able to compile. Use Path.GetTempPath() API to find out the temp directory location.

StackTrace: at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at mojoPortal.Business.SerializationHelper.SerializeToString(Object obj)
at mojoPortal.Business.WebHelpers.IndexHelper.RebuildIndex(IndexItem indexItem, String indexPath)
at mojoPortal.Business.WebHelpers.IndexHelper.RebuildIndex(IndexItem indexItem)
at mojoPortal.Business.WebHelpers.HtmlContentIndexBuilderProvider.IndexItem(HtmlContent content)
at mojoPortal.Business.WebHelpers.HtmlContentIndexBuilderProvider.IndexItem(Object o)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Could this be because I'm accessing site3 from testsite.domain1.com, which is aliased to domain1.com and I've hardcoded the tempFilesLocation to a folder within domain1.com?

Thanks,

Craig

10/28/2012 9:47:26 AM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

This error happens because we use xml serialization for task such as the search index builder. By default ASP.NET generates a class for the serialized object under windows temp folder but your hosting does not allow this.

There is a workaround on this thread that may solve it.

Look for this in Web.config, uncomment it and enter the correct file system path to the /Data folder

<!--
<system.xml.serialization>
<xmlSerializer tempFilesLocation="D:\__projects\mojoportal\__code\joedev\Web\Data"/>
</system.xml.serialization>
-->

Then it can generate the class there instead of windows temp folder.

Hope that helps,

Joe

10/28/2012 10:36:01 AM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

It was that link that you gave me a couple of posts ago that seemed to solve the problem for a while. It's come back now that I'm using an aliased subdomain to access site3 on my installation.

Site3 is accessed via testsite.domain1.com, which is an alias of domain1.com. I can access site3 fine this way, but I've started getting errors & I'm wondering if hardcoding <xmlSerializer tempFilesLocation="H:\hshome\username\domain1.com\Data"/> causes a problem in a multisite environment?

In other words, I'm accessing the data folder from testsite.domain1.com, but it's hardcoded in the web.config to just domain1.com. Could this be an issue?

Cheers,

Craig

10/28/2012 11:21:27 AM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

Since it uses a file system path it should not matter what host name is used since the file system path does not change. I'm not sure what you mean by aliasing when I hear people say that I usually interpret it to mean that by some hosting trickery you are trying to run another copy of mojoPortal in a sub folder but make it seem like another root site. If the 3rd site host name resolves to the same physical installation it should work fine but if you are somehow alisaing a sub folder as if it were a root site that is not going to work.

If its really another installation in a sub folder then you may get web.config conflicts and may need to wrap things in location elements to solve that. But mojoPortal cannot run in a sub folder and pretend to be a root site, it can run as a root site or as a sub folder but no hosting trickery can make it work as if it were a root site if its really installed in a sub folder below a root site. The additional host name just needs to resolve the the same IIS web site so it points to the same physical installation.

Hope that helps,

Joe

10/28/2012 11:33:59 AM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

Don't worry, it's not another copy of mojoPortal in the sub domain / sub folder! My webhost Control Panel gives me the option to add an alias to the main domain, which I have setup as testsite.domain1.com. ie When I go to testsite.domain1.com (which doesn't actually exist, it is just an alias of the main domain, so it points to the files on domain1.com) then I actually access the main mojoPortal installation, but because I have HostMapping in site3 to include testsite.domain1.com I actually get served the content of site3, which is what I was after! The problem is that I keep on getting the unhandled exceptions!

Cheers,

Craig 

10/28/2012 12:04:31 PM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

I have no idea why it would only happen for 1 host name and not the other. If it was working before and the error started I would suspect that file system permissions changed on the /Data folder or if the other host name is using a different app pool user then that user would also need write permission on the /Data folder.

Hope that helps,

Joe

10/28/2012 12:34:27 PM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

OK. Thanks Joe. I've checked with Pipeten & permissions haven't changed & the web.config is still correct.

The only solution that I can think of for now is to put:  <add key="IsSearchIndexingNode" value="false"/> into the config file (as mentioned as an earlier fix in the post that you linked to) to prevent the errors caused by the xmlserializer... Obviously this will stop the indexing working as designed...

I'm worried that the alternative is having my domain frozen again for causing too many errors.

Thanks again for your help.

Craig

 

10/28/2012 1:51:28 PM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

I've checked with Pipeten again & they assure me that I have full write permissions over all my folders. Despite this my currentlog.config file is still empty.& showing as 0 b... confused!

Craig

10/28/2012 2:02:38 PM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

Well they may think the file permission is correct but it is not. If it were there would be at least applicaiton start and end events logged.

10/29/2012 1:05:21 PM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe. I've hit a bit of a brick wall!

Pipeten assure me that my file permissions are correct and yet the currentlog.config is still completely empty!

Is there an easy way that I can prove that it's not working OK? ie Is there a way of initiating an event to be written to the log so that I can prove to them that it doesn't get written? It's strange, because when making a new site both sites 2 & 3 have been written to the /Data/Sites/ folder fine, so that must have been writable... so why not the log?!

Thanks,

Craig

10/29/2012 1:16:31 PM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

If it fails to write to the log it is very clearly not able to. You could try deleting the currentlog.config file if permissiosn are correct it will be re-created.

You could also try enabling logging to the database, but it is definitely not able to write to that log file or it would regardless of what any tech support person says, there is no other explanation for it not logging.

10/30/2012 4:30:58 PM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

Support at Pipeten wrote the following back to me:

The shared application pool runs with network service identity and identity impersonate. I have enabled modify permissions for network service to the Data folder but I cannot get it to generate a log by visiting the website"

I wondered also if it was related to the "xmlSerializer tempFilesLocation" setting and possible directory traversal problems (no permission on H:) so changed it to "\Data" from "H:\hshome\username\domain_name\Data" and that seemed to have started working (as in the log is being generated)...

The site generally runs OK, but every now & then, often when just navigating around the Administrator pages,  I get the custom error page saying that a server error has occurred.

I'm getting some content in the log now, but I'm still not sure that it's getting everything.

The only content in the currentlog since last night is:

2012-10-29 21:34:42,712 INFO 2012-10-29 21:34:42,946 ERROR 2012-10-29 21:59:25,735 INFO 2012-10-29 22:45:29,480 INFO 2012-10-29 23:33:29,196 INFO 2012-10-30 01:08:45,369 INFO 2012-10-30 02:13:26,518 INFO 2012-10-30 04:13:13,469 INFO 2012-10-30 04:13:13,952 ERROR 2012-10-30 04:53:27,756 INFO 2012-10-30 05:45:59,241 INFO 2012-10-30 05:45:59,709 ERROR 2012-10-30 05:51:13,084 ERROR 2012-10-30 06:13:25,847 INFO 2012-10-30 06:35:33,166 INFO 2012-10-30 06:35:33,681 ERROR 2012-10-30 06:48:00,115 ERROR 2012-10-30 07:33:27,683 INFO 2012-10-30 08:57:04,925 INFO 2012-10-30 10:13:28,219 INFO 2012-10-30 11:54:21,650 INFO 2012-10-30 11:54:22,851 ERROR 2012-10-30 12:37:03,077 ERROR 2012-10-30 12:48:36,517 ERROR 2012-10-30 12:53:27,319 INFO 2012-10-30 13:41:51,839 INFO 2012-10-30 13:41:52,276 ERROR 2012-10-30 13:41:52,572 INFO 2012-10-30 13:59:44,892 ERROR 2012-10-30 14:13:27,392 INFO 2012-10-30 14:24:05,186 INFO 2012-10-30 14:24:05,732 ERROR 2012-10-30 15:33:28,900 INFO 2012-10-30 15:56:03,675 INFO 2012-10-30 15:56:04,283 ERROR 2012-10-30 15:58:44,777 ERROR 2012-10-30 16:11:10,821 ERROR 2012-10-30 16:31:33,463 ERROR 2012-10-30 16:53:26,601 INFO 2012-10-30 16:53:54,385 INFO 2012-10-30 17:17:44,431 ERROR 2012-10-30 17:21:58,509 ERROR 2012-10-30 17:22:00,225 ERROR 2012-10-30 17:22:02,019 ERROR 2012-10-30 17:55:47,427 ERROR 2012-10-30 18:13:28,686 INFO 2012-10-30 19:13:28,487 INFO 2012-10-30 19:13:29,002 ERROR 2012-10-30 19:33:26,856 INFO 2012-10-30 19:53:08,408 INFO 2012-10-30 19:53:08,985 ERROR 2012-10-30 20:53:28,005 INFO

Does this give any clues?

Thanks,

Craig

11/5/2012 9:45:28 AM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi. Since my previous post my 'clean' install of mojoPortal has continued to produce errors. The system log is showing errors, but they don't appear to be like what I'd expect having read the documentation at http://www.mojoportal.com/mojoportal-system-log.aspx. In fact, the only content that I'm getting really isn't helping much:

2012-11-03 08:34:31,820 INFO 2012-11-03 10:44:31,902 INFO 2012-11-03 10:44:32,791 ERROR 2012-11-03 11:14:01,827 INFO 2012-11-03 11:26:45,155 INFO 2012-11-03 11:26:46,029 ERROR 2012-11-03 12:34:01,681 INFO 2012-11-03 14:56:55,122 INFO 2012-11-03 14:56:56,323 ERROR 2012-11-03 15:14:08,285 INFO 2012-11-03 16:01:41,294 INFO 2012-11-03 16:01:41,949 ERROR 2012-11-03 16:34:00,807 INFO 2012-11-03 17:47:11,830 INFO 2012-11-03 17:51:18,561 ERROR 2012-11-03 17:54:01,956 INFO 2012-11-03 19:49:26,342 INFO 2012-11-03 19:49:27,465 ERROR 2012-11-03 20:14:39,286 ERROR 2012-11-03 20:34:03,116 INFO 2012-11-03 21:26:21,544 INFO 2012-11-03 21:26:22,277 ERROR 2012-11-03 21:54:03,236 INFO 2012-11-03 22:46:28,746 INFO 2012-11-03 22:46:29,511 ERROR 2012-11-03 22:52:54,178 ERROR 2012-11-03 23:14:02,372 INFO 2012-11-03 23:16:00,044 INFO 2012-11-03 23:16:00,559 ERROR 2012-11-04 00:34:02,523 INFO 2012-11-04 00:57:48,325 INFO 2012-11-04 01:07:02,613 ERROR 2012-11-04 01:11:15,225 ERROR 2012-11-04 01:54:02,861 INFO 2012-11-04 02:27:10,376 INFO 2012-11-04 02:27:11,047 ERROR 2012-11-04 02:29:58,327 ERROR 2012-11-04 02:49:39,145 ERROR 2012-11-04 02:51:05,008 ERROR 2012-11-04 03:14:03,776 INFO 2012-11-04 05:47:11,892 INFO 2012-11-04 05:54:03,937 INFO 2012-11-04 06:54:43,987 INFO 2012-11-04 06:54:44,486 ERROR 2012-11-04 07:14:02,981 INFO 2012-11-04 07:55:13,693 INFO 2012-11-04 08:34:03,209 INFO 2012-11-04 13:46:06,496 INFO 2012-11-04 13:54:04,826 INFO 2012-11-04 18:52:12,868 INFO 2012-11-04 18:52:14,163 ERROR 2012-11-04 19:14:06,443 INFO 2012-11-04 19:59:50,735 INFO 2012-11-04 20:05:13,408 ERROR 2012-11-04 20:16:52,635 ERROR 2012-11-04 20:34:07,577 INFO 2012-11-04 21:36:30,509 INFO 2012-11-04 21:36:31,102 ERROR 2012-11-04 21:54:05,606 INFO 2012-11-04 23:37:53,229 INFO 2012-11-04 23:37:53,743 ERROR 2012-11-05 00:34:03,817 INFO 2012-11-05 03:54:49,591 INFO 2012-11-05 04:34:05,065 INFO 2012-11-05 11:32:53,644 INFO 2012-11-05 11:32:54,923 ERROR 2012-11-05 11:32:56,405 ERROR 2012-11-05 11:32:56,702 INFO 2012-11-05 12:34:10,931 INFO 2012-11-05 12:57:58,574 INFO 2012-11-05 12:57:59,291 ERROR 2012-11-05 12:58:03,301 ERROR 2012-11-05 13:54:10,021 INFO 2012-11-05 14:33:04,264 INFO 2012-11-05 15:14:10,109 INFO

Does this look like the normal content of the system log? I'm wondering whether there might still be permission related problem...

Regards,

Craig

11/5/2012 10:00:07 AM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

Its not normal, I've seen that happen before but its been a while and in my previous encounter with that problem I found a configuration solution. I have no idea why it happens at your hosting though. I would try logging to the database and see if that changes anything, if not then you could try modifying the log4net.config file pattern as mentioned in my post about it.

Hope that helps,

Joe

11/5/2012 11:18:13 AM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Brilliant! Thanks Joe.

I tried changing the log4net.config settings to <conversionPattern value="%date %level %logger - %message %newline" /> as described in your link & it seems to have solved the problem!

The next line in the system log was:

11-05 16:43:58,820 INFO 2012-11-05 17:01:55,851 INFO mojoPortal.Web.Global - Application Started.

Hopefully this is the problem sorted, but if not at least I'm getting meaningful error messages!

I'll let you know how it goes after it's been running for a while.

Regards,

Craig

11/5/2012 12:29:59 PM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

OK. Now that I can see the errors OK, it seems that the problem is a googlebot searching the site & not finding a handler.ashx file:

2012-11-05 18:05:41,136 ERROR mojoPortal.Web.Global - 66.249.76.229 /Handler.ashx?PhotoID=424&Size=L&Dir=~/Albums&File=%5C21%5C424.jpg Referrer(none) useragent Googlebot-Image/1.0
System.Web.HttpException (0x80004005): The file '/Handler.ashx' does not exist.

A bit of searching has found similar issues with the mapping of various 'handler' files in the web.config, but I can't find a reference to this one. Any ideas? - I think I'm getting to the bottom of the problems!

Craig

 

 

11/5/2012 12:54:38 PM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

That is a mystery to me. It sort of looks like its from our Folder Gallery feature but it does not use "/Handler.ashx?", I don't know of any feature in mojoPortal that expects that handler, the folder gallery uses thumbnailservice.ashx but there is a file that exists for that in the root of the site. I guess you could try copying that file and rename it as Handler.ashx but as far as I know it should generate its own urls using thumbnailservice.ashx so I have no idea why googlebot is trying to crawl handler.ashx in your site unless you previously had something else installed there that used that.

Hope that helps,

Joe

12/7/2012 2:39:11 PM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

Unfortunately I seem to be having further problems with my 'stock' copy of mojoportal running on the Pipeten medium trust shared servers. The following is a message from Pipeten's support team:

[07-Dec-2012 08:41:13]

A: Hi Craig,

I'm afraid we have had to stop your site #######.co.uk as it is continuing to cause far to many problems on the shared server. It is causing IIS to crash far too frequently and is causing other customers sites to fail when it does so and engineers to be alerted to restart the web server.

I have included some of the errors just from the last hour which might highlight your issue, but if it can't be resolved you will have to look at moving it to a private server.

Regards,

Gavin

---

Gavin Kimpton

Pipe Ten Support Team

 

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/230/ROOT

Process ID: 14500

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace:    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

   at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)

   at System.Security.CodeAccessPermission.Demand()

   at System.IO.Directory.CreateDirectory(String path)

   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)

   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

 

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/230/ROOT

Process ID: 6200

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace:    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

   at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)

   at System.Security.CodeAccessPermission.Demand()

   at System.IO.Directory.CreateDirectory(String path)

   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)

   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

 

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/230/ROOT

Process ID: 8572

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace:    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

   at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)

   at System.Security.CodeAccessPermission.Demand()

   at System.IO.Directory.CreateDirectory(String path)

   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)

   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

 

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/230/ROOT

Process ID: 3820

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace:    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

   at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)

   at System.Security.CodeAccessPermission.Demand()

   at System.IO.Directory.CreateDirectory(String path)

   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)

   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

 

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/230/ROOT

Process ID: 11652

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace:    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

   at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)

   at System.Security.CodeAccessPermission.Demand()

   at System.IO.Directory.CreateDirectory(String path)

   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()

   at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)

   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Do you have any idea what might be causing this? As a reminder, the following is a summary that I sent to Pipeten to do with some of the incompatibilities of running mojoportal on their server that I have managed to overcome:

It seems that it is definitely connected to running mediaportal in the medium trust scenario, such as my account with pipeten.

I have established the following:

There is an incompatibility with the log4net logging section of mojoportal when running on pipeten. I had to amend the log4net.config settings to <conversionPattern value="%date %level %logger - %message %newline" />. This then got the system log running fine.

The web.config entry for the xmlserializer must be hardcoded to <xmlSerializer tempFilesLocation="H:\hshome\ACOUNT_NAME\DOMAIN.co.uk\Data"/> in order to prevent permission errors. (Just using "\Data" or "\App_Data\temp_files" as suggested doesn't work).

I seem to have one final error with a googlebot trying to access an old file which no longer exists. If you are able to unfreeze my account hopefully I can update my google search settings to prevent this.

I really like mojoPortal, but I can't continue with my domains being shut down & threats of having to move it to a private server... Despite having promoted mojoPortal in an online tutorial I've had no feedback from Pipeten when I asked them to try their own installation on a similar server setup. Apart from the few changes that you helped me with (as detailed above) mine is a completely stock copy of mojoPortal. My domain has been taken off-line, but I have accessed my log via ftp. The last few entries are as follows:

2012-12-07 06:49:30,582 INFO mojoPortal.Web.Global - Application Started.
2012-12-07 06:49:31,284 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2012-12-07 06:49:31,284 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2012-12-07 06:49:31,721 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2012-12-07 06:49:31,736 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2012-12-07 07:02:27,763 INFO mojoPortal.Web.Global - Application Started.
2012-12-07 07:02:28,887 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2012-12-07 07:02:29,152 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2012-12-07 07:02:29,401 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2012-12-07 07:02:29,401 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2012-12-07 07:15:30,810 INFO mojoPortal.Web.Global - Application Started.
2012-12-07 07:15:32,854 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2012-12-07 07:15:32,854 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2012-12-07 07:15:33,494 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2012-12-07 07:15:33,509 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2012-12-07 07:19:38,259 INFO mojoPortal.Web.Global - Application Started.
2012-12-07 07:19:41,410 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2012-12-07 07:19:41,410 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2012-12-07 07:19:42,502 ERROR mojoPortal.Web.PageNotFoundHttpModule - Referrer(none)  PageNotFoundHttpModule handled error.
System.Web.HttpException (0x80004005): The file '/Download.aspx' does not exist.
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-12-07 07:26:28,043 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2012-12-07 07:26:28,043 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2012-12-07 07:41:54,174 INFO mojoPortal.Web.Global - Application Started.
2012-12-07 07:41:55,328 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2012-12-07 07:41:55,344 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2012-12-07 07:41:55,812 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2012-12-07 07:41:55,827 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2012-12-07 07:54:54,366 INFO mojoPortal.Web.Global - Application Started.
2012-12-07 07:54:55,052 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2012-12-07 07:54:55,083 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2012-12-07 07:54:55,333 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2012-12-07 07:54:55,333 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2012-12-07 07:59:19,848 INFO mojoPortal.Web.Global - Application Started.
2012-12-07 07:59:20,441 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2012-12-07 07:59:20,457 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2012-12-07 07:59:21,065 ERROR mojoPortal.Web.PageNotFoundHttpModule - Referrer(none)  PageNotFoundHttpModule handled error.
System.Web.HttpException (0x80004005): The file '/Details.aspx' does not exist.
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-12-07 08:05:51,707 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2012-12-07 08:05:51,707 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread

The only errors seem to be caused by requests for pages that don't exist (possibly a 'bot' trying to reach old pages that existed prior to mojoPortal installation?).

Any help would be much appreciated.

Regards,

Craig

12/7/2012 3:14:03 PM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

The only errors I see in what you posted are file system permission errors happening when it tries to write to the search index.

Make sure the /Data/Sites/1/index folder exists and make sure it is writable by the user that is the identity on the app pool.

Also note that if you update to mojoPortal 2.3.9.4 it has a newer version of log4net which "may" help with the logging problem.

Hope that helps,

Joe

12/7/2012 3:57:38 PM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

Thanks again for the quick reply. The /Data/Sites/1/index folder does exist, but it's empty. As usual Pipeten assure me that the permissions are correct (I have no control over them...).

Regards,

Craig

12/7/2012 4:22:03 PM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

Did you move this site to hosting after populating it on another machine?

If so the mp_IndexingQueue table may have unprocessed rows with an incorrect file path that was correct in the previous environment. You could delete all rows from that table and recycle the app pool, or enable the "Rebuild Search Index" button, clicking that will purge the table and delete any existing files in the /Data/Sites/1/index folder and then try to re-index all of the site content.

Hope that helps,

Joe

12/8/2012 3:36:26 AM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

No. The site was setup on the same 'online' server that it's on now. When I initially started to have problems I even completely deleted all files from the server, deleted & re-instated the database & started again. Still the same problems.

The site has been taken off-line, so I'm unable to try anything else for the moment. I've asked the Pipeten support staff to try following their own tutorial & install their own copy of mojoPortal on the same server. Hopefully they'll come up with the same problems that I've been experiencing... I'll let you know how this progresses.

Regards,

Craig

12/8/2012 11:16:49 AM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

I'd be interested to see what is in the mp_IndexingQueue table in the IndexPath field. It should match the file system path that corresponds to the virtual path /Data/Sites/1/index

but the error detail you posted shows it is trying to create the index folder which it would only try to do if it does not exist and you say it does already exist, so something must not be right.

"at System.IO.Directory.CreateDirectory(String path)

   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()"

If all else fails one option is to disable the internal search index and just use Google or Bing for site search

<add key="DisableSearchIndex" value="true"/>

Hope that helps,

Joe

12/9/2012 9:05:32 AM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

I've heard back from Pipeten who said the following:

I have reapplied modify permissions for NETWORK SERVICE to the whole of the /Data folder for you. They were already there but I thought it would be worth another try. I'll let you know if it continues to cause a problem.

So I guess we'll see if the errors continue.

The mp_IndexingQueue table has 111 entries. All of the indexPath fields seem to be in the correct format (ie H:\hshome\ACCOUNTNAME\DOMAIN.co.uk\Data\Sites\1\index\, H:\hshome\ACCOUNTNAME\DOMAIN.co.uk\Data\Sites\2\index\ & H:\hshome\ACCOUNTNAME\DOMAIN.co.uk\Data\Sites\3\index\ ).

I'm away from home now for the next few days, so I'll wait to see if the permissions change helps at all before resorting to the <add key="DisableSearchIndex" value="true"/>.

Thanks,

Craig

 

12/19/2012 6:48:26 AM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

Just a quick update. Unfortunately my installation continued to generate errors, so I tried disabling search indexing using <add key="DisableSearchIndex" value="true"/>. This seems to have stopped the errors.

I thought I'd try to see if there was a problem with writing files dynmically to the webserver, so I made a basic test page with a couple of buttons that would attempt to write a text file to the root directory & also the index directory. The code behind is as follows:

Partial Class AddTextFile
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim FILE_NAME As String = "H:\hshome\USER_NAME\DOMAIN_NAME.co.uk\testfile.txt"

        Dim objWriter As New System.IO.StreamWriter(FILE_NAME, True)

        objWriter.WriteLine("test text")

        objWriter.Close()

    End Sub

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim FILE_NAME As String = "H:\hshome\USER_NAME\DOMAIN_NAME.co.uk\Data\Sites\1\index\testfile.txt"

        Dim objWriter As New System.IO.StreamWriter(FILE_NAME, True)

        objWriter.WriteLine("test text")

        objWriter.Close()

    End Sub
End Class

This worked fine, & when I click either button the respective text file is generated in the correct place. There are no other files within the index folder. Any ideas why the SearchIndex would be unable to write to the index folder (generating file permission errors) and yet dynamically writing from an aspx page does not?

Regards,

Craig

 

 

12/19/2012 8:43:34 AM
Gravatar
Total Posts 18439

Re: Fresh Installation causing server errors.

It seems that the index writer task is trying to create the folder which it would only do if it does not think it exists already. Since you say it does already exist then something must be wrong about the path in the table. So again it gets back to what is the index path in the mp_IndexingQueue table and is it correct. For example if you connect to your database from a copy of the site on your local machine and you edit content then it would create rows in that table with the wrong path and it would cause this error. It seems there must be an incorrect path in at least one row in that table so it is trying to create a folder in an incorrect location on the server that either doesn't exist or it cannot write to.

12/20/2012 7:01:33 AM
Gravatar
Total Posts 40

Re: Fresh Installation causing server errors.

Hi Joe,

I checked the entries in the mp_IndexingQueue table again & they all seemed to be OK! Despite this I manually deleted them (there were over 130) & turned "DisableSearchIndex" back to false (By the way I tried enabling the <add key="ShowRebuildSearchIndexButtonToAdmins" value="true", but I couldn't find the button to rebuild the search index - where does it appear?).

Anyway, after re-enabling the Search Index I checked the mp_IndexingQueue table again & it's just showing nulls... and all of the \sites\(sitenumber)\index\ folders are now having files written to them! I guess that there must have been a problem with one of the entries (even though I couldn't spot it).

As before, I'll let it run for a while & see if the errors have stopped. Thank you very much agin for your help, it's much appreciated.

Regards,

Craig

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