Vaish's Q&A profile
Commerce Server Hotfix didn't work HELP !!!
I'm gettin following error: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> There was an error generating the XML document. ---> Instance validation error: '0' is not a valid value for System.Net.HttpStatusCode. at Microsoft.CommerceServer.ServiceAgent.TryHandleWebMethodException(Exception ex, SoapHttpClientProtocol serviceProxy) at Microsoft.CommerceServer.Catalog.WebService.Proxies.CatalogWebService.AuthorizedInvoke(String methodName, Object[] parameters) at Microsoft.CommerceServer.Catalog.WebService.Proxies.CatalogWebService.RefreshSiteCache() at Microsoft.CommerceServer.Catalog.CatalogAgentContext.RefreshSiteCache() at Microsoft.CommerceServer.Catalog.CatalogContext.RefreshSiteCache() ...Show All
.NET Development Watching Your Step
I'm working with ICorDebug to step through some C# code. I'm using examples from Mike Pellegrino's CLR debugger in a 2002 copy of MSDN Mag. I modified his code to handle more than one source file and fixed what looked like a bug in his StepRange() call. Stepping seems to work fine. I always get a StepComplete() call. Where I'm having trouble is trying to resolve the StepComplete() call to a line of source code so I can emulate what VS does when you press F10 and F11. To resolve a StepComplete() to a source line, I'm calling GetActiveFrame() with the thread returned in StepComplete() From the ICorDebugFrame interface, I'm calling QueryInterface to get an ICorDebugILFrame interface. I then call ICorDebugILFrame::GetIP to get the current inst ...Show All
Windows Forms Refreshing Datagrid
Hi, I have a requriement in which I have to refresh the datagrid every second without clicking on Refresh button. How can I go about doing this in C# 2.0 Quick help would be appreciated. Regards, Pooja. If you want to refresh your DataGrid along with the data in a timely manner then use a Timer object. In its tick event refresh its under lying datasource. Like if you are using a DataSet filled by a DataAdapter then call DataAdapter's update method. ...Show All
.NET Development How can I post the xml data by using HttpWebRequest?
I tried to POST xml by HttpWebRequest, and write following code. But the code is not work. I confirm the net packet, and I found this http post packet. But this packet don't have xml datas. So I think Stream.Write is not work correctly. Content-Type and Content-Length is correct in the packet. Could you tell me what is wrong Thank you. HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); req.Method = "POST"; req.ContentType = "text/xml; charset=utf-8"; UTF8Encoding encoder = new UTF8Encoding(); byte[] data = encoder.GetBytes(postbody); //postbody is plain string of xml req.ContentLength = data.Length; Stream reqStream = req.GetRequestStream(); reqStream.Write(data,0,data.Length); reqStream.Close(); ...Show All
Visual Studio Team System Unable to initialize build (Newbie...please help)
Hi all, I've setup test tfs server and try out team build with single server in workgroup. I was created team project using team wizard but I'm unable to initialize build. Here are an errors from log file. Please help. Build started 11/28/2006 2:27:16 PM. __________________________________________________ Project "C:\Projects\LSI\BUILD01_SERVICE\BuildType\TFSBuild.proj" (EndToEndIteration target(s)): Target InitializeEndToEndIteration: UpdateBuildNumberDropLocation BuildNumber='BUILD01_SERVICE_20061128.4' DropLocation='\\lsisna01wbld04\BuildOutput\BUILD01_SERVICE_20061128.4' Target CoreClean: Removing directory "C:\Projects\LSI\BUILD01_SERVICE\BuildType\..\Sources". Target InitializeBuild: Creatin ...Show All
Visual Studio Problem with List type value property
I'm having a problem getting a value property with a non-standard type to work as expected. I want to add a value property with a list type to one of the classes, so what I have done is created a trivial subclass of System.Collections.Generic.List whose type parameter is a trivial class with a few properties: public class ViewCollection : System.Collections.Generic. List < ViewItem > { } public class ViewItem { private string channel; private ViewBaseType viewbase; private string viewparameter; public string Channel { get { return channel; } set { channel = value ; } } public ViewBaseType ViewBase { get { return viewbase; } set { viewbase = value ; } } pub ...Show All
Visual Basic A first chance exception of type 'System.NullReferenceException'
Hi folks, sorry to bother you all. I'm learning VB and have become a little stuck. Whenever I try to debug or run my programme, I just get: "A first chance exception of type 'System.NullReferenceException' occurred in General Utilities.exe A first chance exception of type 'System.NullReferenceException' occurred in General Utilities.exe" I have 2 forms, Main and Passwd. I open Main, disable the buttons then open the Passwd form. This is the code: Public Class Menu Private Sub Menu_Shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown REM On entering our form, disable all the buttons Me.Renamer.Enabled() = False REM Now, prompt for a password Dim PasswordForm As New Passwd Pas ...Show All
SharePoint Products and Technologies ListItem Update Failure
Hi I'm trying to create a dynamic list and filling it with items of already created fields... ////Code is something like this guid = web2.Lists.Add( "ViewHistory" , "Desc" , SPListTemplateType .GenericList); SPList combine_List_web2 = web2.Lists.GetList(guid, true ); foreach ( SPListItem item_history in invoiceItems_history) { SPListItem newItem = combine_List_web2.Items.Add(); newItem.Fields.Add( "InvoiceID" , SPFieldType .Text, false ); newItem.Fields.Add( "Status" , SPFieldType .Text, false ); newItem.Fields.Add( "Author" , SPFieldType .Text, false ); newItem.Fields.Add( "Time" , SPFieldType .Text, false ); newItem.Fields.Add( "Text" , SPFieldType .Text, false ); newItem[ "Inv ...Show All
SQL Server install the database to any sql server from cd
hi friends can any body help me install the my database directly to the sql server without going to the sql server and running the script ...Show All
Windows Forms Task Vision
Hi, I downloaded Task Vision, and ran it but I don't know the username and password. DOes anyone know what it is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Displaying textured 3D objects
Hi there, I've been working my way through the tutorials at http://xna101.spaces.live.com/ , and I am stuck on lesson 16, the first 3D tutorial. The download of die.x didn't work, so I whipped up my own little 3D cube in Blender and applied a simple 64x64 pixel texture to it and saved it in DirectX format as cube.x. I was able to add it to my Project fine, but when I try to compile the program, it has all sorts of trouble understanding any texture I put on the thing. It will say the texture file is not found in the debug/bin directory; or it will give me other error messages about the structure of the texture file. I tried saving the cube as cube.3ds and cube.x3d and whatnot, and none of that worked. (Indeed, the Project didn't even rec ...Show All
SQL Server How to assign values to a variable from a xls sheet?
I've got this query inside a Sql Task against a Excel connection and I'd like to insert that value into a user variable called "Proyecto". How do I such thing select Proyecto from [Carga$] TIA, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Second map channel in ModelProcessor
I'm currently exporting some custom data in my own model processor. I get the vertex position from the first channel in geometry.Vertices.Channels and the uv coordinates from the second channel. I'm using the fbx file format saved out from MAX8. I want to export a second set of uv coordinates but can't seem to get them to come through. ie the number of geometry.Vertices.Channels is always two. I've tried using the specular and opacity channels in MAX for the second map channel but with no luck. The second texture referenced also doesn't seem to be exported. Is there any special channel I need to use or anything I'm missing Any takers Shawn Do I need to extend the fbxImport ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Adjusting the Gamma Ramp
Hi, I'm currently wondering how to set the gamma ramps with XNA. This is a function I wrote to do it: Protected Sub SetGamma( ByVal red As Single , ByVal green As Single , ByVal blue As Single ) ' Get graphics device. Dim graphicsDevice As GraphicsDevice = graphics.GraphicsDevice ' Get gamma ramp from device. Dim gammaRamp As GammaRamp = graphicsDevice.GetGammaRamp(0) ' Adjust values of RPG components. Dim redValues As Short () = gammaRamp.GetRed() Dim greenValues As Short () = gammaRamp.GetGreen() Dim blueValues As Short () = gammaRamp.GetBlue() For index As Integer = Byte .MinValue To Byte .MaxValue redValues(index) *= red greenValues(index) ...Show All
Visual Basic call an event in the same form
A question, please. Could anyone say me how can I call an event of a form in the same form. example: public class form1 sub btn_click ( ByVal sender As Object , ByVal e As System.EventArgs) Handles btnOK.Click Code... end sub How can I call btn_click from here , and what are the parameters to send end class Thanks... For button clicks remco is correct in using the perform click method...otherwise you can call the event method as Brendan suggest ... and if the event was declared in the class it can be fired by using the RaiseEvent statement ...Show All
