Showing posts with label password. Show all posts
Showing posts with label password. Show all posts

Thursday, March 22, 2012

Deployment of SQLce - DATASOURCE issue

My connection string is simply

Data Source ="|DataDirectory|\Data\Test.sdf"; Password ="test";

and it runs just fine...

I did a simple publish (simple public, no checking for updates or anything)

When the public completes I run the install app. I get the following odd error during install:

************** Exception Text **************
The path is not valid. Check the directory for the database. [ Path = C:\Documents and Settings\jlibertor\Local Settings\Apps\2.0\Data\DZN9D6Y7.8E9\N0WB27KY.XZB\test..tion_b3b178185207c0b7_0001.0000_ef52a43c912d4680\Data\Data\Test.sdf ]

So... any ideas? thansk so much in advance!

have you tried;

Data Source ="|DataDirectory|\Test.sdf"; Password ="test";

Otherwise you can possibly override by using: AppDomain.Setdata

|||

OK I figured it out. ther were 2 reasons...

And if thsi helps anyone I'll past a few things:

You can set the DataDirectory using this code:

AppDomain.CurrentDomain.SetData("DataDirectory", System.AppDomain.CurrentDomain.BaseDirectory)

Place it in the application startup event.

Tip: you can't use the "My.StartupPath" in the event, and instead have to use "System.AppDomain.CurrentDomain.BaseDirectory"

ALSO

Don't forget that if you are getting this error you may not be publishing your .sdf file! (This my problem too) There are SEVERAL things you need to change in order to publich your file.

Tip: A good way to test if you are really publishign your .sdf file to check your publish package for it.

1-Set the properties of the .sdf file to "Content" and Output to "Copy Always"

2-In your Publish settings, look for yoru .sdf file. and force it to incluce.

