[Help] Iis / asp net / api error

Results 1 to 5 of 5
  1. #1
    Member awerakz is offline
    MemberRank
    Oct 2013 Join Date
    71Posts

    [Help] Iis / asp net / api error

    Hey, I installed my IIS new but my api threws an error:

    Server Error in '/api' Application.


    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 occurred during the execution of the current web request. Please review the stack trace for 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) +100
    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) +12687936
    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) +12881540
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12722601


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
    I converted the api allready in a program but it dont works :/
    Last edited by DNC; 19-06-14 at 01:13 AM.


  2. #2
    Sorcerer Supreme fpskiller is offline
    Member +Rank
    Oct 2013 Join Date
    englandLocation
    416Posts

    Re: Iis / asp net / api error

    check your iis to this post as it has everything how to setup the iis and php as it looks like to me that your iis is not setup right as its saying about your Headers
    did you set .php in the MIME Types?

    http://forum.ragezone.com/f791/tutor...ft-iis-926957/

  3. #3
    Member awerakz is offline
    MemberRank
    Oct 2013 Join Date
    71Posts

    Re: [Help] Iis / asp net / api error

    Okay, I installed the complete server new and now works :)

  4. #4
    Sorcerer Supreme fpskiller is offline
    Member +Rank
    Oct 2013 Join Date
    englandLocation
    416Posts

    Re: [Help] Iis / asp net / api error

    Quote Originally Posted by awerakz View Post
    Okay, I installed the complete server new and now works :)
    good news :)

  5. #5
    ¿ aLca is offline
    Grand MasterRank
    Apr 2013 Join Date
    /dev/nullLocation
    549Posts

    Re: [Help] Iis / asp net / api error

    "Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929" Has to be Version 2.0.



Advertisement