problem about archived-forums-n-r-forums-Collection of common programming errors
msdn
archived-forums-n-r-forums pex-and-moles-powertool
I’m running into some problems with detouring method calls with moles.Say for example I have code that in more than one place is calling the following legacy method:public string GetSomeString(someEnum)I want to be able to detour this function call only when certain enumerators are passed in, and for others to have the production code implementation. How do I go about doing this?Initially I would thought this would work:GetSomeStringString = (en) => {if (en == aSpecificEnumValue){return “
msdn
archived-forums-n-r-forums phoenix
now all i want to do is waiting for the phoenix tutorial at CGO.When run the code built with phoenix, there is an exception:FileNotFoundException unhandled(Exception from HRESULT: 0x8007007E) Even when I use VS–>new project to generate an empty phoenix tool, compile and then run, the same exception happened. why?
msdn
archived-forums-n-r-forums phoenix
Hello. I was attempting to recreate the No op instrumentation tutorial with a instrumentation project of my own. However, every time I run the command-line program, I get the following exception:Phx.FatalError was unhandledWhen I use the debugger, it appears that the exception is coming from the following line:Code SnippetPhx.PE.Writer writer = Phx.PE.Writer.New(Phx.GlobalData.GlobalLifetime, outputFileNameString,outputPdbFileNameStr, peModule, peModule.SymbolTable,peModule.Architecture, peModul
msdn
archived-forums-n-r-forums phoenix
Hello,The sample provided with the Phoenix SDK — addcall, always ends with a Phx.FatalError. Is someone else facing the same problem? Does someone know the solution?This is the exception that is generated:Unhandled Exception: Phx.FatalError: Exception of type ‘Phx.FatalError’ was thrown. at Phx.FatalError.Dispatch() at Phx.PE.Utilities.UserError(String infoString) at Phx.PE.Writer.Write() at Phx.PEModuleUnit.Close() at main(String[] arguments) in c:\documents and settings\prmohan\my d
msdn
archived-forums-n-r-forums pex-and-moles-powertool
I am trying to get Moles to work with nUnit. All seems to work fine from VS2010 when I use MSTest. Now I have switched the tests to nUnit and need to get them to run in an instrumented proces. For this I need to get the moles runner working, and that isa problem.When I execute C:\Program Files\Microsoft Moles\bin>moles.runner.x86.exe D:\Testtools\Testmachine Parkmanager\TMPMVMService\bin\Debug\TMPMVMServiceTests.dll /runner:”c:\Development Tools\NUnit 2.5.2\bin\net-2.0\nunit-console.exe&
msdn
archived-forums-n-r-forums phoenix
Thanks in advance!!!What is the possible reason the problem ?I used the sampel program to run testapp.exe .It works.While I used it to add call to my own program, it always report an exception message.—-Here is the exception message—-I:\Program Files\Phoenix SDK June 2008\samples\AddCall\cpp\Debug>addcall.exe /out addtest.exe /pdbout addtest.pdb /importdll ExoDLL.dll /importmethod DisplayBox /localmethod foo /in winform.exeTotal Global Symbols Count – 2045Unhandled Exception: Phx.FatalEr
msdn
archived-forums-n-r-forums network-class-library-systemnet
Hi, I am getting the following error message after deploying the application to server.Server Environment: Windows Server 2008 R2Event code: 3005 Event message: An unhandled exception has occurred. Event time: 6/8/2011 7:48:53 AM Event time (UTC): 6/8/2011 12:48:53 PM Event ID: b9d9c92dabae455c92ceacf7682aa1b2 Event sequence: 17 Event occurrence: 2 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/LTS-1-129520105674665000
msdn
archived-forums-n-r-forums network-class-library-systemnet
I’ll start on my previous problem: I was using WebClient.DownloadData to download binary data. But, in some cases, the download was too long (not the request-response, mostly because of the streaming). You can read about this problemhere.So, as a workaround, I started using the WebClient.DownloadDataAsync: try { using (WebClient wc = new WebClient()) {
msdn
archived-forums-n-r-forums network-class-library-systemnet
Hi when i run application, it gives run time error “HttpListenerException was unhandled” access denied. At Listener.Start() in my .cs file. and my service is start on fix assign port no. 8082. so please help me, what can i do?
msdn
archived-forums-n-r-forums popfly-bugs-and-suggestions
Custom HTML forms can crash the mashup designer. For example, if I have this HTMLCode Snippet<form><input type=”text” name=”MyInput” /></form>If I type anything into the text box, and hit enter, I get an error saying “This request has expired.”.The customise button now does nothing, and I cannot get back to the designer.Cheers ~ Jamie
msdn
archived-forums-n-r-forums pos-for-net
I am attempting to get the Zebra service object working.I run into numerous problems including the following when I try to run the zebra test application.ZPOS.exe – Common Language Runtime Debugging Services—————————Application has generated an exception that could not be handled.Process id=0x13d4 (5076), Thread id=0x17d4 (6100).Click OK to terminate the application.Click CANCEL to debug the application.—————————OK Cancel —————————I tried
msdn
archived-forums-n-r-forums phoenix
In case anyone else runs into this, I found a solution on the ADO.NET forum:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=665884&SiteID=1You need to set Properties > Build > Platform target to “x86”. This will force it to run in WoW64, so the 32-bit mixed model Phoenix assemblies will load.Ravi
msdn
archived-forums-n-r-forums pex-and-moles-powertool
HI,Even though i added Moles attribute on my Test method, I am still getting the below error ->Moles requires tests to be an instrumented process.In Visual Studio Unit Test, add the following attribute to your unit test method:[TestMethod][HostType(“Moles”)] // add this attributepublic void Test() { … }Any Help would be appreciated.-Shashwat
msdn
archived-forums-n-r-forums network-class-library-systemnet
Hi First off I am a Noob to Visual Basic and I am looking a bit of help, I am trying to create a program that will either return a message to say “I could connect to IP Address and port all is good” or if it gets the System.Net.Sockets.SocketException wasunhandled message “I couldnt connect to the IP Address please call them”Imports System.Net Imports System.Net.SocketsModule Module1Sub Main()Dim hostname As String = “81.***.***.***”Dim port As Integer = 5***Dim val
msdn
archived-forums-n-r-forums network-class-library-systemnet
I got a problem on Socket connect. I tried for a few days but the program also showed error to me that “SocketException was unhandled: no response replied from the destination server” when I compiled the below codes until went to the bold code line of s.Connect(endPt); Please help me for that and thanks all of you in advance.public static bool Send(MailMessage message) { IPHostEntry I
Originally posted 2013-11-27 12:11:03.