kuntushi's Q&A profile
Visual Studio 2008 (Pre-release) Service.svc problem - I see it's content instead od WSDL code
Hi, I am exploring samples from Hands On Lab. Right now I am at sample that shows how to host service inside IIS ( my version is 5.1 ). The problem is that after entering http://localhost/DerivativesCalculator/Service.svc into browser I see content of that file instead of WSDL. I have already run aspnet_regiis and ServiceModelReg.exe" -r ( basiacally I followed up instruction from http://msdn2.microsoft.com/en-us/library/ms752252.aspx ) My app.config in client app contains: < xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <bindings> <wsHttpBinding> <binding name="WSHttpBinding_IDerivativesCalculator" closeTimeout=" ...Show All
Visual Studio 2008 (Pre-release) EffectiveValueEntry[] collection leaks
Hi, After profiling my application with Ants, I found that the EffectiveValueEntry[] collection is not releasing values added to it. The list is consuming the heap memory untill the application hangs. Does anybody sumbled into this problem I'm using framework 3.0 relase. The effectiveValueEntry[] was not cleared from storyboards. They must have been referenced somewhere but didn't dereferenced. The problem corrected when I began the storyboard with iscontrollable false. I gues it is a bug made at Redmond. ...Show All
Visual Studio 2008 (Pre-release) WPF/E will be will be released in this third season?
anybody sure ...Show All
Visual Studio Team System Report parameters problems
Hello I'm trying to pass parameters to a .rdlc report with no success using this code: Dim Report_Param(0) As ReportParameter Dim a As String = "A" Report_Param(0) = New ReportParameter( "A" , a) ReportViewer1.LocalReport.SetParameters(Report_Param) ReportViewer1.LocalReport.Refresh() The exception is generated in the SetParameters command. Does anybody know what is the problem Hello Thanks for your reply. I figured out the problem. it is necessary also to declare the parameter in the .rdlc file itself using the report menu. I entered the report menu in the .rdlc file and them added the parameter "A" , then the code that I specified before worked. ...Show All
Visual Studio 2008 (Pre-release) How to generate a "services/service" element based on a WSDL using svcutil.exe
Is it possible to generate service side configuration files based on a WSDL description, using svcutil.exe I have a WSDL that describes a service and I want to create my own implementation of that service. Using svcutil.exe I'm able to create .cs files with the contract (data contract + service contract), however I didn't found a way to create a services/service element with the binding and the address. Pedro, that is right. Neither svcutil.exe nor the internal ServiceModel classes svcutil uses can do this. It was a feature cut for v1 and you need to either hand tweak the config or provide your own code e.g. based on XmlReader/XmlWriter to change the config. Cheers, Christian ...Show All
.NET Development Loop SelectSingleNode
Hello, I need an example of how loop correctly in ASP.Net 2 to get each Xpath of ShippingAPIResponse/AddPacakgeResponse/PieceTrackNo PieceTrackNo will be from 1 to many depending on the number of packages shipped for each order, I would need to get each TrackingNo, PeiceNum etc for each PieceTrackNo Element(I guess it is called Element) < xml version="1.0" > <ShippingAPIResponse> <AddPackageResponse> <SONum>941823-1 </SONum> <Status>OK</Status> <StatusDesc>Transaction Successful</StatusDesc> <OrderProbill>36</OrderProbill> <Carrier>USPS </Carrier> <Service>5 </Service> <PieceTrackNo> <PieceNum&g ...Show All
Visual C++ Adding conditions to user-defined macros in property pages
Hi I would like to know if there is an option to create a conditional user macro for use in property pages, so that the actual value that will be used during the interpretation of the macro will be based on the value of another macro. For example, I'd like to define the Output Directory property to be based on the value of the $(TargetExt) macro. Any help will be appreciated. Thanks! You'll probably have to use a make utility (like nmake.exe) to use conditional logic like that. ...Show All
Visual Studio Team System Force undo pending changes - grayed out for admin
Hope someone can help me with this... For some reason on my TFS installation I have lost the right to undo pending changes of other people. I am both a TFS Administrator and a project administrator, but my "Undo Pending Changes" option is now grayed out if it's not my checkout. Here's what I tried: - remove myself and add myself to project admins and tfs admins. - checked for conflicting permissions in source control (e.g. no deny). - removed myself from all other roles (i'm just member of TFS Admins and Project Admins now) - make sure that the project admin has the "undo other people's changes" right enabled - make sure that the file I am trying to undo has that right given to the project admin, either through ...Show All
Visual C# Help a newbie! Converting VB6 to C#
Hi All, I've been given the unenviable task of converting someone's VB6 code for an upload form into C#. I'm not doing to bad at the minute but I'm struggling with some of the conversion. For example I have the following code (in C#): ====================== Hashtable strLang = new Hashtable(); Hashtable strAllowedExtensions = new Hashtable(); private bool SetLang() //*** SetLang() //* Add language strings to the array collection //*** { strLang.Add("INFO_FILE_SPEC", "- Is one of the following formats {0}, and is no bigger than {1}"); strLang.Add("ERROR_MAXSIZE_EXCEEDED", "The CV is bigger than the maximum size allowed."); strLang.Add("ERROR_INVALID_FILETYPE", & ...Show All
Visual Studio Tools for Office minumum cell width is limited by margins and setting margins to 0 does not seem work properly from VS 2005.
Hi, From word 2003 If i create a table and set the cell margins to 0 I can make the width of a column as small as I want. (the minumum is otherwise limited by the cell margins) However I have an issue doing the same thing from visual studio 2005. Using Microsoft.office.interop I set the LeftPadding and RightPadding table properties to 0.0 and this seems to work fine. However. It seems I still cannot set the width of the column less than the default cell margins! Even going through word 2003, and manually selecting the table properties I can see that the cell margins have been set to 0.0, but I cannot slide the column width to be less than the default margin size. Has anyone come accross this problem before Any Ideas to fi ...Show All
Visual Basic Running 'user selected' applications
Hi there, A fair while ago I started a project, to try and launch a specific set of applications. Not windows programs. Inititally through their own command buttons, then by checkboxes and a single command button, however I could never get the thing to work. Also the application locations woudl have to be the same as on my system which is never the same to any other system I have used. Now I've been asked by a friend to actually make it, I have tried code like this; Dim NameOfProcess As String = "app.exe" Dim p () As Process = Process . GetProcessesByName ( NameOfProcess ) If p . Length > 0 Then MessageBox . Show ( p . Length & " Process(s) Named " & NameOfProcess & " i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't create a spritebatch
Hi When i try to create a spritebatch like this: protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { SpriteBatch Drawer; Drawer = new SpriteBatch(graphics.GraphicsDevice); // TODO: Load any ResourceManagementMode.Automatic content } // TODO: Load any ResourceManagementMode.Manual content } I get the following error: System.InvalidOperationException was unhandled Message="The method call is invalid." Source="Microsoft.Xna.Framework" This also happens when i try to compile other peoples code It sounds like your video card isn't meeting the new Beta 2 hardware requirements. Beta 2 requires a ...Show All
Visual Studio 2008 (Pre-release) MS Interactive Designer
Here's the question. Is there gonna be some kind of "MS Interactive Designer June CTP" available It's not a secret that code-name "orcas" is not really usefull while talking about creating rich user interface (gradient brushes, pathes etc) After migrating to Windows SDK June CTP there's the need in Interactive Designer... It was posted yesterday. I've just downloaded it. http://www.microsoft.com/downloads/details.aspx FamilyId=B8557886-C1BE-43F8-BCF8-5DE4CB5675AB&displaylang=en Good luck Michael ...Show All
.NET Development xml error
I try to load a xml file. When i do i get the fowlling error below Data at the root level is invalid. Line 1, position 1. Cisco < hi > < Spary106914 > < apop > < ActionName > MoveUpRelative </ ActionName > < Parameter > Distance </ Parameter > < Value > 0 </ Value > < Unit > cm </ Unit > < Notes > Click to add notes </ Notes > </ apop > < apop > < ActionName > MoveUpRelative </ ActionName > < Parameter > velocity </ Parameter > < Value > 0 </ Value > < Unit > cm </ Unit > < Notes > Click to add notes </ Notes > ...Show All
Software Development for Windows Vista ActivityExecutionStatus Executing to Closed
I have created a simple Custom Activity and overridden the protected method Execute. The nature of job within Execute is such that the response would arrive into the activity asynchronously, I am returning ActivityExecutionStatus.Executing at the end of the method. I have a delegate callback private void myCallBackMethod(object Sender, EventArgs Args). My callback gets called successfully on recieving the response. What I do not understand now is, how and where do I return ActivityExecutionStatus.Closed so that the workflow having this CustomActivity knows that the activity is completed and it can proceed with the rest of the activities. In my case I will need the workflow execution to wait until the CustomActivity is completed, but since ...Show All
