小编Pau*_*aul的帖子

c#应用程序不会在任何机器上运行,除了它开发的盒子

我是发展新手.我按照http://code.google.com/apis/maps/articles/flashmapinwpf.html上的分步说明,使用c#在wpf应用程序中托管谷歌地图.该程序将在IDE和我的Windows环境中编译和运行.相同的可执行文件将无法在我测试过的任何其他计算机上运行.使用visual studio 2010在Windows 7 x64上编译程序.我编译为x86.我尝试使用.NET 3.5和.NET 4进行编译.我尝试在主机上使用.NET 3.5,3.5.1和4.我已经包含了所需的库文件.我试图在Windows 7 x64上运行可执行文件,在虚拟框中运行Windows xp,在虚拟框中运行Windows 7 x64.

有趣的是,我的一个朋友开始关注这个项目.我看着他经历了编译程序的相同过程.然后他发送了我的项目文件,我得到了一个奇怪的例外,我无法绕过.在我编译程序文件之后,我向他发送了我已完成的.exe文件并且他能够运行它.似乎编译程序的机器能够运行它.

为什么会这样?

Windows 7为我提供了以下错误详细信息:

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: GoogleMapsFlashInWpf.exe
  Application Version:  1.0.0.0
  Application Timestamp:    4c1d70c3
  Fault Module Name:    Flash.ocx
  Fault Module Version: 7.0.19.0
  Fault Module Timestamp:   3fd4f4d4
  Exception Code:   c0000005
  Exception Offset: 00051acc
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:    1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Run Code Online (Sandbox Code Playgroud)

卸载并重新安装adobe flash后,我现在从Windows收到此错误:

有关调用实时(JIT)调试而不是此对话框的详细信息,请参阅此消息的结尾.**************异常文本**************System.Runtime.InteropServices.COMException(0x80040154):未注册类(HRESULT异常:0x80040154 (REGDB_E_CLASSNOTREG))在System.Windows.Forms.AxHost上的System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid&clsid,Object punkOuter,Int32 context,Guid&iid)中的System.Windows.Forx.AxHost.CreateWithoutLicense(Guid …

c# google-maps development-environment visual-studio-2010

2
推荐指数
1
解决办法
1041
查看次数

这个语法有什么问题?

    public static void PullData(Hashtable source)
    {            
        IPGlobalProperties ipProperties = IPGlobalProperties.GetIPGlobalProperties();
        //IPEndPoint[] endPoints = ipProperties.GetActiveTcpListeners();
        TcpConnectionInformation[] tcpConnections = ipProperties.GetActiveTcpConnections();

        foreach (TcpConnectionInformation info in tcpConnections)
        {
            if (!(info.RemoteEndPoint.Address.ToString() == "192" || info.RemoteEndPoint.Address.ToString() == "127"))
            {
                source.Add(info.RemoteEndPoint.Address.ToString(), new IPInstance(
                  new string[info.LocalEndPoint.Port.ToString(), info.RemoteEndPoint.Port.ToString()],
                  info.RemoteEndPoint.Address.ToString(),
                  Dns.GetHostEntry(info.RemoteEndPoint.Address.ToString())
                  ));
            }
        }
    }
Run Code Online (Sandbox Code Playgroud)

我一直得到错误1无法隐式地将类型'string'转换为'int'

c#

1
推荐指数
1
解决办法
181
查看次数

Foo**是一个数组数组?

在C++中,我被告知这Foo** foo;是一个指向指针和数组数组的指针?

有人会详细说明为什么它是一个数组数组或如何解释为这样?

c++ pointers

1
推荐指数
1
解决办法
131
查看次数