|
For posterity, I'm including my findings here -- I believe it to be a bug with .NET, and have submitted as such to connect here:
Microsoft Connect[^]
It appears to stem from the way encoded headers are wrapped. if the filename length exceeds a certain number of bytes when encoded, the system double-encodes the filename for some reason... Odd...
Hope they fix it... if anyone can please test the sample code I uploaded to Microsoft and verify it fails, I would greatly appreciate the help.
=================================================
Update: We worked around the issue by zipping the file using ASCII characters. It has been patched in a .NET 4 Framework Hotfix available here:
Microsoft Connect Download[^]
=============================
I'm a developer, he's a developer, she's a developer, Wouldn't ya like to be a developer too?
modified 21-Feb-12 15:12pm.
|
|
|
|
|
hi, I'm sending text+numbers from a wcf client to a wcf server in a multidimensional array. The data arrives but if I'm sending eg. "4 Drinks" it arrives as "1 Drinks" (what ever the number is, it arrives as 1) This happens frequently and sometimes it arrives without any change.
I tried a special class instead of array but it's the same. So I think WCF has a problem.
The question is:
-Do I need to use message security to solve it? Or your recommendation?
- if yes, does mes.security have bad impact on performance?
Thanks for reading, would appreciate if answered
|
|
|
|
|
teknolog123 wrote: I tried a special class instead of array but it's the same. So I think WCF has a problem.
Doubtful.
I suggest that you look at your code - at both ends - and see what is happening. I seriously doubt that a bug that severe would still be unnoticed (let alone unfixed) after this long.
Without the relevant code fragments, we can really do no more...
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
3 out of 4 drinks disappearing? on a Friday? is he using a British carrier? Have the regular "so long suckers" messages popped up in the Lounge yet?
|
|
|
|
|
I'll have you know Nagy is Hungarian!
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
sounds like a loose network conntection... check the floor behind the computer and I bet you will spilled drinks all over the place.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
|
Use a tool like Fiddler to look at the web service request and response.
It should give you a fair idea where your problem lies.
|
|
|
|
|
How to make the program do not minimized at all minimized windows?
|
|
|
|
|
There are two ways:
1)from the main form's property window MinimizeBox to set the property false
2)on load event of the main form put these two lines of code:
this.WindowState = FormWindowState.Maximized;
this.MinimizeBox = false;
Regards
Qendro
|
|
|
|
|
If Ctrl + Win, (minimize all windows)?
|
|
|
|
|
That's used to show the desktop; it'd be very frustrating for a user if he/she can't reach their desktop. There's also a minor difference[^] between "Minimize All" (Win-L) and "Show Desktop" (Win-D).
Bastard Programmer from Hell
|
|
|
|
|
I totally agree with You my friend...I also think that is very frustrating for the user to prevent from "Show Desktop" feature...
Qendro
|
|
|
|
|
Eddy Vluggen wrote:"Minimize All" (Win-L) Interesting: on my Win 7 Pro machine, Win-L switches me to the log-in screen where I could, potentially, switch users, and where I have to click on my current user icon to return to "normal use" mode.
best, Bill
"Last year I went fishing with Salvador Dali. He was using a dotted
line. He caught every other fish." Steven Wright
|
|
|
|
|
BillWoodruff wrote: Interesting: on my Win 7 Pro machine, Win-L switches me to the log-in screen where I could, potentially, switch users, and where I have to click on my current user icon to return to "normal use" mode.
Not interesting, merely a typo. Win-M does a minimize all, Win-D shows the desktop.
Bastard Programmer from Hell
|
|
|
|
|
Eddy Vluggen wrote: merely a typo My faith in you remains unshaken !
Win-Shift-M will restore all the Windows minimized by Win-M.
And a second Win-D will also restore.
All of which I gleaned from the excellent link you provided, thanks.
best, Bill
"Last year I went fishing with Salvador Dali. He was using a dotted
line. He caught every other fish." Steven Wright
|
|
|
|
|
Hehe, thanks
|
|
|
|
|
Google Result[^]
Here is a google search result, I saw there are few solutions.
I Love T-SQL
"VB.NET is developed with C#.NET"
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
That would be user-hostile; don't do it.
|
|
|
|
|
I have not folded to my program
|
|
|
|
|
Hello,
I need to create a custom shaped button which looks like a forward arrow. Three or four of such buttons are to be placed next to each other in such a way that the tip of the first button is just near the tail of the next button
I have made a style for the button using polygon in .xaml & assigned this style to the button. Now, if i add this button to a form, i can see this button in the desired style.
But, still the button has the rectangular shape, which is not visible as the borders & remaining area are transparent. So, the button occupies a rectangular area on the form irrespective of the style which i created.
Because of this, i cannot keep the forward shaped butons next to each other, as close as desired. Here, for the tip of one forward button to come near the tail of the next button, the rectangular area of the buttons must overlap, which is not correct.
Is there any way to remove the rectangular area of the button & make it exactly to occupy the desired shape as specified by the style.
The .xaml file for my code is given below
<Window x:Class="Styles.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="150" Width="525">
<Window.Resources>
<Style x:Key="Poly1" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Polygon Fill="{TemplateBinding Background}" Points="10,10 80,10 120,45 80,75 10,75 45,45" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="2"/>
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="True"/>
<Trigger Property="IsDefaulted" Value="True"/>
<Trigger Property="IsMouseOver" Value="True"/>
<Trigger Property="IsPressed" Value="True"/>
<Trigger Property="IsEnabled" Value="False"/>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<WrapPanel>
<Button Style="{DynamicResource Poly1}"></Button>
<Button Style="{DynamicResource Poly1}"></Button>
</WrapPanel>
</Window>
Best Regards,
Abhilash
|
|
|
|
|
Don't post this is in both the forums and Q&A - pick one and stick with it.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
Using a Path object, you can make your button look like exactly what you want to to be.
See here[^] for more information.
|
|
|
|
|
Hello Abhinav,
Thanks for the reply. If you noticed my query, i am already making some custom shaped button. The actual requirement is about alignment of the controls, close to each other.
Any control in .NET has a rectangular shape. We can see a rectangular shape around any control while adding to the UI. My question is regarding avoiding this rectangular shape.
This alignment can be done by adding 2 of such buttons in a canvas or a single cell in a datagrid, by making the controls ovelapping each other (not the graphical area, only the transparent rectangular part of the control). But, if i need to add them in such a way in stack panel or any other container which adds controls next to each other, the second control is added only after the transparent rectangular part of the control.
So, i am lloking for an option to change the underlying rectangular layout, whcih is not visible at run time. Is there any way to achieve this?
Best Regards,
Abhilash
|
|
|
|
|
Generally our grid is like
ID Name
1 Adit
2 Prerak
3 Shyam
but i want to display this like below
ID 1 2 3
Name Adit Prerak Shyam
So which control i use,gridview,DataList,listview,... (In web form)
and any link for this type of example
|
|
|
|