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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.