visual-studio-2012

Can I ignore logins when publishing a Visual Studio Database project?

北城以北 提交于 2019-12-25 06:15:21
问题 We have a SQL Server that uses SQL Server Authentication, with users that can deploy, and others that can read, for the sake of simplicity, I'll call them "deploy" and "web". I'm having difficulty setting permissions up using a Visual Studio (2012) Database project, as the "deploy" user does not have sufficient permissions to create new server logins. I can add scripts to do things like: GRANT SELECT ON foo.bar TO [web] This then sulks (with "SQL71501: Permission has an unresolved reference

Prevent all users being able to see all users, teams, groups and iterations in TFS / Visual Studio Online

孤街醉人 提交于 2019-12-25 05:34:10
问题 I am trying to implement a single Team Project with multiple sub-projects as recommended by this guy and this guy. I can control visibility of work items and source control folders but I cannot control visibility of iterations, teams, groups, and members. Say I have Team Project as the parent project of several sub-projects. Project1_Group has permissions only for accessing Project1_Area and Project1_Foler etc. I place User1 in Project1_Team and Project1_Group and as expected that user can

How to publish my windows form application with database

北战南征 提交于 2019-12-25 05:25:10
问题 I am developing Winform application using vb.net and MS Access in Viusal Studio 2012. I completed my application and now i just wanted to publish it. In my project Solution I have forms and rpt files (crystal reports). I use the following connection string to my database which is not included to my project solution : conn.ConnectionString = "provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Application.StartupPath & "\tblcmplist.mdb" Now the database should be there in folder where my

What is the simplest way to pull a local xml file and apply it to the windows 8 java script grid layout template data.js file?

与世无争的帅哥 提交于 2019-12-25 05:23:15
问题 My apologies if the question is overly simple or asking for a bit too much but I feel like I am very close to a simple answer and still too far. All I am trying to do is use the grid layout template in Visual Studio 2012 express to integrate xml data into the grid layout template. I've been really stumped with the winjs.xhr as a means of pulling the xml data. My xml file has nodes to match the group titles, item titles and page content. My partially edited data.js file is below: (function ()

How to display Yes/No instead of True/False for bool? in c#

时光总嘲笑我的痴心妄想 提交于 2019-12-25 05:15:59
问题 I get the error "Cannot implicitly convert type 'string' to 'bool'. How do I return 'Yes' or 'No' instead of true/false? public bool? BuyerSampleSent { get { bool result; Boolean.TryParse(this.repository.BuyerSampleSent.ToString(), out result); return result ? "Yes" : "No"; } set { this.repository.BuyerSampleSent = value; } } 回答1: You can't return a string if the return type is bool (or bool? in this case). You return a bool : return result; Notice, however, that you ask... How to display Yes

windows service not executing OnStart entry point

醉酒当歌 提交于 2019-12-25 04:41:03
问题 I have a windows service installed, Some.WindowsService wService = new WindowsService(); Some.Server server = new Server(); Some.Service service = new Service(); Some.Request request = new Some.Request(msg, Id); var ReturnedResult = server.Execute(request); I checked in Service, the "Some" is running in Service normally. I don't know how to initialize so that I can reach the protected OnStart() function in WindowsService, and so that it can call the functions in OnStart() Function. Any idea

How do I generate a pdf document from vb.net ready for printing

ⅰ亾dé卋堺 提交于 2019-12-25 04:22:17
问题 I have been assigned the task to develop a software for generating bills. I have created the database, i have created the front end in VB.NET, but, the main problem is printing the data displayed on the form. The form contains some labels, the VAT, the sub total and the total billed amount. It also displays the list of items in a DataGridView. How can I generate a pdf and print the form as a bill for the customer(without including the buttons)? I am attaching an image to give you an idea

Visual Studio 2012 include files and folders in project

谁说我不能喝 提交于 2019-12-25 04:12:04
问题 I made a bunch of changes to a folder. I checked the whole folder out from TFS 2012 (removes read-only flag) then copied my changes (many files in many different folders) to the working copy, overwritting existing files tried to include all new files into the project But I failed on the last step. For "Include in project" I need to select the target files oder folders, but this is no option, too many files in too many folders. Is there some way to do it efficiently, without going through

ASP.NET MVC 4 C# - Internet Application Template using default SimpleMembership, Error: System.Data.SqlClient.SqlException: Login failed for user xxx

放肆的年华 提交于 2019-12-25 03:54:28
问题 I am running the application locally (localhost), and since I have already registered, I log in properly and then can navigate regularly through all the pages of my application. Then without logging out, I close the IIS express. But when I start again the IIS Express and debug again my application from Visual Studio, the following Error is displayed in my browser: " Server Error in '/' Application. Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'xxx'.". Where

How I can close a text file after I edited?

Deadly 提交于 2019-12-25 03:53:29
问题 I have a text file installer_input.txt and a checkedListBox2 in a form application . I want to edit the text file if I have some changes in checkesListBox2 . I have two parts of code, I know that are so long, but I need some help : private void checkedListBox2_SelectedIndexChanged(object sender, EventArgs e) { string path = AppDomain.CurrentDomain.BaseDirectory.ToString(); var lin = (path + "config.ini").ToString(); var lines = File.ReadAllLines(lin); string InstallerFile = lines.Where(txt =>