Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts

Friday, November 25, 2011

SoapException: Server was unable to process request. Access denied

Server was unable to process request. Access denied


System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Access to the path 'E:\XYZ\' is denied.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path)
  
   --- End of inner exception stack trace ---

Soln:

I recently had a problem that sounds similar. I had a program which was
trying to access "C:\XYZPath\", and got an access denied error.

This was because it only had the path, but no filename. It was, in effect,
trying to access the folder as though it were a file. This was just a matter
of a bad exception thrown by .NET. The real exception was that I was missing
the file name.

Wednesday, September 14, 2011

HTTP Error 404.17


HTTP Error 404.17 - Not Found

The requested content appears to be script and will not be served by the static file handler


If we install VS2010 before installing IIS 7, then the handlers for WCF, etc were not been installed.


Open command prompt and navigate to 


C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation and execute "servicemodelreg -i" to install them manually.

Thursday, August 25, 2011

WCF The maximum message size quota for incoming messages (65536) has been exceeded


Need to change the below settings in client configuration.
Increase the size for maxReceivedMessageSize, maxBufferSize, maxBufferPoolSize, maxArrayLength, maxStringContentLength in Web.Config
<bindings>
    <basicHttpBinding>
        <binding name="basicHttp" allowCookies="true" maxReceivedMessageSize="20000000" maxBufferSize="20000000" maxBufferPoolSize="20000000">
            <readerQuotas maxDepth="32" maxArrayLength="200000000" maxStringContentLength="200000000"/>
        </binding>
    </basicHttpBinding>
</bindings>