PNRP isn't starting and can't be found - c#

I'm trying to get a PNRP based C# application running but I can barely get started with it.
Initially I had to download the .NET framework version 4 to get the correct references available to me.
When the first call is made I get a "pnrp could not be started" exception.
I tried to explore PNRP using netsh, but the command netsh p2p doesnt seem to be available.
Could anyone tell me if there is some add-on I am missing or if I have made a mistake anywhere.
I am running Windows XP Professional, service pack 3.

Resolved.
http://msdn.itags.org/visual-studio/70534/

Related

How to fix a missing vcruntime140 clr 400 dll error

I'm trying to run a windows form application on a windows 7 machine. The application is written in C# under .NET framework. Whenever I try to run the application, it says that VCRUNTIME140_CLR400.dll is missing.
I've tried to google the solution, but I can't find anything about this specific dll.
The only results I get are from VCRUNTIME140.dll. Or are they one and the same?

M2Mqtt android/xamarin for some reason not working anymore

I built an xamarin cross platform mobile application last summer. We were waiting for the hardware to be ready for us to deploy the app.
Now everything is ready I kept a copy of the application on my one drive.
I copied the application from my one drive onto my development machine last week I have been working with it in debug mode.
Yesterday I tried to compile in release mode and all of a sudden my
using uPLibrary.Networking.M2Mqtt;
using uPLibrary.Networking.M2Mqtt.Messages;
grayed out and show error could not be found. Now I can't get anything to work the way it did even in debug mode all my mqtt commands are showing an error.
I tried reinstalling the nuget packages but I get error tying to compile to ......... not available in package see author
I just don't understand what happend and why
Please let me know if you have any ideas, from what I've read it may be because I moved the project from a different folder. Please help
You need M2Mqtt for .Net MQTT with uPLibrary. M2Mqtt will provide M2Mqtt.dll to support uPLibrary. You need to add M2Mqtt.dll reference in your project.
Please check M2Mqtt for .Net : MQTT client for Internet of Things & M2M communication.
What I did originally was find m2mqtt.mono.dll which worked fine for a while until I found some bugs that were fixed in more resent commits.
I have now gotten my hands on M2Mqtt.Net.dll which I just added to my Xamarin project and it seems to be working good.
I went to paho.mqtt.m2mqtt master. Downloaded git opened sln in Visual Studio 2017, built solution and got M2Mqtt.Net.dll from M2Mqtt/obj/debug folder and added reference to it in my project.
I'll keep you advised if I have any problems

Winform application "has stopped working" on launch. Only on other computers

This is my first application I have ever released. I built it with Visual Studio Express in c# using winform application.
I'm fairly new to this and I can't manage to find an answer to my problem.
When I try to open (launch) my application on various other computers I get a "Winformapplication has stopped working" and the application does not start. I have tried to include all the resources I use in the folder but still couldn't make this work.
Strangely enough, the application works on all the computers I have Visual Studio installed (at least I think so). It worked as well on a random laptop I tried it on and it does not have anything special I could figure out (no VSE installed).
So my question is pretty simple : how do I make this work ? what am I missing ?
I can provide more information about the application itself if required.
Thank you a lot.
edit: removed code as it was not relevant.
My error came from : "'Microsoft Office 12.0 Access Database Engine OLE DB Provider' Provider is not registered on the local machine.
A temporary fix would be to install 2007 Office System Driver: Data Connectivity Components as stated on this thread.
Thanks for the help everyone.
I'm still looking for an alternative though.

Getting "ieframe.dll failed to register" while installing an application built using watin?

Recently I have developed an automation application using WatiN API, in .NET Framework 3.5, for automation of an AD posting process. But at the time of installation i get an error that states this,
"Module C:\Program Files\XYZ Solution\XYZ App\ieframe.dll Failed to register.
HRESULT -2147467263. Contact your support personnel."
I am using IE browser to automate the whole process. The project has been developed in Win XP, VS 2008, .NET Framework 3.5, using Watin API ver-2.1.0.1196, in C#.
The thing is that it works fine although it shows the error, but my client does not wants to get the error.
Can anybody please help me with this issue.
Thank You
It looks like the following MSDN post touches on your issue specifically.
http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/c0b61b07-6255-4ede-b6b0-c7c6609b6a41/
Please let me know if that helps.
Thanks.

.NET 4 Program written/compiled on Windows 7 machine won't run on XP

I have an app that I wrote using C# .NET 4.0 in Visual Studio 2010 on my Windows 7 Ultimate machine. This app works fine on both Vista and other Windows 7 computers, but whenever someone running Windows XP tries to run it it crashes.
In order to reproduce this I've tried running it on my Win XP VMWare machine and it crashes for me in there. Unfortunately it doesn't give me any specific error, just informing me that the program has crashed and needs to close.
One other user sent me the following:
Run-time error '339'
Component 'vbalSGrid6.ocx' or one of its dependencies not correctly registered: a file is missing or invalid.
Code 0xe0434352
Flags 0x00000001
I don't get that particular bit when I try to run it on my Virtual XP machine, and I also made sure to install .NET 4.0 on there.
What could be causing this, and why won't the app run in XP if the .NET 4 framework is supported for XP?
Components used in the program: DataGridView, ComboBox, Buttons, Labels, LinkLabel, NewtonSoft's JSON parser, and that's about it.
I am baffled and have utterly no idea where to start. Ideas?
UPDATE: Hmm, tried running my other recently created application on XP and it loaded fine. The only major difference (in the components I used anyway) between the two is my use of NewtonSoft's JSON library, which I actually think is a .NET 3.5 component.
UPDATE 2: Just for kicks I tried running the program on my Wind7 machine in "Windows XP SP3" compatibility mode and it ran fine. Of course, I have no idea just how closely the "compatibility mode" emulates a true XP SP3 environment, but I figured I'd give ya'll the info anyway.
¡¡ IT WAS THE APPLICATION ICON !!
I kept noticing that the module it referenced in the error it gave me was system.drawing which I thought was odd. I figured perhaps the PictureBox I was using was causing the issue, so I tried disabling everything to do with that, to no avail.
I had my business partner set up his XP box so that we'd have another machine to test with aside from my VMWare XP box just in case there was some odd issue with it.
After he got it set up and the app copied over he said "The icons look like DOS ones" and I had a eureka moment.
I was using .PNG's as the icons because they support transparencies and whatnot, but XP doens't natively support them. So when the app was copied to the desktop it just used a generic icon for it, and when the application was run it crashed because XP doesn't know how to render a .PNG.
Try using the Fusion Log Viewer to debug startup errors in .NET applications.
Scott Hanselman has written a nice howto along with links to further resources if you need to go deeper.
Are we sure this is some wierd .NET compatibility issue or just a run of the mill bad installer/deployment problem?
Here's one user who has that error message because the OCX DLL was copied to System32 with a shortname. Renaming the DLL to the correct name and running RegSvr32 resolved his problem.
Do you have an installer? Have you correctly identified all of your managed and unmanaged dependencies and properly authored them into your installer?
http://forums.elmsoftware.com/forum_posts.asp?TID=119

Categories