小编the*_*stv的帖子

将Windows8升级到Windows 10后,SQL Server无法正常工作

 TITLE: Connect to Server
------------------------------

Cannot connect to Thejus-PC.

------------------------------ ADDITIONAL INFORMATION:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or
> was not accessible. Verify that the instance name is correct and that
> SQL Server is configured to allow remote connections. (provider: Named
> Pipes Provider, error: 40 - Could not open a connection to SQL Server)
> (.Net SqlClient Data Provider)
> 
> ------------------------------ For help, click: …
Run Code Online (Sandbox Code Playgroud)

sql-server windows-10

11
推荐指数
2
解决办法
9419
查看次数

使用Hostable Web Core自托管Web应用程序

我试图使用托管网络核心功能托管Web应用程序(aspx Web表单).

当我试图加载aspx页面时使用这个,我收到错误

错误详情 :

回应:502

与"localhost"的连接失败.错误:ConnectionRefused(0x274d).System.Net.Sockets.SocketException无法建立连接,因为目标计算机主动拒绝它127.0.0.1:8080

然后我将CodeBehind属性更改为CodeFile,之后我收到此错误:

你调用的对象是空的.

描述:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息.

异常详细信息:System.NullReferenceException:未将对象引用设置为对象的实例.

来源错误:

在执行当前Web请求期间生成了未处理的异常.可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息.

堆栈跟踪:

[NullReferenceException:对象引用未设置为对象的实例.]
System.Web.HttpResponse.ApplyRedirectQueryStringIfRequired(String url)+144 System.Web.HttpResponse.Redirect(String url,Boolean endResponse)+546
System.Web.Security. FormsAuthenticationModule.OnLeave(Object source,EventArgs eventArgs)+1730
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+ 412 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean&completedSynchronously)+229

在同一个应用程序中我有一个html格式的测试页面.当我试图访问该页面时,它正在正确呈现.

这里也添加了我的配置文件

AppHostAspNet.config

.net c# asp.net hostable-web-core

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

如何从 SQL Server 过程获取所有错误消息

在我的程序中,我使用 try catch 块来捕获错误详细信息并记录到日志表中以供将来参考。但使用Error_message()它只能获取最后一条错误消息。

例如,执行以下代码时,它会生成两条错误消息

ALTER TABLE [MFClassProperty]

DROP CONSTRAINT [FK_MFClassProperty_MFProperty]
Run Code Online (Sandbox Code Playgroud)

错误消息是

Msg 3728, Level 16, State 1, Line 161
'FK_MFClassProperty_MFProperty2' is not a constraint.
Msg 3727, Level 16, State 0, Line 161
Could not drop constraint. See previous errors.
Run Code Online (Sandbox Code Playgroud)

使用我的 try catch 块,它只记录最后一条错误消息,通过该消息很难找到问题。

有没有办法获得这两个错误消息[在这种情况下]。

我的 catch 块代码添加在下面

BEGIN CATCH
        ROLLBACK TRANSACTION

        SET NOCOUNT ON

        IF @Debug > 0
        BEGIN
            --------------------------------------------------
            -- INSERTING ERROR DETAILS INTO LOG TABLE
            --------------------------------------------------
            INSERT INTO MFLog (
                SPName
                ,ErrorNumber
                ,ErrorMessage
                ,ErrorProcedure
                ,ErrorState …
Run Code Online (Sandbox Code Playgroud)

sql sql-server try-catch

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

预期';' 在声明清单的最后

error:- expected ';' at the end of the declaration list
Run Code Online (Sandbox Code Playgroud)
#import <UIKit/UIKit.h>

@interface ViewController : UIViewController
{
    float number;                   error:- expected ';' at the end of the declaration list
    float result;
    int currentoperation;
    __weak IBOutlet UILabel *label;
}

- (IBAction)canceloperation:(id)sender;
- (IBAction)cancelnumber:(id)sender;
- (IBAction)buttonoperation:(id)sender;
- (IBAction)buttonnumber:(id)sender;


@end
Run Code Online (Sandbox Code Playgroud)

请修复此代码.

objective-c expectations

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