We have written a console application to upload images in bulk (file system) and eventhough we changed the config file we get this error. The size of the image we are trying to upload is 6MB (each).
I can upload the image through the administrator part of NopCommerce after making changes to web.config file. However not with the application we developed.
I appreciate any help to resolve this error.
Thanks in advance.
Ppushpala and me are developing a console application bulk image upload function together. We have attempted to apply the maxRequestLength parameter in the app.config file of our console application. Our console application uses the webservices API (Nop.Plugin.Misc.WebServices) to call the pictureservice functions in nop. The console application contains an app.config and a web.config file (which I believe was generated when building app from the webservices). The web.config file contained a defined binding name "HttpBigMessage" which I have attempted to reference in my app.config (as shown below). We have not modified the Nop.web web.config. However, after building my nopCommerce install and the console app with the modified .config files it is still failing to allow me to upload large files (2 - 6 MB) as needed. Any advise would be greatly appreciated.
<?xml version="1.0" encoding="utf-8" ?>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
<binding name="HttpBigMessage" receiveTimeout="05:10:00"
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
contract="INopService" name="HttpBigMessage" />
<httpRuntime targetFramework="4.5" maxRequestLength="2147483647"/>
Again, thanks in advance.
wooncherk, thank you for your suggestions. I modified the IIS configuration as the article you reference suggested however I am still receiving the 413 error. As the article link below suggests I believe the problem is not with the IIS settings but the WCF tranmission settings. I don't believe this is an IIS issue because I successfully modified the administration interface's web.config to allow large image uploads through the built in product add function. I believe the .config file utilized by the WCF functions needs to modified. However I am not sure what .config file's settings is being accessed when I am utilizing the API functions of the web services plugin. If anyone can specify which .config I need to modify in order to allow the large image uploads for the web services plugin, I think I can rectify this error. Of course if anyone can specify the settings that are needed to be modified I would appreciate the details.
Thanks again in advance,
I would greatly appreciate if anyone can specify which .config I need to modify the setting of in order to allow large image uploads for the web services (API) plugin. Or can anyone describe how I may trace which config file is controlling the settings of the web services (API) plugin? We are using nopCommerce 3.0. I am really stumped and frustrated with the 413 error I am receiving when attempting to upload large images utilizing the web services API console application we developed.
Thanks in advance,
I just found solution and make it working. I am using NopCommerce 3.40 and only changed one thing in plugin/remote/web.config
I need to set "2147483647" to basicHTTPBinding Node where it has maxReceivedMessageSize = 65536. Please see updated changes in web.config file for service plugin.
We don't need to change anything apart from that. I am using IIS 8.5
<security mode="None" />
Do you know the location of web.config I have to modify for the nop version 22.214.171.124