visual-studio-2008

login with admin and guest

ok i have my GUI installed on the server which has users as administrator as the role of an administrators and user1 which has the role of the guest... I have one project and there are different pages for administrators and guests... when the login screen comes up and the administrator logs in he should be redirected to the admin.aspx p...

Set / Reset Option in Visual Studio 2008

When we install Visual Studio 2008, we are asked about the settings for our environment like visual c# / visual basic etc. When set, We may alter these options from Tools --> Options --> Environment / TextEditor etc My problem is, if we "mess" up these settings!!!! is there any way to restore defaults or particular Settings Template ...

How to regenerate (update) LINQ to SQL DataContext?

I use LINQ to SQL in a WPF project. I have made small changes in the database (changed datatype of the fields, which contain no data). Now I want to regenerate (refresh) the LINQ to SQL DataContext of this project (I use VS 2008). I try to right-click on .dbml item in my Solution Explorer and choose "Refresh", but nothing happens. How ...

crystal-report problem + Oracle

hi i have build C# program that connect to Oracle and make some report's using crystal-report. in my computer it work's excelent (when i bind to my Oracle) but when i run my program on other computer - the program work and i see the data on the screen, but when i try to see report with crystal report i get error (problem with connection ...

Difference between Arguments and CustomActionData in VS CustomAction

In a Visual Studio 2008 setup project, what is the difference between the two properties: Arguments and CustomActionData? In the descriptions that I've read on MSDN, they sound about the same. When should a person use one vs the other. http://msdn.microsoft.com/en-us/library/kyd017kk%28VS.80%29.aspx Thanks, Neal ...

Visual Studio: CTRL+M CTRL+V (.Net MVC)

I've seen this combination (CTRL+M CTRL+V) used to create Views for ASP .Net MVC with Visual Studio, but it doesn't work on my computer. So I was wondering where does it come from and how to make it work? Solution: Apparently MVC was not registered within Visual Studio, so I had to reinstall it. The shortcut is added by MVC. ...

Silverlight Application in VS2008

Hi can any one tell me how to create a silver light application in VS2008 ...

Visual Studio 2008 web express: create new SQL Server database

I just downloaded Visual Studio 2008 Express Edition and I want to create a local SQL Server database so I can start local development. How do I get started? How do I create a local SQL Server database? ...

Hot Key for a VS 2008 Macro?

I've written a little macro for my VS 2008 IDE, and I want to associate it with a hot key. From what I can see, the keyboard shortcuts in the Tools/Options only allow you to select from the predefined actions. Is there any way to associate a hot key with a user-defined macro? ...

Versioning SQL Server DDL code

I'd like to have all DB DDL code under CVS. We are using Subversion for our .NET code. But all Database code remains still unversioned. All we know how important DB logic can be. I've googled but I've found only few (expensive tools) I believe there exist other (cheaper) solution(s) I'm wonder your approach. How do you implemente...

Is there a way to *completely* disable Edit and Continue?

I was wondering if there was a way to completely lock my code while debugging it within Visual Studio 2008. The code documents lock automatically when running as 64 bit applications, which I greatly prefer; however, I do most of my coding making add-ins for Excel, which is 32 bit. The result is that even though I target 'AnyCPU', the VS ...

Using cmd.exe in a VS Setup Custom Action

I set my Custom Action to cmd.exe and adding these arguments: /K XmlPreProcess.exe /x:"[SETTINGSFILE]" /i:"[TARGETDIR]web.config" [CUSTOMSETTINGS] /e:[ENVIRONMENTBUTTON] >log.txt I'm trying to either: a) stop the command screen so I can read it b) write the results to a file so I can read it. [ENVIRONMENTUTTON] should be equal...

VS2008 Update Web Reference creates naming conflicts in Reference.cs

Hello there, I have a Web service which, when updated on one computer with VS2008 works perfectly fine, but on another computer does not. The critical difference is the contents of the auto-generated Reference.cs. In the correctly functioning environment, the methods have fully qualified class names, refering to classes in a class libr...

Unit Test configuration for ASP.NET application

This is my first test for Asp.Net Web Application. We have an Engine consisting of several modules. I need to test classes in Engine Module. Though these clases are part of Asp.Net App, they consists of only business logic. How can I test these classes in isolation other being part of WebApp ? because i am getting this error The Web r...

Can I set a breakpoint in included code?

I have something analogous to the following code snippets: // file alpha.c void function_A() { int i; #include "code.h" } and //file beta.c void function_B() { int i; #include "code.h" } and // file code.h for(i = 1;i < 10;i++) { // do some stuff if (very_rare_event) { // do something else }...

Visual Studio internet connection failue

Last night my Visual Studio was working fine. Today it fails to connect to the internet (can't download rss feeds or connect to my TFS Server). My internet connection is working fine (I am using it to write this). What could cause this? Are there settings that I can get at to fix it? The only clue I have is that Resharper is giving ...

Visual Studio 2008 devenv running application, then leaving ghost

I'm developing a C#/WPF application using Visual Studio. This app uses a com port, then releases it upon exit. I'm using the debugger to run and stop this application often. Sometimes, I get an exception when starting up a debug session saying that the com port is already in use. The code always closes the open com port on exit, so I ra...

Visual Studio 2008 Winform designer fails to load Form which inherits from generic class.

Hi, i have a winforms project, and i created a class on assembly A that inherits from System.Windows.Forms.Form to serve as a base class for various forms on my project, the base class is something like: public partial class DataForm<T> : Form where T : class { T currentRecord; protected T CurrentRecord { get ...

One R#5 license for VS 2008 & 2010? (only one at a time)

R#5 supports VS2008 and VS2010? Can I use it in both IDEs on my one workstation with only one license? I won't run the two IDEs at the same time. ...

silverlight 3 navigation page not availble in VS as item to add

I've recently upgraded my computer from Vista Home Premium 64-bit to Windows 7 Home Premium 64-bit. I've re-installed VS 2008 web express, and re-installed all the silver light sdk's, tools, etc. But now when I want to add a Silverlight Navigation Page, it is not avialble to me in the list of items that can be added. The navigation dl...