Rule of thumb and config files
-
Started looking at WCF recently - I have a rule of thumb which states "if you have to mess around with config files to get a software system running then look for a different software system". Unfortunately I had forgtten about that - which is why I started to look at WCF. I think now I will look elsewhere - 6 hours today of messing about with config files, all to no avail.
-
Started looking at WCF recently - I have a rule of thumb which states "if you have to mess around with config files to get a software system running then look for a different software system". Unfortunately I had forgtten about that - which is why I started to look at WCF. I think now I will look elsewhere - 6 hours today of messing about with config files, all to no avail.
Everything you can do via configuration can also be hard coded into you application. Except why would somebody want to hard code it, if can be configured? ;P Have you already posted an interesting well framed question in one of the forums or the Q&A? I've been busy today, so I've not been hanging out on CP much. Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
-
Everything you can do via configuration can also be hard coded into you application. Except why would somebody want to hard code it, if can be configured? ;P Have you already posted an interesting well framed question in one of the forums or the Q&A? I've been busy today, so I've not been hanging out on CP much. Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
I did start to post an interesting well framed question but decided to have a rant instead :) I have spent all day looking at the various solutions to the problem I am having: The remote server returned an unexpected response: (413) Request Entity Too Large but I can't get any of them to work.
-
I did start to post an interesting well framed question but decided to have a rant instead :) I have spent all day looking at the various solutions to the problem I am having: The remote server returned an unexpected response: (413) Request Entity Too Large but I can't get any of them to work.
RugbyLeague wrote:
but decided to have a rant instead
That's way more amusing anyhow, than answering questions or having a technical discussion. :D
RugbyLeague wrote:
The remote server returned an unexpected response: (413) Request Entity Too Large
That looks frighteningly familiar. It's been a while though, it must have been around October 2010 when we were pushing out a POC for a customer. Hmmmmm, ... Let me poke around for a bit in that mushy mess that is my brain (hey it's almost weekend). May be something useful will pop up. Regards,
— Manfred
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
-
RugbyLeague wrote:
but decided to have a rant instead
That's way more amusing anyhow, than answering questions or having a technical discussion. :D
RugbyLeague wrote:
The remote server returned an unexpected response: (413) Request Entity Too Large
That looks frighteningly familiar. It's been a while though, it must have been around October 2010 when we were pushing out a POC for a customer. Hmmmmm, ... Let me poke around for a bit in that mushy mess that is my brain (hey it's almost weekend). May be something useful will pop up. Regards,
— Manfred
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
I have been poking around all day - hence the rant - but thanks, any help would be much appreciated. If I had framed a question early on I might have gotten somewhere but after messing about all day with it any question I could have framed would have dripped with bile
-
Started looking at WCF recently - I have a rule of thumb which states "if you have to mess around with config files to get a software system running then look for a different software system". Unfortunately I had forgtten about that - which is why I started to look at WCF. I think now I will look elsewhere - 6 hours today of messing about with config files, all to no avail.
RugbyLeague wrote:
"if you have to mess around with config files to get a software system running then look for a different software system".
Please explain; without argumentation the statement feels as if you're dismissing things merely based on complexity. Only game-consoles need not be configured.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
I have been poking around all day - hence the rant - but thanks, any help would be much appreciated. If I had framed a question early on I might have gotten somewhere but after messing about all day with it any question I could have framed would have dripped with bile
You're just sending more info than the runtime is allowed to accept, to increase the maximum, look here: Property: http://msdn.microsoft.com/en-us/library/system.servicemodel.basichttpbinding.readerquotas%28v=vs.100%29.aspx[^] Config Element: http://msdn.microsoft.com/en-us/library/ms731325%28v=vs.110%29.aspx[^] You might also want to set the maxRequestLength: <httpRuntime maxRequestLength="1610612736"/> (that's set to 1GB) Edit: You can also use the WCF Configuration editor to have a nice interface to edit the configs, you don't need to edit WCF configs by hand (not such luck for ASP.NET configs :( )
-
Started looking at WCF recently - I have a rule of thumb which states "if you have to mess around with config files to get a software system running then look for a different software system". Unfortunately I had forgtten about that - which is why I started to look at WCF. I think now I will look elsewhere - 6 hours today of messing about with config files, all to no avail.
The problem there is that you're not configuring your application; you're configuring IIS. I always host WCF in my own Window services and avoid that pile of nastiness. And I write my own configuration files; I don't do it Microsoft's way.
-
RugbyLeague wrote:
"if you have to mess around with config files to get a software system running then look for a different software system".
Please explain; without argumentation the statement feels as if you're dismissing things merely based on complexity. Only game-consoles need not be configured.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
Eddy Vluggen wrote:
Only game-consoles need not be configured
That's true of my old NES; but not true on my Xbox and Wii.
-
You're just sending more info than the runtime is allowed to accept, to increase the maximum, look here: Property: http://msdn.microsoft.com/en-us/library/system.servicemodel.basichttpbinding.readerquotas%28v=vs.100%29.aspx[^] Config Element: http://msdn.microsoft.com/en-us/library/ms731325%28v=vs.110%29.aspx[^] You might also want to set the maxRequestLength: <httpRuntime maxRequestLength="1610612736"/> (that's set to 1GB) Edit: You can also use the WCF Configuration editor to have a nice interface to edit the configs, you don't need to edit WCF configs by hand (not such luck for ASP.NET configs :( )
I have tried all that to no avail