Feeds:
Posts
Comments

Archive for the ‘visual studio’ Category

UPDATED: Find the new Youtube Link below!

Dear all,

episode 4 of SP5 is ready! This time it is dealing with the topic of moving site collections from one content database to another. Click below to watch the video (UPDATED):

Remark: If you want to create a new site collection using a specific content database, you need to use PowerShell, specifically the New-SPSite cmdlet:

New-SPSite –ContentDatabase <DBName>

This cannot be done from within Central Administration.

The involved cmdlets are:

Get-SPSite (lists site collections)
Get-SPContentDatabase (list content databases)
Move-SPSite (list content databases)
New-SPSite (create new site collection, specify content DB)

Important: After moving a site collection from one content DB to another, an iisreset is required. Be aware that this will cause a service disruption for some time (depending on your server’s configuration). Be sure to execute this only if you are fully aware that this will cause all websites to be inaccessible for some time.

Disclaimer: All tutorials are provided as is. You are responsible for any changes undergoing your system that derive from following this tutorial. It is hence recommended to consult your administrators and verify that the changes cannot harm your IT environment in any way.

Stay tuned till the next time!

Martin

Advertisements

Read Full Post »

Dear all,

 

Shallow Copy is one of the new features added by the SharePoint Server 2010 SP1. Citing Microsoft, it does the following:

 

Shallow copy is a migration technique in which structured site collection data is moved across content databases while the unstructured data remains untouched in its originally configured BLOB store.

 

Sounds good, doesn’t it? In other words: The effort to migrate RBS-enabled site collections is greatly reduced – because we don’t have to consider the moving of the BLOB content anymore. Good!

 

The shallow copy can be performed using the Move-SPSite cmdlet, by simply specifying the RbsProviderMapping parameter. Here is an example:

 

Move-SPSite -Identity <Url> -DestinationDatabase <DB> 
–RbsProviderMapping @{"sourceProvider1"="targetProvider1",
"sourceProvider2"="targetProvider2"}

 

As stated before, only the structured content database is copied, while the unstructured content, such as BLOB files lying on file systems, remains untouched. Only the ownership information for the BLOB content is copied to the destination database.

 

Stay tuned till the next time!

Best regards,

Martin

Read Full Post »

Dotnet DevCon-Speakerbanner

Dear all,

As I am preparing my session for the .NET DevCon conference in Nuremberg, I’d like to give you a idea of what I’m going to talk about. It’ll feature Visual Studio Add-Ins, with a major focus on productivity-increasing add-ins. Furthermore, it will briefly explain the necessary steps to be taken once a developer can’t find a needed functionality. And last but not least, it’ll also include something SharePoint 2010 related. So stay tuned!

 

On the 6th of June, we’ll also be at the OpenNight, to be available for community and developer questions.

 

See you there, at the .NET DevCon!

 

You can find an abstract about my session here.

 

Best regards,

Martin

Read Full Post »

Dear all,

It’s my pleasure to announce that I have been invited as a speaker for this year’s .NET DevCon conference on 6th and 7th June in Nuremberg (Germany). I’m looking forward to this great opportunity to meet a lot of interesting people!

I am going to hold a session about productivty increasing Visual Studio 2010 Add-Ins. The talk will be based partially upon an article I wrote for the German dotnetpro magazine:  “Die Crème de la Crème”.

Here you can find an abstract of the session:

Produktivitätssteigernde Visual Studio Add-Ins

And here speaker profile page:

http://www.dotnet-devcon.de/Speaker/Angler-Martin

For a current list of publications, please check my Publications page.

Maybe I’ll see some of you there! 😉

Best regards,

Martin

Read Full Post »

Hi all,

I just put onto the Visual Studio Gallery the new version 1.2 of WADA. Mostly, I tried to fix some stability issues when querying the processes after W3WPs crash or an IISRESET occurs.

 

  • WADA 1.1: IISRESET –> “Get Procs” –> No results –> Restart VS 2010
  • WADA 1.2: IISRESET –> Refresh Webapp –> “Get Procs” –> Results

This means, if you execute an IISRESET, the worker processes end, and in order to make them run again you should refresh the web application you are testing (this will issue a new W3WP process). Then, just click on “Get Procs” in order to visualize the processes again. This should fix the problem of the annoying VS restart when wanting to see the processes again in WADA.

 

image

Fig.1 Multiple selection of processes

 

Attaching improvements

Now, there is also the possibility to attach to multiple processes, by simply clicking on each of the desired and then pressing “Attach”.

If you want to simply attach one process, just double click on that process, and the attach will be performed.

 

Planned future improvements

– Remote debugging

– <your improvement suggestion here>

 

Thank you all for your suggestions and valuable feedback, and keep sending more of it! This project isn’t finished, yet, and feedback/suggestions are always welcome.

 

Best regards,

Martin

Read Full Post »

Howdy,

Once again about WADA, but this one will be short. I’ve added a new functionality, which is:

 

  • Filter W3WPs by related Identity (as of the application pool)

 

Thanks to my colleague Patrick  for suggesting this functionality!

The UI has changed a little, offering the new drop down for the identities:

WADA_1.1_Screenshot

The WADA 1.1 download is still available at the Visual Studio Gallery.

 

Please note: The Application Pool- and Identities-Filters are mutually exclusive.

 

Best regards,

Martin

Read Full Post »

Hi fellows,

Today I released the first version of the WADA Visual Studio 2010 extension for web developers – it enables you to being able to attach processes to the VS debugger – not simple processes, but the w3wp. I guess, some of you know the issue:

  • > 1 application pools
  • > 1 w3wp processes

How could we know which process is right for being debugged by us? First, we could use one of the numerous scripts out there (like iisapp.vbs for Windows 2k3), but they provide poor integration into the VS2010 IDE (actually none at all). This is where the strengths of using WADA come into play.

What this Tool Can Do:

  • List all w3wp processes, along with the application pool names
  • List w3wp processes for a specific application pool
  • Attach a selected process to the debugger

Why should I Choose This over Scripts?

  1. You can remain in the IDE
  2. Directly attach W3WP to the Debugger (not possible with e.g. iisapp.vbs)
  3. Filter by Application Pool of Interest (not possible with e.g. iisapp.vbs)
  4. No more need for manually matching IDs (from script output) against the “Attach to Process” window’s process list

Is it Bulletproof?

No. Not at all. Please be aware that this extension comes in its first version and may contain errors and/or undesired behaviour. It also assumes that you have administrative rights on the machine you are working with it (also VS must be run in administrator mode). Hence, I’d like to emphasize that I cannot be held liable for any usage of the code causing undesired behaviour, loss of data, any damages caused to any soft- or hardware (including source code) of the user. Please do not try it in production environments. It is intended for testing purposes only.

In case you intend to test it, it would be really nice if you provided some feedback on it using the post.

Screenshot

WADA_Screenshot

Usage

  1. Go to View -> Other Windows -> WADA Advanced Attacher
  2. Select Application Pool of Interest (optional, otherwise all will be considered)
  3. Click “Get Procs” (ensure that “Only W3WP” is checked)
  4. Select Process from list
  5. Click “Attach”

Download

WADA 1.0 (Visual Studio Gallery)

Installation is done simply through double-clicking on the downloaded .vsix package.

I hope you enjoy it!

Best regards,

Martin

Read Full Post »

Older Posts »