|
Nope, didn't help...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
From whatever I have read so far, there are two reasons apart from the one in the link I had posted which can cause this:
1. Out of date service reference.
2. Long messages in response.
But most of the posts related to this have remained unanswered. Since I have never faced it, I am not sure. Just check if the references are fine and messages aren't larger than the default size.
BTW, how about .Net source debugging, it might tell what exactly is wrong.
|
|
|
|
|
I can double-check the reference thing, but:
0) The same app/service combination works on my dev box
1) I'm pretty positive that the DLL itself hasn't changed because I've only been monkeying with the web config to get it to even be browsable.
... but I'll double check anyway.
The response I'm expecting (a string) is less that 150 characters. Even if it was larger, maxReceivedMessageSize="2147483647" , and maxBufferSize="2147483647"
I thiink it's a configuration problem. This is a https situation.
I found one guy that said he moved to silverlight/dotNet 4, and all his problems magically went away. Unfortunately, that's not an option for me.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: I found one guy that said he moved to silverlight/dotNet 4, and all his problems magically went away. Unfortunately, that's not an option for me.
Yes. I read that too.
Since I do not know anything about Silverlight, I cannot use your configuration to try and find what's wrong. I guess MS tech support is the last resort if nothing goes right.
|
|
|
|
|
I managed to retrieve the inner exception, and posted it as a reply to Pete's last comment.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Were you able to resolve the problem? How do you solved it?
|
|
|
|
|
Hy,
I am completely new to silverlights.I just installed silverlights 1.1 in my system as i have vs 2008 beta version .After that i craeted a silverlight project
but the design partof xaml file gae me an error .as it said that the following reference swere not present
agclr,system.silverlight,system.xml.core
Also,Can any one tell me wether vs 2008 would support silverlight 3.0
Please Help
|
|
|
|
|
As per this[^] link, this release does not work with the 1.1 editions.
"Note: This release will not work with the Visual Studio 2008 Express editions."
My signature "sucks" today
|
|
|
|
|
Hi,
I'm experiencing anoying problems in my app (app utilizes Prism modular architecture). I have main app with several modules. Main app has it's own resx file and each module has it's own resx file. For instance, module Calculation has it's own default resx file Calculation.resx (strings in English) and two localized resource files Calculation.es-ES.resx (for Spanish) and Calculation.hr-HR.resx (for Croatian). When I set CultureInfoUI to "es-ES" all strings defined in MainApp.resx are in Spanish as expected but strings defined in modules are in default language.
I must add that modules related dlls are in \Modules directory. In XAML I'm using resources as static (in main app and in modules):
<GridViewColumn Width="130" Header="{x:Static View:CalculationResources.Active}" DisplayMemberBinding="{Binding IsActive}" CellTemplate="{StaticResource GridViewCellTemplate}">
I know I wont be able to change language on the fly (because of x:Static) but that's not necessary. At least for now
How do I make my modules localized???
P.S. Since I have both, main app and modules, in same solution I tried to reference modules projects in main app and then everything worked fine. Of course, this breaks whole meaning of modularity...
|
|
|
|
|
I don't have my IDE up and running at the moment, but I seem to remember at the form level there is a localized property.
Setting that to true places all strings in a resource file for your localization of [default].
After that you have the fun job of translating all resulting strings in the file for every language you support and saving it in that localized version. This[^] will give you more detail.
|
|
|
|
|
Hi Expert,
On editing the cell data in WPF datagrid, the data text to be converted in uppercase or lowercase. So in which event this can be done. Could anyone help me out with sample code.
Thanks in advance
Kartheesh
|
|
|
|
|
Sounds like you need a ValueConverter object. Google is your friend.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
thanks for the reply, but i couldn't find relevant solution to meet my requirments using valueconvertor, appreciate if anybody can share relevant links or sample code to rectify the issue on WPF datagrid. same i have implemented in windows form with the help of Editingcontrolshowing event, find below code which is working in windows form datagridview:
windows Form datagridView:
--------------------------
protected override void OnEditingControlShowing(DataGridViewEditingControlShowingEventArgs e)
{
if (e.Control is TextBox)
{
((TextBox)e.Control).CharacterCasing = CharacterCasing.Lower;
}
}
is there any equivalent event which can be used in WPF datagrid, to meet my requirements.
Thanks in advance
Kartheesh M
|
|
|
|
|
There are many ways you can accomplish this. One way to consider would be to use a DependencyProperty and handle the appropriate methods. I've blogged a quick way to do this here[^].
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
If I get this question answered, a lot of gaps in my understanding of Websites are going to be filled in, so hopefully someone will give me the answer.
I have a WCF-based Web service for my Silverlight Website application and the Web service DLL is located in /bin off of the root of the Website. It has many services correctly accessing a SQL Server database and sending email to the client, so I know that it is set up correctly.
Now, I have a bunch of JPEG files in /bin/ClientBin/SplashScreenPhotos. I would like to add another service that returns an ObservableCollection<string> of JPEG file names (just the file names, not the whole path) to my Silverlight application. Once the application has that, it knows how to display those JPEG files, because it's doing it now with a list of file names hard-coded in the Silverlight application (hard-coding things is bad).
My idea is to create a service that would look like this to populate the ObservableCollection :
[OperationContract]
public bool GetList(out ObservableCollection<string> list)
{
list = new ObservableCollection<string>();
string folder = ???;
string[] files = Directory.GetFiles(folder, "*.jpg");
foreach (string path in files)
{
string fileOnly = System.IO.Path.GetFileName(path);
list.Add(fileOnly);
}
return true;
}
My question thus is, what do I substitute for the ??? This is basically a question of how the service navigates through the Website file system. I've been fooling with this for hours without getting anywhere. Using paths like /bin/ClientBin/SplashScreenPhotos does not work. I'm thinking that I'm probably off-base in using the .NET Directory class to begin with, but I don't know what I should be using.
[WORKAROUND added 2010-06-07]: I solved my problem through a fairly simple workaround. Instead of my service accessing my Website's file system directly (for all I know, something that is impossible), I used the FtpWebRequest class to do the job for me. The WebRequest.Method was WebRequestMethods.Ftp.ListDirectory , which returns a WebResponse object, from which you can create a StreamReader initialized with WebResponse.GetResponseStream() . I implemented the whole thing needed by the Web service through the following function, which the service calls:
ObservableCollection<string> GetFileNamesFromFtpDirectory(string remotePath)
{
var result = new ObservableCollection<string>();
Uri uri = new Uri(remotePath);
WebRequest ftp = FtpWebRequest.Create(uri) as FtpWebRequest;
ftp.Credentials = new NetworkCredential("xxxx", "yyyy");
ftp.Method = WebRequestMethods.Ftp.ListDirectory;
WebResponse response = null;
try
{
response = ftp.GetResponse();
}
catch (Exception e)
{
string error = e.Message;
return null;
}
using (StreamReader reader = new StreamReader(response.GetResponseStream()))
{
string line = reader.ReadLine();
while (line != null)
{
result.Add(line);
line = reader.ReadLine();
}
}
return result;
}
"xxxx" and "yyyy" are top secret strings that provide my Website credentials. The remotePath input to the function is something like this:
"ftp://www.website.com/ClientBin/SplashScreenPhotos"
modified on Monday, June 7, 2010 4:29 PM
|
|
|
|
|
Well, it doesn't look as if anyone is interested in answering this question, or, incredibly, that no one monitoring this forum even knows what the answer is. Actually, it seems as if this is about as basic a Website question as a person could possibly ask, so maybe this is just the wrong forum: its answer may be so obvious to any Website developer worth his salt that he would have contempt for anyone who would even ask such a question.
On the other hand, I've noticed very light activity on this Silverlight forum, indicating that there just aren't that many people out there yet doing serious work on this technology. So the only thing I can personally recommend to solve this problem is a workaround.
|
|
|
|
|
I have 3 projects in my app, plus main project used for navigation.
I use the navigation service to move around but there is that incessant clicking sound.
Can anyone offer me insight how in my code I can remove the clicking sound? Examples would be appreciated. Thanks in advance.
|
|
|
|
|
Good day,
I wan't to ask something that is obvious to do in VS 2005 and VS 2008 (WPF), but for some reason, I am struggling my but of in VS 2010 (WPF).
I want to dynamically load items into a ListBox, but for some reason it does not want to show up in the ListBox, they are there (I perform a count on the ListBox, and it shows the expected number).
Here is how I do it:
First of, I add an item like this: this.lstItems.Items.Add(OtherStackPanel(temp));, where OtherStackPanel is a function that returns a populated stackpanel, with the following items:
1 x Label, 1 x TextBox, 1 x ComboBox, 3 x Seperator, 1 x Slider, which look as follows
__________________________________________________________________________
| | | | | | | |
|ComboBox | Seperator | Label | Seperator | TextBox | Seperator | Slider |
|__________|___________|_______|___________|_________|___________|________|
This would then be added to the ListBox, all the items in the StackPanel are set to be visible, and they have a parent since they are added to the StackPanel.
After I have added the StackPanel, I call the LayoutUpdated event of the ListBox, to make sure that they are contained in the ListBox, but I also add two addisional items from within this eventhandler, as follows:
private void listBox1_LayoutUpdated(object sender, EventArgs e)
{
if (sender != null)
{
ListBoxItem l = new ListBoxItem();
l.Content = "S";
ListBoxItem n = new ListBoxItem();
n.Content = "A";
((ListBox)sender).Items.Add(l);
this.lstItems.Items.Add(n);
MessageBox.Show(((ListBox)sender).Name);
MessageBox.Show(Convert.ToString(((ListBox)sender).Items.Count));
}
}
((ListBox)sender).Name returns ListBox, which is correct, since the item passed to this event is that listbox, and ((ListBox)sender).Items.Count returns 3, which is correct, since I have added the StackPanel, "S" and "A", but for some odd reason, I cannot see the items in the ListBox.
I have tried this.lstList.Items.Insert(0, "S"), but to no avail!
If you could provide a possible solution, I would really appreciate it (I don't know why it is so much different than VS 2008 WPF).
I am using Windows 7 Ulitmate.
Kind Regards,
Rossouw
|
|
|
|
|
I have embedded in my ASP.NET web page a Silverlight control that uses the Silverlight 4 audio recorder to allow users to record audio remotely through their browser. For now I am capturing the audio in a stream in memory in the Silverlight control on the client side and then, when the recording is complete, my Silverlight control calls a web service hosted by my server to uploading the complete audio 'file'.
This works okay with reasonably small audio recordings, but I need to allow my users to record fairly long audio recordings. The best solution I can think of for this is to have my Silverlight app do some type of streaming upload to the server as the audio is being recorded, so that the Silverlight app doesn't have to save the entire recording in memory and wait for the recording to complete before transmitting it to the server.
Can anyone tell me if this is possible and, if so, what I would need to do to get started streaming the audio as it is being recording in my Silverlight app to the server?
Any help would be greatly appreciated!!
|
|
|
|
|
Silverlight supports sockets. You could store the file in the Isolated storage and upload it via sockets on another thread.
|
|
|
|
|
Hi,
I need to build an image editor that should have all the functionalities of photoshop. The images should be loaded in a repeater or a listview control showing thumbnails. I should be able to drag the thumbnail on to a canvas and be able to edit the image, add layers etc...similar to photoshop and finally print it as a PDF. So far all my efforts to do this have failed. Kindly help me.
I have started developing the application. I have sucessfully loaded a Repeater Control with images...sort of like an image gallery. Now i want to drag those images into a canvas like that of photoshop and be able to add layers and other effects. I am unable to do that. Is there a way to drag items from a Repeater control and is there a way to call Photoshop in a .NET Application??
|
|
|
|
|
You have got the wrong forum.
This is the Silverlight forum.
My signature "sucks" today
|
|
|
|
|
ikbegins wrote: I need to build an image editor that should have all the functionalities of photoshop.
Then you're going to build an app with about ten million lines of code in it? Not meaning to sound sarcastic, but you and what army?
|
|
|
|
|
I got the impression he does not want to reverse engineer PS but use it from a silverlight web application. Drag the image onto a control that opens PS with the image loaded seems a doable solution. I think the OP is possibly struggling with english.
OTOH If he does want to build PS
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hey Microft...you got that 100% right. Thats exactly what i wanted to do. Create a Silverlight web application having an image gallery. I should be able to drag images from that gallery and drop it in a canvas and be able to edit the image there. Is there a way to call the photoshop interface somehow and edit the image? I think my english is fine. I am sorry i wasnt clear before. Hey thats the way clients give their requirements! lol.
So is there a way to achieve this?
Regards,
Imran
|
|
|
|
|