ceilidhboy's Q&A profile
Silverlight (formerly WPF/E) error handling?
When a XAML element has an attribute that it doesn't support, nothing renders and there's no alert. I also tried specifying my own error handler, instead of the null argument in the new agHost(...) call. That wasn't called either. I hope this isn't the intended behavior, because it sure makes debugging difficult. If that's not the normal behavior, could someone suggest how I can get it to work, or at least allow it to render the whole XAML document ignoring the offending element Actually, I would expect that both the error handler would be called and everything else would be rendered and the offending attribute would be ignored. Perhaps the non-rendering behavior is due to over-zealous validation, but I don't think that is a wise ...Show All
SQL Server Report showing #Error when using the custom assemblies in the popup preview window
Hi all I am trying to create an rdl (server report) in reporting services 2005. I am using my own assembly file as data source. That assembly file is placed on server. I am accessing it by registering it in report properties using Business Intelligence Solutions Explorer(.Net IDE). My problem is that when I try to view the report in external preview window, instead of showing data it shows "#Error". But when I open the report in Preview tab, it shows me the data. According to some documentation it seems to be a security related issue. Documentation says that in preview tab, it only loads the report without implementing any security, but in case of external preview, it loads all the security. Can anyone here help me to resolve this issue. ...Show All
SQL Server Package with WinZip hangs
Dear Folks, I have a package that calls winzip to extract files(command line usage) in an Execute Process task. The package runs fine if I am logged in to the server. It hangs on the winzip task otherwise. The package is stored on the server (as opposed to the file system) & is run under a proxy account using the SQL Server Agent. I tried adding folder and WinZip32.exe permissions for the domain user who the proxy account was created under to no avail. Any Ideas Thanks for your help! I don't have a high enough version for that particular utility, but found you could use the command line for older and standard versions as shown here: http://www.memecode.com/docs/winzip.html I'll be trying this out in my package and will post b ...Show All
Smart Device Development outofmemory exception when loading an image
I'm developing an app that load an image, high resolution (Image size) when I load it always raise an error "outofmemory". the weird thing is I can load 2MB picture with 1600x1100 resolution but I can't do the same thing with 400KB image with 3200x2200. this is my code, perhaps I was wrong public sub loadimage() try picturebox.Image = New Bitmap(OpenFileDialog1.FileName) picturebox.SizeMode = PictureBoxSizeMode.StretchImage catch ex as exception end try end sub Is there any limitation (sorry for the language) of size that picturebox can handle or do you guys have tricks that can manage the memory dispose can you write me the code thanks.. hi..need help about how to handle OutOfme ...Show All
.NET Development FtpWebRequest.RenameTo Property
Hello, I am trying to rename a file on an FTP server using the following block of code: string FileUri = "ftp://someftp/somedir/test.tmp" ; FtpWebRequest ftp = ( FtpWebRequest ) WebRequest .Create(FileUri); //ftp.Method = WebRequestMethods.Ftp.Rename; ftp.Credentials = new NetworkCredential (UserName, Password); ftp.RenameTo = ftp://someftp/somedir//test333.tmp ; FtpWebResponse r = ( FtpWebResponse )ftp.GetResponse(); and the response StatusDescription is set to : 150 Binary data connection for test.tmp (xx.xx.xx.x,xxxx) (1497 bytes). yet the file is not renamed. Have any of you had any success renaming files on an FTP server I would be very grateful to get some feedback on this i ...Show All
Software Development for Windows Vista Certified for Vista - TEST CASE 15
I have a question, regarding Certified for Vista, TEST CASE 15. Verify application installs to the correct folders by default (Req:2.3) and which one it says: 6. Default install directories are: a. Native x86 and x64 applications i. Program Files - %ProgramFiles% ii. User’s AppData - %APPDATA% iii. ProgramData – ALLUSERSPROFILE% Our application has 2 kind of shared user data: 1.) Sample data that is the same for all users, that is copied at the install time, at may be modified by users at application run-time 2.) License data (serial number) that is the same for all users, that is taken from user input at the install time, and also sholud be written at install time to a shared folder. In witch directory should I put this kind of ...Show All
SQL Server SQL Server vs. XML Configurations
I have been experimenting with both XML and SQL Server Configurations. Management would really like to go with the SQL Server Configurations, but I seem to be having problems with them. The main goal is to be able to create a configuration for each connection and have every package refer to its specific configuration, therefore in the future we could change say our SA password and only have to update this in a few places rather than for every package. In order to experiment with the problem I am having I developed 2 identical packages, except one uses SQL Server Configurations and the other uses XML. The configurations save the exact same properties. With the XML package I can go into the configuration file and change say the passwor ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Quaternion Multiplication is Broken
I believe that quaternion multiplication is broken. While you write matrix multiplications (to happen in order) as A * B, you have to write quaternions the other way around, qB * qA. I was chasing a "bug" in my animation code for the longest time before I found this! Here is a code sample that clearly shows the bug: class Tester { public Tester() { Matrix m1 = Matrix.CreateFromAxisAngle(new Vector3(1, 0, 0), (float)(Math.PI / 3)); Matrix m2 = Matrix.CreateFromAxisAngle(new Vector3(0, 0, 1), (float)(Math.PI / 3)); Matrix m3 = m1 * m2; Quaternion q1 = Quaternion.CreateFromAxisAngle(new Vector3(1, 0, 0), (float)(Math.PI / 3)); Quaternion q2 = Quaternion.CreateFr ...Show All
.NET Development subclass collection attributes
here is my class [XmlRoot("Super")] class Super{ private Sub() subs; ... } [XmlElement("Sub")] class Sub{ ... } when I serialize it, i get this xml: <Super> <Sub> ... </Sub> <Sub> ... <Sub> </Super> Instead, I want it to be like this: <Super> <Sub1> ... </Sub> <Sub2> ... <Sub> ... </Super> What should I do to make it what I need Thanks This is not possible: XmlSerializer only support a subset of XSD schema, the instance you describe cannot be expressed in XSD, therefore you cannot use XmlSerializer attributes to generate t ...Show All
Windows Forms Get the value from a bindingsource into a sql string
Hi I know i can do theis Me .lbl_kat.DataBindings.Add( New System.Windows.Forms.Binding( "Text" , Me .BindingSource1, "katId" , True )) To get the value of "katid" into my lbl_kat But can i get the value of katid into my sql string like: Where " & katid &" = Bindingsource1 - katid Regards alvin Sounds like you're going the wrong way around; you want to SELECT a bunch of cats, then bind the label to the katid column. If you want to generate a *new* query from the current katid, use the lbl_kat.Text value in the WHERE clause. ...Show All
Visual Studio Express Editions SplashScreen
How can create a splashscreen in C# Create a new form eg Splash.cs Then on your Main form code, before the Main method, type Splash splashscreen = new Splash(); Then change your Main method to show this - public Main() { InitializeComponent(); splashscreen.Show(); Application.DoEvents(); } Double click your form to create the Form_Load event then add this code Thread.Sleep(2000); splashscreen.Close(); You will need to add using System.Threading at the top to use the Thread statement. That should do it. Let me know if you get stuck. You can change the name Splash.cs to anything you want and then use that name as a declaration and you can also rename splashscreen to something else. e.g. You could have a form called Fruit.cs and ...Show All
Visual Studio Team System Smart Labels and Changeset Dump
I want to be able to add a label to all files that were modified/added/whatever as part of a changeset. But I've discovered that if I simply request the label be added to changset X, it gets applied to every single file everywhere. Is there another way to do this In the meantime, I must painstakingly find each and every file that was touched, and place the label on it explicitly. Also, I'd like a way to highlight the list of all files presented as "details for changeset X," copy them, and then paste them elsewhere. But it won't let me do it!! Is there something I'm missing Here are a few examples of using our Object Model. It should be fairly easy to write code you want. http://blogs.gotdotnet.com/buckh/archive/200 ...Show All
Windows Forms creating toolstrip(s) under tabcontrol in 2005 ??
is that possible it seems that the toolstripcontainer needs needs to be the outermost container within a form. The contentpanel can contain a tabcontrol but I don't think the content panel can exist within another container, which itself contains a tabcontrol. I am looking at Autodesk Maya animation software...they have toolstrip above and below a tabcontrol The upper one has global tool items, the one below is tab index dependent. Thanks for any ideas. -greg Perfect! I added this at runtime...I just have to continue to fine tune the resizing of surrounding controls.... Appreciatively, -Greg ...Show All
Visual Basic Help on Update String
MyCommand.CommandText = "UPDATE PATIENTS SET LastName='" & tboxLastName.Text & "',FirstName='" & tboxFirstName.Text & " ' WHERE PatientID= '" & Val(tboxPatientID.Text) & "'" the application throws in another exception saying "No value given for one or more required parameter" and the debugger was displaying WHERE PatientID = '1", instead of '1' so I think its in the WHERE statement, I had tried different combination of quotes but to no avail.... For SQL @FirstParameter is an identifier that this is actually a parameter and not a field from the database. So you would define a parameter with this name. As for the type - this would be defined when adding the parameter, So you ...Show All
Windows Live Developer Forums List of available pins
Hi, I've just started with developing in VE. I'm creating an application that takes GPS data from a pda (using TomTom navigator), sends this back to a little server and then displays the direction, location, speed and user on Virtual Earth. I would like to have a different icon based on the direction of travel. Is there a standard set of icons associated with Virtual Earth and, if so, where can I find them Regards Pete The standard set of icons are really average Pete, go have a look at all the sites in the gallery on http://www.viavirtualearth.com , they will give you some ideas and then create your own. I havn't seen anything with directional arrows, but i did exactly that for a sy ...Show All
