locked
WCFDataService Firefox/Chrome error RRS feed

  • Question

  • When calling our WCFDataService from firefox or chrome we are getting a missing file error that does not happen in IE.

    The error is as follows and the call to the error is at the bottom.

    (I tried to format it but MSDN is acting weird today.)

    [FileNotFoundException: Could not load file or assembly 'App_Web_k0ezqwsd, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.]
       System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
       System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +567
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +192
       System.Reflection.Assembly.Load(String assemblyString) +35
       System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +255
       System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1413
       System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +50
       System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +1172

      

    [ServiceActivationException: The service '/ItDataServices.svc' cannot be activated due to an exception during compilation.  The exception message is: Could not load file or assembly 'App_Web_k0ezqwsd, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified..]
       System.Runtime.AsyncResult.End(IAsyncResult result) +901424
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +178702
       System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +107

    The code to call the method is as follows           

    _entities.BeginExecute< LoginResult>(new Uri(String.Format("GetUserLogin?username='{0}'&password='{1}'&release='{2}'&pcName='{3}'&macAddress='{4}'&ipAddress='{5}'&isNoc={6} ", CurrentUser.UserName, CurrentUser.Password, release, pcName, macAddress, ipAddress, 0), UriKind.Relative), result => GetUserLoginCallback(result), _entities, ODataConstants.MethodGet, false);

    Monday, June 17, 2013 4:12 PM

Answers

  • Caused by a # sign in the password, IE takes care of this but Firefox and Chrome need it encoded
    • Marked as answer by BubbaRichard Monday, June 17, 2013 6:28 PM
    Monday, June 17, 2013 6:28 PM

All replies

  • Caused by a # sign in the password, IE takes care of this but Firefox and Chrome need it encoded
    • Marked as answer by BubbaRichard Monday, June 17, 2013 6:28 PM
    Monday, June 17, 2013 6:28 PM
  • Hi BubbaRichard,

    I'm glad to hear that you have figured out the problem.

    Thanks for sharing your answer here.

    Have a nice day!

    Best regards,


    Chester Hong
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, June 19, 2013 2:25 AM
    Moderator