小编Gib*_*boK的帖子

安装Visual Studio 2013 Ultimate时出错 - Microsoft Visual C++ 2013 x64 Minumn Runtime - 12.0.21005

尝试从ISO安装文件在Win 7 Pro计算机上安装MS Visual Studio 2013 Ultimate Edition时,我收到这些错误消息.

你知道怎么回事吗?

错误:

Microsoft Visual C++ 2013 x64 Minumn Runtime - 12.0.21005 
The form specified for the subject is not one supported or known by the specified trust provider.
Run Code Online (Sandbox Code Playgroud)

警告:

  The form specified for the subject is not one supported or known by the specified trust provider.
Run Code Online (Sandbox Code Playgroud)

警告:

  The form specified for the subject is not one supported or known by the specified trust provider.
Run Code Online (Sandbox Code Playgroud)

visual-studio visual-studio-2013

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

异常信息:System.Reflection.TargetInvocationException

我正在研究WPF应用程序,我只在运行时在单个设备上收到此错误.

Exception Info: System.Reflection.TargetInvocationException
Run Code Online (Sandbox Code Playgroud)

我的问题:

  • 任何可能导致此错误的线索?
  • 知道如何在发布模式下调试应用程序吗?

Exception Info: System.Reflection.TargetInvocationException
Stack:
   at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
   at System.Delegate.DynamicInvokeImpl(System.Object[])
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) …
Run Code Online (Sandbox Code Playgroud)

.net c# wpf system.reflection

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

使用DEFAULT空字符串避免使用NULL列

如何创建一个默认值为空字符串的列?

多谢你们!

sql database sql-server sql-server-2008

9
推荐指数
3
解决办法
3万
查看次数

DAL"类型化数据集"或自定义业务对象

我想了解您对"DataSet Designer"和DAL(数据访问层)最佳实践的看法.我使用Visual Studio 2010 Framework .NEt 4.0.

根据我的理解,"DataSet Designer"允许我使用DataTable和Adapter自动创建严格的Typed-DataSet,它直接在Visual Studio 2010中包含DAL.

我想知道: - 如果在真实场景中"DataSet Designer"运行良好,或者更好地编写自定义业务对象. - 如果存在.net 4.0中引入的其他新解决方案

感谢您的支持!:-)

.net c# asp.net

9
推荐指数
3
解决办法
4128
查看次数

正则表达式检测yyyy-MM-dd

我使用asp.net 4和c#.

我需要使用Validation类型的WebControl RegularExpressionValidator来检测TextBox中的数据IS NOT in format yyyy-MM-dd(String).

知道怎么写RegEx来应用这个控件吗?

谢谢

c# regex asp.net validation

9
推荐指数
3
解决办法
2万
查看次数

EF和Linq OrderBy使用两个参数

我使用EF 4和C#.

我需要使用属于两个不同实体的两个属性来订购此查询的结果.

在我的情况下,我想订购gt.GroupTypeId和它subset by cnt.ContentId.

PS:我不确定我的头衔是否合适,如果你不认为,请告诉我,我会改变它:-)

from cnt in context.CmsContents
            from gt in cnt.CmsGroupsTypes
            join t in context.CmsTypes
            on cnt.TypeContent equals t.TypeContent
            join m in context.CmsModes
            on cnt.ModeContent equals m.ModeContent
            orderby gt.GroupTypeId // Problem here
            select new
            {
            cnt.ContentId,
            cnt.Title,
            gt.TypeGroup,
            gt.GroupTypeId,
            TypeContentDescription = t.Description,
            ModeContentDescription = m.Description,
            cnt.IsPublished
            };
Run Code Online (Sandbox Code Playgroud)

c# linq entity-framework

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

适用于匿名类型的IQIeryable

我使用EntityFramework,我正在查询并使用匿名类型返回部分数据.目前我正在使用IQueryable<dynamic>,它的工作原理,但我想知道这是否是正确的方法,或者是否有其他一些我不知道的返回数据类型.

