HTTP错误401.0 - 从Visual Studio 2013运行IIS Express时未经授权

时间:2016-10-13 00:15:56

标签: c# asp.net-mvc visual-studio iis iis-express

我正在使用Visual Studio 2013 Pro和Update 5.

当尝试在浏览器中运行我的一个MVC 5项目时,我收到以下错误

  

HTTP错误401.0 - 未经授权您无权查看   这个目录或页面。

    char * symbolInList = listOfSymbolTokens[0];
    char * addressOfSymbol = listOfSymbolTokens[1];

    printf("symbolLookingFor: %s\n", symbolLookingFor);
    printf("symbolInList: %s\n", symbolInList);
    printf("addressOfSymbol: %s\n", addressOfSymbol);
    if (strcmp(symbolInList, symbolLookingFor) == 0) {
        strcpy(tokenAddress, addressOfSymbol);
        return;
    }
    printf("did not enter for loop\n");

我尝试将symbolLookingFor: abc symbolInList: abc addressOfSymbol: 3011 did not enter for loop 添加到Web.config文件中的The authenticated user does not have access to a resource needed to process the request. 部分。但那没用。

如何解决此问题?

以下是我的web.config文件的样子

<authentication mode="None" />

0 个答案:

没有答案