Tip: After your user installs this once you don't want to publish it again. You'll want to change the above settings and supress this file (otherise you'll overwrite all of their hard-earned data )

Sunday, March 11, 2012

Deploying Reports in Visual Studio

About half the time I try to deploy a report in Visual Studio, I do not get
prompted for a user name or password and then get a message that says the
user does not have sufficient rights. Sometimes rebooting the computer will
help but not always. I was told that it is a credential caching problem.
Does anyone know how to get around this problem?try to save/reopen the report. If that doesn't work. close and re-run BIDs.
There are still some issues to be worked out with the dev environment.
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.
"Dave banker" wrote:
> About half the time I try to deploy a report in Visual Studio, I do not get
> prompted for a user name or password and then get a message that says the
> user does not have sufficient rights. Sometimes rebooting the computer will
> help but not always. I was told that it is a credential caching problem.
> Does anyone know how to get around this problem?

Sunday, February 19, 2012

Deploy from visual studio doesn't work

Hello, I created a new Rs server, but when I try to deploy from visual studio, it asks me for username and password multiple times and never deploys.

I am an administrator on the RS server, even on the report folders.

I can access via IE to the report manager.

When you access the Report Manager or Report Server (http://servername/ReportServer) via IE, does IE ask you to authenticate? In addition, what deployment settings have been specified in the BIDS project properties?|||

I have the same problem. I can download reports with IE. IE don't ask me for my login or password (it uses the windows session login).

But when I will deploy reports with Visual Studio, the software ask me for my login and password.

I can fill all the possibility (domain\login, login, upper case, lower case, ...) the studio ask me always for my login.

Cant' visual studio use the windows session for login?

Or must I have a particular role?

Regards,

|||VS.NET shouldn't ask you for user id and password. Probably, there is something wrong with your domain setup. What server ahve you specified on the project properties? Did you use the server name or IP address? What happens when you deploy to localhost?|||

I can deploy on a local server.

I use the server name.

The server and my computer (on which is install VS.NET) are on the same domain.

|||Then, for some reason, the server is rejecting the Windows integrated security handshake. Using a trace listener, such as tcpTrace, will help you see the error page returned from the server. I am suprised though that this doesn't happen when you use IE to browse the server, e.g. http://server/reports. If IE doesn't prompt you then I am out of options.|||The strange this is that I disabled the proxy settings on Internet Explorer and now I can deploy from visual studio.|||You may try putting that server name in the IE trusted zone.|||

I will first say that I use SQL Server for the first time.

I have understand my problem and logicaly resolv it. There is two URL, one for the Web site (In my case http://server/Reports) and an other one for the web service (in my case http://server/ReportManager).

So I have tried to deploy report using the Web site URL. When I use the web service URL all it's done.

Thank you every one for our answer.

|||

I'm pretty new to Reporting Services and Sharepoint. I am having the same problem, with the Reporting Services login box displaying continuosly during deploy.

Although I have read this thread, and made the changes (or attempted but did it incorrectly) I am still having difficulty. I am running RS in integrated mode (with Sharepoint).

I can browse out to Report Services (IE6) http://servername:8080/reportserver. There is a directory there that matches the server name. Browsing into that folder I see directories for each of the sharepoint subsites including one called "MYReports" which is where I set up Reporting Services. When I browse into that folder there is one for Report Services Reports (which is the library I set up to hold all the reports). When I browse into that folder I see the reports I have gotten into Sharepoint by uploading them from Sharepoint. At this point the path shown (on the screen - not in the website address portion - that one has lots of strange characters in it) is http://servername/MyReports/Report Services Reports.

The url to get the main Sharepoint site is: http://servername/default.aspx

When I set the TargetServerUrl to http://servername:8080/reportserver - it tells me (essentially) that that isn't supported in integrated with sharepoint mode. When I use http://servername:8080 I get the repeated login prompts.

I have the TargetReportFolder set to: http://servername:8080/MyReports/Report Services Reports/ (just like when I browse there)

the targetDataSourceFolder is set to: http://servername:8080/MyReports/Report Services Reports/Data Sources (a folder to store all the data sources in).

Any help with what I am doing wrong is appreciated.

Shirley

|||

In SharePoint Integrated mode you need TargetReportFolder and TargetDataSourceFolder to point directly to SharePoint Document Library URLs.

You may want to use the following approach:

TargetServerURL http://servername/

TargetReportFolder http://servername/MyReports/Report Services Reports/

TargetDataSourceFolder http://servername/MyReports/Report Services Reports/Data Sources

Additionally, does info in the following thread help?

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1156609&SiteID=1

HTH

Prash

Deploy from visual studio doesn't work

Hello, I created a new Rs server, but when I try to deploy from visual studio, it asks me for username and password multiple times and never deploys.

I am an administrator on the RS server, even on the report folders.

I can access via IE to the report manager.

When you access the Report Manager or Report Server (http://servername/ReportServer) via IE, does IE ask you to authenticate? In addition, what deployment settings have been specified in the BIDS project properties?|||

I have the same problem. I can download reports with IE. IE don't ask me for my login or password (it uses the windows session login).

But when I will deploy reports with Visual Studio, the software ask me for my login and password.

I can fill all the possibility (domain\login, login, upper case, lower case, ...) the studio ask me always for my login.

Cant' visual studio use the windows session for login?

Or must I have a particular role?

Regards,

|||VS.NET shouldn't ask you for user id and password. Probably, there is something wrong with your domain setup. What server ahve you specified on the project properties? Did you use the server name or IP address? What happens when you deploy to localhost?|||

I can deploy on a local server.

I use the server name.

The server and my computer (on which is install VS.NET) are on the same domain.

|||Then, for some reason, the server is rejecting the Windows integrated security handshake. Using a trace listener, such as tcpTrace, will help you see the error page returned from the server. I am suprised though that this doesn't happen when you use IE to browse the server, e.g. http://server/reports. If IE doesn't prompt you then I am out of options.|||The strange this is that I disabled the proxy settings on Internet Explorer and now I can deploy from visual studio.|||You may try putting that server name in the IE trusted zone.|||

I will first say that I use SQL Server for the first time.

I have understand my problem and logicaly resolv it. There is two URL, one for the Web site (In my case http://server/Reports) and an other one for the web service (in my case http://server/ReportManager).

So I have tried to deploy report using the Web site URL. When I use the web service URL all it's done.

Thank you every one for our answer.

|||

I'm pretty new to Reporting Services and Sharepoint. I am having the same problem, with the Reporting Services login box displaying continuosly during deploy.

Although I have read this thread, and made the changes (or attempted but did it incorrectly) I am still having difficulty. I am running RS in integrated mode (with Sharepoint).

I can browse out to Report Services (IE6) http://servername:8080/reportserver. There is a directory there that matches the server name. Browsing into that folder I see directories for each of the sharepoint subsites including one called "MYReports" which is where I set up Reporting Services. When I browse into that folder there is one for Report Services Reports (which is the library I set up to hold all the reports). When I browse into that folder I see the reports I have gotten into Sharepoint by uploading them from Sharepoint. At this point the path shown (on the screen - not in the website address portion - that one has lots of strange characters in it) is http://servername/MyReports/Report Services Reports.

The url to get the main Sharepoint site is: http://servername/default.aspx

When I set the TargetServerUrl to http://servername:8080/reportserver - it tells me (essentially) that that isn't supported in integrated with sharepoint mode. When I use http://servername:8080 I get the repeated login prompts.

I have the TargetReportFolder set to: http://servername:8080/MyReports/Report Services Reports/ (just like when I browse there)

the targetDataSourceFolder is set to: http://servername:8080/MyReports/Report Services Reports/Data Sources (a folder to store all the data sources in).

Any help with what I am doing wrong is appreciated.

Shirley

|||

In SharePoint Integrated mode you need TargetReportFolder and TargetDataSourceFolder to point directly to SharePoint Document Library URLs.

You may want to use the following approach:

TargetServerURL http://servername/

TargetReportFolder http://servername/MyReports/Report Services Reports/

TargetDataSourceFolder http://servername/MyReports/Report Services Reports/Data Sources

Additionally, does info in the following thread help?

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1156609&SiteID=1

HTH

Prash

Deploy from visual studio doesnt work

Hello, I created a new Rs server, but when I try to deploy from visual studio, it asks me for username and password multiple times and never deploys.

I am an administrator on the RS server, even on the report folders.

I can access via IE to the report manager.

When you access the Report Manager or Report Server (http://servername/ReportServer) via IE, does IE ask you to authenticate? In addition, what deployment settings have been specified in the BIDS project properties?|||

I have the same problem. I can download reports with IE. IE don't ask me for my login or password (it uses the windows session login).

But when I will deploy reports with Visual Studio, the software ask me for my login and password.

I can fill all the possibility (domain\login, login, upper case, lower case, ...) the studio ask me always for my login.

Cant' visual studio use the windows session for login?

Or must I have a particular role?

Regards,

|||VS.NET shouldn't ask you for user id and password. Probably, there is something wrong with your domain setup. What server ahve you specified on the project properties? Did you use the server name or IP address? What happens when you deploy to localhost?|||

I can deploy on a local server.

I use the server name.

The server and my computer (on which is install VS.NET) are on the same domain.

|||Then, for some reason, the server is rejecting the Windows integrated security handshake. Using a trace listener, such as tcpTrace, will help you see the error page returned from the server. I am suprised though that this doesn't happen when you use IE to browse the server, e.g. http://server/reports. If IE doesn't prompt you then I am out of options.|||The strange this is that I disabled the proxy settings on Internet Explorer and now I can deploy from visual studio.|||You may try putting that server name in the IE trusted zone.|||

I will first say that I use SQL Server for the first time.

I have understand my problem and logicaly resolv it. There is two URL, one for the Web site (In my case http://server/Reports) and an other one for the web service (in my case http://server/ReportManager).

So I have tried to deploy report using the Web site URL. When I use the web service URL all it's done.

Thank you every one for our answer.

|||

I'm pretty new to Reporting Services and Sharepoint. I am having the same problem, with the Reporting Services login box displaying continuosly during deploy.

Although I have read this thread, and made the changes (or attempted but did it incorrectly) I am still having difficulty. I am running RS in integrated mode (with Sharepoint).

I can browse out to Report Services (IE6) http://servername:8080/reportserver. There is a directory there that matches the server name. Browsing into that folder I see directories for each of the sharepoint subsites including one called "MYReports" which is where I set up Reporting Services. When I browse into that folder there is one for Report Services Reports (which is the library I set up to hold all the reports). When I browse into that folder I see the reports I have gotten into Sharepoint by uploading them from Sharepoint. At this point the path shown (on the screen - not in the website address portion - that one has lots of strange characters in it) is http://servername/MyReports/Report Services Reports.

The url to get the main Sharepoint site is: http://servername/default.aspx

When I set the TargetServerUrl to http://servername:8080/reportserver - it tells me (essentially) that that isn't supported in integrated with sharepoint mode. When I use http://servername:8080 I get the repeated login prompts.

I have the TargetReportFolder set to: http://servername:8080/MyReports/Report Services Reports/ (just like when I browse there)

the targetDataSourceFolder is set to: http://servername:8080/MyReports/Report Services Reports/Data Sources (a folder to store all the data sources in).

Any help with what I am doing wrong is appreciated.

Shirley

|||

In SharePoint Integrated mode you need TargetReportFolder and TargetDataSourceFolder to point directly to SharePoint Document Library URLs.

You may want to use the following approach:

TargetServerURL http://servername/

TargetReportFolder http://servername/MyReports/Report Services Reports/

TargetDataSourceFolder http://servername/MyReports/Report Services Reports/Data Sources

Additionally, does info in the following thread help?

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1156609&SiteID=1

HTH

Prash

Deploy Asks for Username and Password - Can't Deploy

Today I installed SP2 on my client and rebooted.
Since then, when I try to deploy from Visual Studio, I get a box that pops
up that asks for a username and password. I tried entering everything under
the sun but I can't get past it.
The user I am logged in as is part of the Administrators group on the RS
server. Beyond that, none of the server config has changed.
What is going on here? I can't deploy!
Thanks,
HunterI experience this problem too. I even created a new user name under the
security properties tab, for my user account, "Administrator"
"Hunter Hillegas" wrote:
> Today I installed SP2 on my client and rebooted.
> Since then, when I try to deploy from Visual Studio, I get a box that pops
> up that asks for a username and password. I tried entering everything under
> the sun but I can't get past it.
> The user I am logged in as is part of the Administrators group on the RS
> server. Beyond that, none of the server config has changed.
> What is going on here? I can't deploy!
> Thanks,
> Hunter|||Try this
"create a DWORD entry called DisableLoopbackCheck to
HKLM\System\CurrentControlSet\Control\Lsa. Set this key to a value of 1"
I hope, this helps.
Barbaros Saglamtimur
MCDBA, MCAD
"Chiara" <Chiara@.discussions.microsoft.com> wrote in message
news:66581066-291D-47A1-A577-38E89BA9E6A3@.microsoft.com...
>I experience this problem too. I even created a new user name under the
> security properties tab, for my user account, "Administrator"
> "Hunter Hillegas" wrote:
>> Today I installed SP2 on my client and rebooted.
>> Since then, when I try to deploy from Visual Studio, I get a box that
>> pops
>> up that asks for a username and password. I tried entering everything
>> under
>> the sun but I can't get past it.
>> The user I am logged in as is part of the Administrators group on the RS
>> server. Beyond that, none of the server config has changed.
>> What is going on here? I can't deploy!
>> Thanks,
>> Hunter|||Thanks for posting this. I gave it a try but I am still greeted with the same
password prompt that accepts no credentials.
Any other ideas out there?
"saglamtimur" wrote:
> Try this
> "create a DWORD entry called DisableLoopbackCheck to
> HKLM\System\CurrentControlSet\Control\Lsa. Set this key to a value of 1"
>
> I hope, this helps.
> Barbaros Saglamtimur
> MCDBA, MCAD
>
> "Chiara" <Chiara@.discussions.microsoft.com> wrote in message
> news:66581066-291D-47A1-A577-38E89BA9E6A3@.microsoft.com...
> >I experience this problem too. I even created a new user name under the
> > security properties tab, for my user account, "Administrator"
> >
> > "Hunter Hillegas" wrote:
> >
> >> Today I installed SP2 on my client and rebooted.
> >>
> >> Since then, when I try to deploy from Visual Studio, I get a box that
> >> pops
> >> up that asks for a username and password. I tried entering everything
> >> under
> >> the sun but I can't get past it.
> >>
> >> The user I am logged in as is part of the Administrators group on the RS
> >> server. Beyond that, none of the server config has changed.
> >>
> >> What is going on here? I can't deploy!
> >>
> >> Thanks,
> >> Hunter
>
>