创建Azure数据库和Azure站点.使用Azure站点提供的连接字符串并填写密码.当我尝试通过应用程序访问数据库时,会返回错误
用户'stefan'登录失败.System.Data.SqlClient.SqlException:用户'stefan'登录失败此会话已被分配了一个跟踪ID"6ee9a27b-4be7-494b-aadd-7b05a8a3bddb".在需要帮助时,请将此跟踪ID提供给客户支持.
如果你访问http://clickpc.azurewebsites.net/ 可以看到你自己的错误.
我可能认为在连接节点的IP的sql IP配置中拒绝访问
我允许从Azure到数据库的连接,但似乎仍然被拒绝访问
我有一个txt文档,有超过14000个不同的行,其中许多是重复的,是否可以计算唯一条目的数量?
我有一些代码可以在visual studio中编译,但是在不同的ide中它不能编译.
返回的错误是System.IO文件不包含"ReadLines"的定义.
我正在使用system.io
与eror一起出现的代码部分是ReadLines.
任何人都可以提供灵魂吗?
using System;
using System.IO; // enable the user of different sections of the .net framework
using System.Linq;
using System.Collections.Generic;
namespace HashTagAssignment
{
class HashTag
{
static void Main(string[] args)
{
string tweets = File.ReadAllText(@"F:\tweets.txt"); // Retrives Text from file and loads into console
{
Console.WriteLine(tweets); // writes contense to console
{
var lineCount = File.ReadAllLines(@"F:\tweets.txt").Length; // counts number of lines in the whole document
Console.WriteLine("Number of Lines:{0}", lineCount); // displays answer
{
var result …Run Code Online (Sandbox Code Playgroud)