lately I have been messing around with the Silverlight Business Application template to get me used to silverlight / wcf ria services. I have encountered a wierd issue that I don't know how to solve.
So far all I've done was created a new profile property called "AvatarURL", the basic concept is from this Avatar tutorial, and removed the FriendlyName property. The difference is that I'm just setting the AvatarURL property to default (~/Images/Default.jpg) when the user registers instead of writing a byte array to file. So I'm not browsing for files or pulling from webcam or anything like that during the registration phase.
I've made the necessary changes to LoginStatus.xaml etc, and after logging in the image wouldn't display in it's placeholder. I stepped through the 'Authentication_LoggedIn' eventhandler in LoginStatus.xaml and for some reason the user's AvatarURL property is only a partial value. If the value in the database is: "http://localhost:52878/Images/Default.jpg". The value I get when I do the stepthrough is: "http://localhost:528".
I have double checked the database values and ensured they are correct. If I input the XAML Image's Source value manually (http://localhost:52878/Images/Default.jpg) it displays the image no problem. It appears to be a problem between the communication between the silverlight app and the asp.net website project. Due to the fact I've only made miniscule changes to the solution, and written none of the code that wires the 2 projects together, I have no idea where to look to solve this problem, anyone have any ideas?
I can post some code if necessary but it's not much different than the default business template.
Thanks in advance.
As the saved entry (http://localhost:528) is exactly 20 characters long and a common default length for text values in databases is 20 characters, I am guessing the size limit is actually in your database table and the values entered are being truncated.
Please check the database schema and let me know of that is not the case.