vsts2008

How to create an asynchronous build event in Visual Studio (2008)?

I am trying to do a poor man integration with xUnit.Net from inside Visual Studio as a post build event. What I want is when I press Shift+F6 (Build the test project), after a successful build it should run xUnit.Console.exe and output the result in an html file and afterward launch the html file inside the browser. Below is what I got...

authentication integration issue

Hello everyone, I am using SharePoint 2007 Enterprise + Publishing portal template + Windows Server 2008. I am developing using VSTS 2008 + C# + .Net 3.5. I need to implement SSO (Single Sign On feature) with another site. The SSO protocol is like this, The other site will send me information like http://mysitename/default.aspx?Identi...

What is the VC Accelerator Editor in Visual Studio 2008

Is this for C++? Is this for C#? What are Accelerator Editors in general? EDIT It seems that Accelerators are Keyboard Shortcuts. So now I really just want to now if VC is C# or C++? ...

Forms authentication login page issue

Hello everyone, I am using SharePoint 2007 Enterprise + Publishing portal template + Windows Server 2008. And I am developing using ASP.Net + C# + .Net 3.5 + VSTS 2008 on SharePoint Server 2007. I am developing a custom authentication provider based on Forms authentication. When an anonymous access a page which needs authentication, by ...

how should i deploy resources like icons?

What is the best practice for deploying / packaging resources like icons? I'd like to avoid loose files due to the number of icons. Can I create a "resource" dll in visual studio? If so, is this the best way to go? What is the process? ...

how to set current user name in SharePoint?

Hello everyone, I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5. I am wondering whether SharePoint has any means to set current user to be some specific user? For example, I want to set the user to be administrator automatically when people connects from a...

how to add C# code in default.aspx in SharePoint

Hello everyone, I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5. I want to add some C# code to default.aspx (more details, adding some logics to Page_Load method of default.aspx) and its code behind file. But I did not find default.aspx and its code behind...

two basic Forms authentication issue in ASP.Net

Hello everyone, I am developing on Windows Server 2008 with VSTS 2008 + C# + .Net 3.5 to develop an ASP.Net application using Forms authentication. I am learning Forms authentication from http://msdn.microsoft.com/en-us/library/aa480476.aspx I have two basic questions, I think after call method "FormsAuthentication.SetAuthCookie", th...

VSTS 2k8 crash causes project lock (as in checked out for edit)

Hi guys, My laptop crashed this morning, badly, and I spent most of the day running HDD checks and I'm now back on track, to a degree. Anyway, VS now seems to think that my projects are checked out by source control (I have VSTS 2k8) and will not allow me to add anything to the project. I can open and edit existing files, and even there...

how to get current URL in SharePoint?

Hello everyone, I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5. I am using left navigation area (in SharePoint terms, it is also called current navigation area), and each item in the left navigation area maps to ...

how to add a WebPart to all pages in a SharePoint site?

Hello everyone, I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5. I want to know how to add a WebPart to all pages of a SharePoint Site? Any reference samples? I want to use this WebPart to display some common inf...

How do i configure team system 2008

I am installing VSTS. What components do i need to install for both .net & sql server. ? How do we configure our projects? ...

Error compiling pre-generated view in VS 2008.

I am created pre-generated views for my EDMX using VS 2008, .NET 3.5 and Entity framework. I have generated using the t4 templates mentioned here and got my mymodel.views.cs file. It's around 40 mb is size. Added the views.cs file to my web application and my web service. When i build the apps, the webservice would build without any er...

how to filter a list on SharePoint

Hello everyone, I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5. I have defined a custom list manully on a SharePoint site (all column types of the custom list are SharePoint built-in types), and I want to define ...

Silverlight xap file hosting issue

Hello everyone, I am using VSTS 2008 + .Net 3.5 + C# + Silverlight 3.0. I am developing a Silverlight xap application. And I want to allow 3rd party web sites to reference my xap file, for example, 3rd party web site could use an iframe to reference my xap application directly from my IIS 7.0 web server, and using such iframe to embed m...

Windows Media Service 2008 authentication plug-in sample?

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + Windows Media Service 2008 on Windows Server 2008. I want to develop a custom authentication sample. I want to use C#. But what I find is C++ samples. For example, http://msdn.microsoft.com/en-us/library/dd892688%28VS.85%29.aspx Any simple C# samples? thanks in advance, George ...

Unauthorized access error to html pages in IIS 7.0

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0. I have created a new web site and put an html file into the directory. And when I use browse function in IIS manager to browse the html file, I met with the following error, any ideas what is wrong? BTW: I am very confused about unauthorized error since I run the worker pr...

debugging error -- error attaching to w3wp.exe

Hello everyone, I am using VSTS 2008 + .Net 3.5 + C#. And I developed a custom Forms authentication module for IIS 7.0 and I attach to w3wp.exe to debug this module. During the attach process (I just select Tools -> Attach to Process, no further operation performed on the computer I am debugging -- I just wait for the attach to be compl...

error installing VSTS 2008 SP1

Hello everyone, I am installing VSTS 2008 SP1 on Windows Server 2003 R2 32-bit, which has already installed with VSTS 2008 successfully before. I met with the following error (from install log, at almost the end of install progress from progress bar), any ideas what is wrong? (IronSpigot::MsiExternalUiHandler::InstallMessageErrorHandle...

authorization error when accessing an aspx page

Hello everyone, I am using SharePoint Server 2007 Enterprise with Windows Server 2003 R2 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5 + IIS 6.0. I have put a simple aspx page into layout folder (the code is very simple, just redirect to another page, and I write inline script code in asp.net), here is my code, and I met ...