visual-studio

How to deploy web app directly from Visual Studio 2008?

I used to use discountasp.net and I can use Visual Studio 2008 to "publish" the website directly to the web host. I am using a dedicated server now (well, to be exact, Amazon EC2 Windows), how should I setup the web server so I can deploy the website directly from VS 2008? I tried to setup a FTP server but couldn't get it working. Thank...

Does anybody have experience with Visual Studio 2008 on Windows 7?

Has anyone already tried this, anything particulair that I need to be aware of? ...

What is the best practices for directory structures in my Visual Studio project?

I have this: SolutionName: Foo.sln Assembly: Foo.Bar Namespaces are: Foo.Bar.Views Foo.Bar.Model Foo.Bar.BusinessObjects Foo.Bar.Services Should the directory structure be like this? __Foo/Foo.Bar/Foo.Bar.View__ or __Foo/Bar/View__ ...

Why do the records get deleted in an access database when I open the file in access?

I'm developing a simple database app in visual studio (c# for Windows) using an access backend. That's all fine until I try to open the database file from within access, when all the reocords get deleted. Could anyone explain why this is please? ...

WSE client project keeps reverting WebServicesClientProtocol to SoapHttpClientProtocol

Despite enabling WSE 3.0 on client projects in Visual Studio 2005, web references I make always end up with service proxies derived from SoapHttpClientProtocol. I have to manually change the inheritance to WebServicesClientProtocol, but updating it will revert back to SoapHttpClientProtocol. I am unsure where in Visual Studio project pro...

Showing generic class eg Table<String> in xml comments in visual studio.

I know this maybe a basic question but I just can't seem to find the answer anywhere. I have a class like this Table<T> {} then I have some code that uses the above class that I would like to comment I would like to be able to do something like: /// <summary> /// blah blah blah Table<String> /// </summary> But I can't use the angl...

Anyone knows how to fix compile error: LNK2005? (Source Code inside).

I have the below code in stdafx.h. using namespace std; typedef struct { DWORD address; DWORD size; char file[64]; DWORD line; } ALLOC_INFO; typedef list<ALLOC_INFO*> AllocList; //AllocList *allocList; Without the commented code (last line), it compiles just fine. But when I add the commented code, Im getting the fol...

VS 2008 Service Pack 1 problem

Hi, My OPS is XP and service pack 3 installed.I cant install vs2008 service pack1,In log file i see 'Visual C++ 2008 SP1 Design-Time Components for x86 - KB947888' cant be installed. Error code is 1603.Last part of Installation file is here. Returning IDOK. INSTALLMESSAGE_ERROR [Error 1335. The cabinet file 'patch.cab' required...

Using Studio's "Custom Tool" in MSBuild

I've got a "Custom Tool" for Visual Studio to munge some template files into code. For consistency and portability I'd like to be able to run this template processor from MSBuild when building outside of Visual Studio. Visual Studio creates the following snippets for the files: <!-- the template --> <None Include="Template.in"> <Gene...

C++ Linker Error

Hi, I had a function like this, that wasn't within a class: // Gets the maximum number of tracks displayable const utils::uint32 GetConstMaxSystemRange() { return constMaxSystemNumber - constMinSystemNumber + 1; } It compiled fine in VS2005, but then I got linker errors for each file after the first one to include it, even thoug...

Why is Visual Studios Installer not picking up dependencies

I'm using Visual Studio 2005. I have a program written in C#. When I create the installer and then add the primary output, it's not picking up any dependencies. Not even .Net. Anybody have any ideas? ...

Formula parsing / evaluation routine or library with generic DLookup functionality

I am writing a .Net application where I must support user-defined formulas that can perform basic mathematics, as well as accessing data from any arbitrary table in the database. I have the math part working, using JScript Eval(). What I haven't decided on is what a nice way is to do the generic table lookups. For example, I may have a...

VS2005: Assembly '<assembly>' is incorrectly specified as a file.

i've added a reference to the log4net assembly dll to my project. When i build i get a warning saying: Warning Assembly 'Lib\log4net.dll' is incorrectly specified as a file. i look up the help for this error on MSDN, and it says: This warning is generated during application manifest generation when the build process de...

Can I bind multidimensional data to a DataGridView in C# and .NET?

I'm looking to develop an app which features worksheets subclassed from DataGridView. Users can paste (or import) CSV-like data into the worksheet and it will be reflected in a data structure in memory - my first guess would be a 2D array of floats. DataGridView can be bound to objects with a certain set of interfaces (i.e. IList, ILis...

Can one access TestContext in an AssemblyCleanup method?

In Microsoft's UnitTesting namespace (Microsoft.VisualStudio.TestTools.UnitTesting) there are AssemblyInitialize and AssemblyCleanup attributes you can apply to static methods and they will be called before and after all tests respectively. [AssemblyInitialize] static public void AssemblyInitialize(TestContext testCtx) { // allocate...

C++ Builder or Visual Studio for native C++ development?

I've decided I want to get more into native code development with C++. I'm trying to decide if I would be better served using CodeGear C++ Builder 2009 or Visual Studio 2008. I currently use Delphi 2007, so I'm very comfortable with C++ Builder's IDE (its the same as Delphi), as well as the VCL and RTL. I've never been a big fan of MFC ...

Visual Studio: Find the assembly of a class

Me stupid. How can I know which assembly to reference if I just know the name of the class, for example System.Collections.Specialized.StringCollection. (Yes, I know that more often than not I can make an educated guess by looking at the namespace.) Thanks Alex ...

SharePoint WebPart Packages and dlls

Hi I have a SharePoint WebPart project in visual studio. As part of the project I am referencing the interop.ActiveDS.dll. I can compile the project successfully and add/deploy the solution to SharePoint. When I try to run the WebPart in SharePoint I get the error: That assembly does not allow partially trusted callers. [SecurityExce...

Visual Basic Compiler keeps crashing

The question really says it all. For one project I am working on, the Visual Basic Compiler crashes resulting in me having to restart my IDE. It looks like it crashes when copying a PDB file and XML file for the web site for obj/debug to the output folder. Has anyone experienced similar crashes? If so how did you repair it? Are the...

Can Visual Studio 2005 Pro generate UML style class diagrams?

Can Visual Studio 2005 Pro generate UML style class diagrams? ...