Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 26, 2012 05:58 AM by Tirumalesh
Jan 06, 2012 05:00 AM|LINK
when i run my service it returns:
I have a website,in that i have normal wcf and i added a default.aspx to access the service.the service run perfectly for few times then it returns the above error in browser.Even then if i access the service form default.aspx it says:
"The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error."
I googled for the error returned in the default.aspx but the solutions didn't help me.
I googled for the the above "could not load assembly" error but no results found.
here the stack trace:
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
[FileNotFoundException: Could not load file or assembly 'App_Web_qfmt3vov, 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.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
System.Reflection.Assembly.Load(String assemblyString) +28
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri baseAddresses) +208
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1440
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +615
[ServiceActivationException: The service '/ShortagesNet/Service.svc' cannot be activated due to an exception during compilation. The exception message is: Could not load file or assembly 'App_Web_qfmt3vov, 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) +679246
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, String routeServiceVirtualPath, Boolean flowContext, Boolean ensureWFService) +234
System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +355
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Thanks in advance.
Jan 06, 2012 05:17 AM|LINK
Do you have any such DLL in use , if not find out and remove all the references from web.config and reference box etc.., delete the client's system.service model i.e. wcf settings from the config file and regenerate the service reference which will add proper
configuration agiain in client's config file.
Jan 06, 2012 05:50 AM|LINK
I dind't find DLL.But even if i remove the service and add it again,i says "server returns bad response".and if i run the service it also saya as above counld not load assembly.
Jan 09, 2012 04:36 AM|LINK
Give solution for my thread.
Jan 09, 2012 06:20 AM|LINK
As the error information mentioned, you need to refer the App_Web_qfmt3vov assembly and make sure adding this assembly in your /bin folder.
Jan 09, 2012 06:50 AM|LINK
Here the problem is that, i did not find any assembly or dll exists with name 'App_Web_qfmt3vov'.So how to resolve this?.
When ever i get this error, i'm creating a new service and running it everytime,this is hard...
Jan 09, 2012 12:24 PM|LINK
right click on your solution select clean solution , now do a rebuild , re-add the references after cleaning them from the client config files and try again.
Jan 09, 2012 01:32 PM|LINK
if i re-add the reference it runs well.But everytime when we get this error cleaning and re-adding the reference is pretty hard in server.
we need to resolve this completely.
Jan 09, 2012 04:31 PM|LINK
But why it'll happen everytime? do it once and do a publish from your VS to some local folder , you can then copy those folder contents to any server without any rebuild.
Jan 11, 2012 02:08 PM|LINK
This is old ASP.NET issue, sometimes it messing up with files in temporary folder and tries to load something that isnt there. I havent seen any update to fix this, the only cure is to clear ASP.NET temporary files folder (or as mentioned before - clean-rebuild-deploy
which force ASP.NET to recreate shadow copies of your DLLs or something like that).