I have a SharePoint 2013 on premise. I created a new virtual directory under the SharePoint web in IIS. I published a webservice into the new virtual directory. When accessing the .asmx it says

The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators.

Can anyone please explain me how to create a seperate virtual directory for my webservice to host under SharePoint IIS?

1 Answer 1


Try to go to Central administration->Security->Define blocked file types->remove “asmx” file name extension from the list of blocked file types and check again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.