stswordman's Q&A profile
.NET Development FtpWebRequest - Access to IBM AS/400 FTP Server - 501 Character (/) not allowed in object name.
Hello everybody I'm trying to communicate with an AS/400 FTP Server. As a first try I just execute the WebRequestMethods.Ftp.ListDirectory method, which translates to the NLST FTP command. Doing the same accessing a Microsoft FTP Server or a UNIX FTP Server works fin. This is the code to get the listing: Dim Uri As System.Uri = New System.Uri(listUrl) Dim listRequest As FtpWebRequest = CType (WebRequest.Create(Uri), FtpWebRequest) listRequest.Credentials = New System.Net.NetworkCredential(User, Password)listRequest.Method = WebRequestMethods.Ftp.ListDirectory listRequest.KeepAlive = False listRequest.UseBinary = False listRequest.UsePassive = False Dim listResponse As FtpWebResponse = CType (listRe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. newbie question: game.Run():
i keep getting this as the exception detail Microsoft.Xna.Framework.NoSuitableGraphicsDeviceException was unhandled Message="The device creation parameters contain invalid configuration options." Source="Microsoft.Xna.Framework.Game" StackTrace: at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo) at Microsoft.Xna.Framework.GraphicsDeviceManager.ChangeDevice(Boolean forceCreate) at Microsoft.Xna.Framework.GraphicsDeviceManager.Microsoft.Xna.Framework.IGraphicsDeviceManager.CreateDevice() at Microsoft.Xna.Framework.Game.Run() at Tutorial1_Windows.Program.Main(String[] args) in C:\Documents and Settings\Compaq_Owner\My Documents\Visual Studio 2005\Projects\T ...Show All
Internet Explorer Development IE7 Update put me down for the count
Well here is the issue. My IE7 worked just great until I updated my windows 2 nights ago. It installed a new version of IE7 and that is when I could no longer access the web with IE7. After 2 days of fooling with the settings and getting now where I uninstall-ed IE7 and reinstalled several times with no luck so I uninstall-ed IE7 and reverted back to IE6 and figured my problem would go away. NOT! I am now beyond frustrated with no where to go with this. I am running Panda 2007 A/V and firewall, Windows XP Media Center 2005. Can anyone give me a clue as to what happened and how to fix it. By the way Opera and FireFox work just fine and testing the network connection comes up now network issue found.Any help would be great.Thank you,Rich ...Show All
SQL Server Totals and groups - how to calculate grand totals inside groupings
I have a report that has groupings that need to figure out the percentage of the grand total. Example: Group1 Count Total Count% Total% 100 1000 33.33% 25.00% <--detail 200 3000 66.67% 75.00% <--detail Group 1 Totals ----- ------ ---------- ---------- 300 4000 100.00% 100.00% How do I code in the expression for the percentages when the totals needed for the calculation are in the footer in this case count/sum(count) but at the detail level This should be simple right I know that in Crystal you can calculate inside a group by specifying... count/groupname.sum(count) or the textboxvalue. I tried the Count/ ReportItems!CountTotal.value in SRS but no luck. and if I try duing a ...Show All
SQL Server Retrieve the version of SQL Server from within a user defined function
EXEC master . dbo . xp_msver ProductVersion can be used to return the server version in a resultset. I need this to do some conditional coding between varchar and varchar(max) in a UDF, so size of the text I return must be different between the SQL2000 and SQL2005. I cant call an xp_ that returns a resultset within a UDF can I, so how can I get the SQL version You can use @@Version within a user defined function. I tested the following code in both SQL 2000 and SQL 2005. Hope this helps. Alter Function dbo . VersionNumber () Returns int As Begin Declare @Temp VarChar ( 1000 ) Declare @Output Int Select @Temp = @@Version Set @Temp = Replace (Left( @Temp , Cha ...Show All
Windows Forms tableadapter query wizard to create a stored procedure
Hi, i used the tableadapter query wizard to create a stored procedure that returns records. the schema is different and using the sp returns an error. so i modified the code to give this.: bad coding but until i find the solution.. i'm having to clear the constraint twice. the first time only works on the second try. can someone enlighten me on how to not even reach this error and my sp should work fine. Me .CostingDataSet.Costing_Bill.Constraints.Clear() Try Me .Costing_BillTableAdapter.FillBy1( Me .CostingDataSet.Costing_Bill, name, pono) Catch r As ConstraintException Me .CostingDataSet.Costing_Bill.Constraints.Clear() Me .Costing_BillTableAdapter.FillBy1( Me .CostingDataSet.Costing_Bill, name, pono) End ...Show All
Windows Forms localization and resource files
I am using the namespace.properties.resources to localize strings throughout a large solution containing 55 projects. (I went to the properties of the project, add resource file.) I need to be able to have these .resx files translated to many different languages after I am done. can I use this method to switch between languages what is the naming convention for the resources.resx files to differentiate btwn cultures resources.en-US.resx, by any chance how do I change the culture to point to the correct .resx file app.config & web.config what is the syntax of that please help! With Visual Studio 2005, you can simply set the Localizable property of a form to True. This will automatically ...Show All
SQL Server Alias OK, IP not
Hi all, I was able to get my mirroring setup to work only when I use Alias instead of IP address. Any idea why it is so Thanks, Avi I am trying to set up using IPS, someone told me you can as long as u do not use a witness server. I am having trouble setting it up. What did you do to get it working when you say Alias, what do you mean ( can u walk me using your steps ). Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. OpenGL wglCreateContext fails when rendering onto a bitmap when not having rendered onto a window first
Hi, I'm having a frustrating problem with the wglCreateContext call. I'm using DirectX for rendering on screen, and I'm using OpenGL to render the same thing onto a bitmap (for printing). When not using DirectX, the OpenGL bitmap creation works fine, but when using DirectX, the wglCreateContext call fails and GetLastError returns 8 ("Not enough storage is available to process this command"). Anybody got any thoughts on this A number of calls are succeeding before this call fails: getting the screen DC, CreateDIBSection, SetPixelFormat all succeed. All help is appreciated! Wout You are very unlikley to get a good answer here especially now that you've identified that DirectX doesn't cause the iss ...Show All
Windows Search Technologies disconnected drives cause rebuild
Hi, is there anyway I can prevent WDS from doing a rebuild if I happen to have a drive disconnected which was previously indexed pgeeeee, Could you provide a bit more information Is the index located on the drive that you are disconnecting Also, are you noticing a rebuild of the entire index, or just an incremental rebuild - WDS crawling through the disconnected drive to see if anything has changed. If you're seeing the latter there really isn't a way to address the issue. Paul Nystrom - MSFT ...Show All
SQL Server SemiAdditive measures, LastNonEmpty, Standard Edition - I need something special
My understanding is that the LastNonEmpty semi-additive measure: Is only supported by Enterprise Edition. Sums across all dimensions except time, where it takes the last non-empty value. What I'm looking for: A solution that works on Standard Edition and Enterprise Edition Does no aggregation at all across any dimension except time, where it takes the last non-empty value. Ideas Recommendations My current solution is to make the measures non-aggregating (i.e. AggregationFunction set to None) and the replicate the data across all values of my time dimension. This works, but it results in storing potentially 1000's of times more data in the cube than I'd like. The measures in question are limits that are used i ...Show All
Windows Forms DrawToBitmap z-order issue
Hi To come to the point - imagine we have a UserControl on which we place a number of TextBoxes and Labels. Lay these controls out partially over one another. Now place an instance of this UserControl on a Form with a button next to it. On clicking this button take a snapshot of the UserControl instance using the DrawToBitmap method that this instance exposes (via the Control object). This creates a Bitmap where the z-order of all controls seems to have been reversed i.e. if a textbox was on top of a label on the original control then on the newly created Bitmap it is placed behind the label. There are a few more inconsistencies regarding using this DrawToBitmap method (like colourings) but this probably is the main one. Thi ...Show All
.NET Development ODBC Error - Not a Valid Month
People.. my problem is that my application works fine on my machine , but when i installed in another PC, at the time to run the Query i get this error: "ODBC Oracle Error: Not a Valid Month " Can someone tell me how can i fix this .... Do you know what SQL statement is executing and can you display the actual statement to verify that the month is valid Couple of suggestions: 1) Try formatting the date to a full or abbreviated month name 2) Alter the session date format (which might affect other queries): alter session set nls_date_format='DD/MM/YYYY' ...Show All
Visual Studio 2008 (Pre-release) Develope XBAP Page in Window?
I'd like to develop an app that runs as an XBAP, but prefer to debug in a Window. Is there an easy way to switch back and forth Should I make my root panel a custom control, then add the same panel to 2 projects That way I only have to synchronize the Resources. Will this work Brian Perhaps you're looking for the flexible app solution that Karen developed and posted on her blog. ...Show All
Visual Basic JIT Debugger Error message caused by filelistbox
I have been working on a program and testing it on another computer that has the .Net framework installed. My program works fine on my computer with .Net installed. However, when I run it on the other computer (with only the framework installed) I get a random error: MyApp.exe - Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process id=0xf3c (3900), Thread id=0xf64 (3940). [The numbers in this error line are different everytime] When I hit cancel to debug it displays MyApp.exe - No debugger found. Registered HIT debugger is not available. An attempt to launch a JIT debugger with the following command resuled in an error code of 0x2 (2). Please check co ...Show All
