小编Fer*_*vić的帖子

尝试打开telerik报告时,"值不能为空.参数名称:实例"错误

在我的解决方案中,我有telerik报告,当试图在Visual Studio 2010设计器中打开它们时,我收到此错误:

Value cannot be null. Parameter name: instance

Call Stack 

at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component, Boolean rootDesigner)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)  
Run Code Online (Sandbox Code Playgroud)

当我运行解决方案时,它们正在出现并且它们很好.所以,唯一的问题是设计师和这个错误.

提前致谢.

c# telerik visual-studio-2010 telerik-reporting

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

如何计算Crystal Report中的分组行数

我需要计算并显示报告中分组数据的行数.我已经在Report Footer部分中有总数据行数(我使用了Count()函数并且工作正常),但是我需要在Group Footer部分中显示总行数,这些行显示了分组数据的行数.问题的可见解释如下所示.

谢谢.

----------------------------------------------------
Group 1

        row 1---------------------------  
        row 2---------------------------
        .
        .
        .
        row N---------------------------
--- I need here number of rows!---------------------
----------------------------------------------------
Group 2

        row 1---------------------------  
        row 2---------------------------
        .
        .
        .
        row M---------------------------
--- I need here number of rows!---------------------
----------------------------------------------------
Total Rows: M+N
Run Code Online (Sandbox Code Playgroud)

formula crystal-reports

4
推荐指数
2
解决办法
5万
查看次数

是否可以卸载 Ola Hallengren SQL 维护脚本

成功部署并执行 Ola Hallengren SQL 维护脚本后,我发现了这个,但它不起作用。那么还有其他方法可以做到这一点吗?

sql-server

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

c#中如何通过socket发送文件

我有服务器和客户端控制台应用程序,它们可以正常通信并发送一些字符串。这是代码...

服务器

public static void Main()
    {
        try
        {
            IPAddress ipAd = IPAddress.Parse("127.0.0.1"); 

            /* Initializes the Listener */
            TcpListener myList = new TcpListener(ipAd, 1234);

            /* Start Listeneting at the specified port */
            myList.Start();

            Console.WriteLine("The server is running at port 8001...");
            Console.WriteLine("The local End point is  :" + myList.LocalEndpoint);
            Console.WriteLine("Waiting for a connection.....");

            Socket s = myList.AcceptSocket();
            Console.WriteLine("Connection accepted from " + s.RemoteEndPoint);

            byte[] b = new byte[100];
            int k = s.Receive(b);
            Console.WriteLine("Recieved...");
            for (int i = 0; i < k; …
Run Code Online (Sandbox Code Playgroud)

c# sockets console tcp

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

无法在 Visual Studio 2010 中选择平台 x64

在我的解决方案中,我正在导入用作参考的外部项目。在编码和设置 Release x64(在标准工具箱中)后,我遇到了构建问题。问题肯定与 x64/x86 配置有关。当我也转到解决方案和项目的属性时,除我的项目外,所有这些属性都设置为 x64。最后,问题是我不能选择x64。有没有人遇到过这种问题?错误信息是:

无法加载文件或程序集...尝试加载格式不正确的程序 (System.BadImageFormatException)

预告也在这里...

在此处输入图片说明

c# build visual-studio

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

使用LINQ将其与其他列表进行比较时,如何在一个列表中设置值

我有两个清单:

List A                         List B

ID  FirstName  WorkingID       ID  FirstName  WorkingID
5   John       Null            5   John       1 
9   Patrick    Null            9   Patrick    2
16  Ryan       Null            16  Ryan       3
Run Code Online (Sandbox Code Playgroud)

我想使用LINQ比较这些列表,如果两个列表中的ID相等,我想在第一个列表中设置WorkingID,一个列表.谢谢.

c# linq

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

如何手动替代List <>类

我需要替换List <>类,其中我将有4个方法...两个用于添加int项目,一个来自前面,另外一个来自后面,两个用于删除,一个来自前面,另一个来自后面.我的班级不应该继承任何东西.

像这样......

public class MyList
{
    public void AddItemsFront(int pItem)
    {

    }

    public void AddItemsBehind(int pItem)
    {

    }

    public void DeleteItemsFront(int pItem)
    {

    }

    public void DeleteItemsBehind(int pItem)
    {

    }
}
Run Code Online (Sandbox Code Playgroud)

c# collections class

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

西门子PLC编程最佳实践

我的问题很简单。有没有学习使用西门子 PLC 的有用地方?

plc siemens

-6
推荐指数
1
解决办法
1470
查看次数