Installation errors


https://forum.kartris.com/Topic3608.aspx
Print Topic | Close Window

By John_S - Thu 12 Feb 2015

I have installed Kartris on my Windows 7 PC along with IIS 7.5, following the instructions in the user guide for manual install on IIS 7.5. When I navigated to localhost/mysite I received this error.

Runtime Error

Description: An exception occurred while processing your request.Additionally, another exception occurred while executing the custom error pagefor the first exception. The request has been terminated.

I changed web.config customErrors to <customErrors mode="RemoteOnly"/> to get more details, and now localhost/mysite gives this error. What can I do to correct this?

Could not load type 'System.ServiceModel.Activation.HttpModule'from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089'.

Description:An unhandled exception occurredduring the execution of the current web request. Please review the stack tracefor more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Could not load type'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel,Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

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:

[TypeLoadException: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]

System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0

System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +153

System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +63

System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +124

System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +76

[ConfigurationErrorsException: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]

System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +12786736

System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +69

System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +66

System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +300

System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1262

System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +133

System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304

System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404

System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12979668

System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12819261


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NETVersion:4.0.30319.34237

By Mart - Thu 12 Feb 2015
Do you have asp.net 4.5 installed? Its a requirement

http://userguide.kartris.com/Default.aspx?headID=21

looked from the bottom of your post that you only have 4.0?
By John_S - Thu 12 Feb 2015
I have the .net framework 4.5 installed. Not sure what you mean by "asp.net 4.5". Isn't it part of the framework?
By John_S - Fri 13 Feb 2015
Even though I have 4.5.1 installed, I went ahead and downloaded and installed 4.5.2. That corrected the problems reported above. Now I get the following. I am using the 4.0 app pool since 4.5 was not available when I installed. The user guide says I can choose 4.0 or 4.5 so hopefully that is not the problem?

By Paul - Fri 13 Feb 2015
This error suggests wrong permissions on the database. Ensure the IIS Apppool user for this web is set up as a DB user, and for the kartris db is set to role db admin.

http://userguide.kartris.com/Default.aspx?headID=49

see step 5, 6 and 7
By John_S - Fri 13 Feb 2015
For some reason the connection string in IIS was not setup - it had server as SERVERNAME, database as DATABASENAME, etc. I corrected that and now it appears to be working. Thank you to all who helped.