How to permanently assign TargetServerURL in Visual Studio .NET

Hello there,

I have SSRS deployed on a machine that also have Microsoft Office SharePoint Server 2007.

Due to the conflict between SSRS and MOSS, I had to change the virtual directory of the Report Manager from the default (http://localhost/reports) to http://localhost:8080/reports.

My problem is whenever I create a new SSRS report project in Visual Studio .NET, I have to change the "TargetServerURL" name in the project properties to reflect the new URL.

So I was wondering if there is a setting in the Visual Studio .NET environment that would allow me to do that change once and for all, so that any new project will automatically have the revised TargetServerURL.

It appears to me that this maybe in one of the .config files

Appreciate your help
Who is Participating?
brejkConnect With a Mentor Commented:
Unfortunately, it seems you can not export template from Report Project. But you can play with...

%programfiles%\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\ReportProjects\ReportProject.rptproj

First copy this file so you have a backup :-) Then you can experiment...

I put some sample content in the snippet. So if you put Configurations section there and you will set TargetServerURL tag, then in all new projects those settings will be kept. However, it seems that leaving any of the properties in Options section unset causes that in every project those settings will be empty when you create the project.
<?xml version="1.0"?>
<Project xmlns:xsi="" xmlns:xsd="">
  <DataSources />
  <Reports />
        <TargetDataSourceFolder>Data Sources</TargetDataSourceFolder>

Open in new window

MehawitchiAuthor Commented:
Thanks brejk

That was helpful, but I have a feeling that there is somewhere in VS.Net a config file or preference menu in which you can alter the "TargetServerURL" property in a more user-friendly manner.

Thanks again for your help. Much appreciated
I found that this solulation Q_23152666 (by brejk) works great, BUT not with the <TargetReportFolder> XML tag...

When you try to set that, the box in VS2005 is blank.

Is this the wrong name for the tag?
How could I set the default target report folder to "TEST" as well?
- Gav-B
Business Reporting Analyst


Open in new window

All Courses

From novice to tech pro — start learning today.