public IQueryable<dynamic> FindUpcomingEventsCustom(int daysFuture)
{
    DateTime dateTimeNow = DateTime.UtcNow;
    DateTime dateTimeFuture = dateTimeNow.AddDays(daysFuture);
    return db.EventCustoms.Where(x => x.DataTimeStart > dateTimeNow & x.DataTimeStart <= dateTimeFuture)
        .Select(y => new { y.EventId, y.EventTitle, y.DataTimeStart});
}
Run Code Online (Sandbox Code Playgroud)

c# linq iqueryable anonymous-types

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

如何计算具有实用程序类的方法的已用时间

我正在编写一个非常简单的实用程序类,目的是测量传入的任何方法(任何类型)执行的时间.

在我的情况下Membership.ValidateUser(model.UserName, model.Password)返回bool所以我得到一个例外.

我想如果有可能写一个这种类型的utililty类的代码示例如何解决它.是否有意义使用动态代替行动?

Tracing.Log(Membership.ValidateUser(model.UserName, model.Password), "Membership.ValidateUser");
Run Code Online (Sandbox Code Playgroud)
public static class Tracing
        {
            public static void Log(Action action, string message)
            {
                // Default details for the Log
                string sSource = "TRACE";
                string sLog = "Application";

                // Create the Log
                if (!EventLog.SourceExists(sSource))
                    EventLog.CreateEventSource(sSource, sLog);

                // Measure time Elapsed for an Action
                Stopwatch stopwatch = Stopwatch.StartNew();
                action();
                stopwatch.Stop();
                TimeSpan timeElapsed = stopwatch.Elapsed;

                // Write the Log
                EventLog.WriteEntry(sSource, "TIME-ELAPSED: " + timeElapsed .ToString() + message, EventLogEntryType.Warning, 234);
            }
        }
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net

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

如何将ConfigurationManager.AppSettings与自定义部分一起使用?

我需要使用App.config文件获取" http://example.com ".

但目前我正在使用:

string peopleXMLPath = ConfigurationManager.AppSettings["server"];
Run Code Online (Sandbox Code Playgroud)

我无法获得价值.

你能指出我做错了什么吗?

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <configSections>
    <section name="device" type="System.Configuration.SingleTagSectionHandler" />
    <section name="server" type="System.Configuration.SingleTagSectionHandler" />
  </configSections>
  <device id="1" description="petras room" location="" mall="" />
  <server url="http://example.com" />
</configuration>
Run Code Online (Sandbox Code Playgroud)

.net c# wpf appsettings

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

当使用具有matrix3d值的初始关键帧时,用于变换的CSS动画无法正常工作

我需要在div上为属性执行动画scaleZ()并translateZ()使用CSS动画.

当transform属性的动画中的初始和最后一个关键帧值具有类似的"格式" 时,以下代码可以正常工作:

  • 0%是 transform: rotateY(-179deg) scaleZ(2) translateZ(200px);
  • 100%是 transform: rotateY(179deg) scaleZ(2) translateZ(200px);

        console.clear();
        document.addEventListener('DOMContentLoaded', () => {
            let content1 = document.querySelector('#content1');
            var computedTransform = window.getComputedStyle(content1).transform;
            console.log(computedTransform);

        });
Run Code Online (Sandbox Code Playgroud)
        @-webkit-keyframes animation {
            0% {
                /*works*/
                -webkit-transform: rotateY(-179deg) scaleZ(2) translateZ(200px);
                        transform: rotateY(-179deg) scaleZ(2) translateZ(200px);
                /*issue*/
                /*transform: matrix3d(-0.999848, 0, 0.0174524, 0, 0, 1, 0, 0, -0.0349048, 0, -1.9997, 0, -6.98096, 0, -399.939, 1);*/
            }


            100% {
                -webkit-transform: rotateY(179deg) scaleZ(2) translateZ(200px);
                        transform: rotateY(179deg) scaleZ(2) translateZ(200px);
            }
        }

        @keyframes …
Run Code Online (Sandbox Code Playgroud)

html javascript css css3 css-animations

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