visual-studio-2008

Upgrading Visual Studio web service project says to "convert to web application."

I have a Visual Studio 2003 web service project that I have to upgrade to Visual Studio 2008. After I have run the conversion wizard, I get this message: You have completed the first step in converting your Visual Studio .NET 2003 web project. To complete the conversion, please select your project in the Solution Explorer an...

Change the initial url of the debugger in visual studio 2008 [ASP.NET MVC]

I was wondering if there is an option to change the debugger url when I initialize the debugger. I want it to start off at http://localhost:xxxx/controller/view rather than just http://localhost:xxxx/. ...

background worker in asp.net

I migrate my winforms crawler app to a asp.net web app and would like to know how to implement the background worker thread that I use for very long searches? Another posting mentioned asynchronous pages but I am not sure if this would work or how to apply it. The search function that would run can sometimes run for a few days and I wou...

How do i add .pdb file associated with a lib file?

How do i add .pdb file associated with a lib file? I am importing a .lib file in a C++ project. When I build it i get an error saying that vc90.pdb does not contains the debug information. I have the pdb file associated with the library. how can i add it to my current project. Thanks ...

Any way to surround code block with Curly Braces {} in VS2008?

I always find myself needing to enclose a block of code in curly braces { }, but unfortunately that isn't included in the C# surround code snippets, which seems to be an oversight. I couldn't find anything on building your own surround snippets either (just other kinds of snippets). I am actually running Resharper too, but it doesn't...

How to create item templates for SQL files, for Visual Studio Database Projects

It's possible to define your own custom templates for normal project types, such as templates for C# files, for a Class Library project. What about a 'Database Project' scenario? I would like to define a standard template for adding a stored procedure, which uses the company's conventions for all stored procedures, such as standard com...

how to find file's path according to filename?

i have filename according to this file name. i need to find file's path. how to find file's path according to filename? i need to find file's path according to file name sample code: string path= System.IO.Directory.GetDirectories(@"c:\", "kategori",System.IO.SearchOption.AllDirectories).First(); But i need : string path= ...

how can i diagnose exception in window 7 release mode compilation with VC 2008

Hi i have strange problem , my application (exe) is working fine in debug mode in windows 7 but stop to work with exception when compiling in release mode . how can i debug the program to find what is causing the exception this is application with more then 300,000 lines of code .. ...

How to send file to remote computer?

i can get file name via below codes. How can i send this file to remote computer. this remote computer ip: 192.168.2.105 also i can use 51124 port class Program { static void Main(string[] args) { string[] dosyalarinYollari = System.IO.Directory.GetFiles(@"z:\20071008\1.2.392.200036.9116.2.6.1.48.1215...

Counterpart for NUnit attribute [SetUp()] in Visual Studio

I am "translating" a NUnit test to Visual Studios unit testing and I am wondering if the attribute [ClassInitialize()] in VS is equivalent to [SetUp()] in NUnit? ...

Unit Testing - Am I doing it right?

Hi everyone, Basically I have been programing for a little while and after finishing my last project can fully understand how much easier it would have been if I'd have done TDD. I guess I'm still not doing it strictly as I am still writing code then writing a test for it, I don't quite get how the test becomes before the code if you do...

How to open a document in a VS2008 macro?

I recorded a temporary macro in VS2008, in order to find out how to open a particular document so I can then edit it. Unfortunately, the macro doesn't work when run. I am guessing that this is because the macro works with the DTE.ActiveWindow object, and when I recorded the macro this is different than when the macro is re-run. When r...

hw can i add flash image on my homepage

sir im using visual studio 2008 and im making help desk project on asp and sql server so tell me hw can i add flash backgroung on my home page ...

get current time?

How do you get the current time in VC++ CLI Visual Studio 2008, ...

LNK2005: delete already defined error in VC++

Hi, I am newbie to VC++, so please forgive me if this is stupid. I have got 7 solutions under one project. Six of these build static libraries which is linked inside 7th to produce an exe. The runtime configuration of all the projects is MultiThreaded Debug. sln which is used to produce exe is using MFC other slns use standard runtiem ...

[VS2008] - Run Add-in from PrebuildEvent

I'm writing an VS 2008 add-in to synchronize Setup project Version with startup project assembly version. It works fine. But I was wondering if it was possible to call add-in from the Prebuild Event of my setup project. It works fine by command line window, but I didn't find any syntax to make it work in prebuildEvent. Is Someone has an...

Migrating to web application with AjaxControlToolkit

Hi All, We are currently migrating our ASP.NET website to a web application in Visual Studio 2008. Most of the process has been fairly straight forward, but I have hit one block that is driving me a bit nuts. We are using the AjaxControlToolkit for some functionality, specifically an AutoControlExtender. When this is run locally throu...

WindowsForms difference to simple Console App

I currently started to "port" my console projects to WinForms, but it seems I am badly failing doing that. I am simply used to a console structure: I got my classes interacting with each other depending on the input coming from the console. A simple flow: Input -> ProcessInput -> Execute -> Output -> wait for input Now I got this bi...

How to add portion of SQL database to App_data folder in VS 2008?

I have 32-bit XP with SQL Server 2005 Express and VS 2008. I have successfully added the Adventureworks DB to my VS website and I can see it from SOlution Explorer, however, the entire DB is attached. How would I only attach a few of the tables and stored procedures from this DB? ...

Using Silverlight with Existing Application

This seems like a very basic question but I couldn't find any help on web. If you could provide some link or steps to do this. I have created few basic Silverlight applications which are working fine standalone. I also have a basic ASP.NET application with a solution with around 10 Class Library Projects and 1 website. I want to create ...