Wednesday, March 28, 2012
property probelm
Services. My problem is that when I move reports from the development machine
to the server, they lose properties, like font and can grow setttings. Please
help me identify the problem.
--
Thanks,
CGWNever mind... I was just missing a font on the other machine.
"CGW" wrote:
> We have a development machine, and a web server, both running SQL Reporting
> Services. My problem is that when I move reports from the development machine
> to the server, they lose properties, like font and can grow setttings. Please
> help me identify the problem.
> --
> Thanks,
> CGW
Friday, March 23, 2012
Prompting for userid and password
I have a web application which is calling a reporting services URL to load
couple of reports.
The web server is on Machine A and the reporting services and the SQL Server
are on Machine B.
Both the Machines A and B are not on any domain...
But when I log into my website and then try to generate a report, the web
application is popping up an prompt to enter the userid and password.
When U enter the userdid and password of the machine B, I am to view my
reports.
Can anyone please help me in resolving the above issue, where the user would
not want to enter the userid and password.Check the Reporting Services virtual directories in IIS. If they are not
setup with "Enable anonymous access", you need to enable this.
Kaisa M. Lindahl Lervik
"Ashok Segu" <Ashok Segu@.discussions.microsoft.com> wrote in message
news:99B66025-A1E6-49A1-8BFB-0E7B78A92189@.microsoft.com...
> Hi,
> I have a web application which is calling a reporting services URL to load
> couple of reports.
> The web server is on Machine A and the reporting services and the SQL
> Server
> are on Machine B.
> Both the Machines A and B are not on any domain...
> But when I log into my website and then try to generate a report, the web
> application is popping up an prompt to enter the userid and password.
> When U enter the userdid and password of the machine B, I am to view my
> reports.
> Can anyone please help me in resolving the above issue, where the user
> would
> not want to enter the userid and password.|||Add the url of the SSRS services to your "Trusted Sites" in Internet
Options. Surprisingly this works.
Ashok Segu wrote:
> Hi,
> I have a web application which is calling a reporting services URL to load
> couple of reports.
> The web server is on Machine A and the reporting services and the SQL Server
> are on Machine B.
> Both the Machines A and B are not on any domain...
> But when I log into my website and then try to generate a report, the web
> application is popping up an prompt to enter the userid and password.
> When U enter the userdid and password of the machine B, I am to view my
> reports.
> Can anyone please help me in resolving the above issue, where the user would
> not want to enter the userid and password.
Wednesday, March 21, 2012
promblems connecting to db across a network
Hello,
I've built an application using c#, visual studio 2005 and sql server 2000. The database is sitting on another machine on the network.
When I test the application from visual studio, it all works fine - no problems connecting to the database etc.
However, If I publish the website and move it to the same server as the database and set up the site and users through IIS etc, I get the following error
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
my connection string is
<connectionStrings>
<addname="cashinsConnectionString"connectionString="Data Source=Londevs;Initial Catalog=cashins;User ID=Cash; Password=Cash123;"
providerName="System.Data.SqlClient" /></connectionStrings>
Anyone have any ideas why this is happening?
Thanks
fogofogo:
Login failed for user 'NT AUTHORITY\NETWORK SERVICE
You are trying to connect to the database with the above account which doesn't have the necessary permissions to connect.
|||Thanks for your reply.
So do I need to set these permissions on the database or on the server where the database is sitting?
|||actually - this is strange. I've just put together a smaller application with the EXACT same connection string as above, and it worked fine.
how could that be??
It's most likely a problem with your web.config file (possibly it's doing some impersonation or windows authentication) rather than just the connection string. Check both web.config files to see what you are doing differently.
Thanks.
I compared them both using winmerge and they are both the same.
here my config file
12<!--3 Note: As an alternative to hand editing this file you can use the4 web admin tool to configure settings for your application. Use5 the Website->Asp.Net Configuration option in Visual Studio.6 A full list of settings and comments can be found in7 machine.config.comments usually located in8 \Windows\Microsoft.Net\Framework\v2.x\Config9-->10<configuration>11<appSettings/>12<connectionStrings>1314 <add name="cashinsConnectionString" connectionString="Data Source=servername;Initial Catalog=databasename;User ID=Cash; Password=Cash123;" providerName="System.Data.SqlClient"/>15 </connectionStrings>16 <system.web>17<!--18 Set compilation debug="true" to insert debugging19 symbols into the compiled page. Because this20 affects performance, set this value to true only21 during development.22 -->23<compilation debug="true"/>24<!--25 The <authentication> section enables configuration26 of the security authentication mode used by27 ASP.NET to identify an incoming user.28 -->29<authentication mode="Forms"/>3031<!--32 The <customErrors> section enables configuration33 of what to do if/when an unhandled error occurs34 during the execution of a request. Specifically,35 it enables developers to configure html error pages36 to be displayed in place of a error stack trace.3738 <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">39 <error statusCode="403" redirect="NoAccess.htm" />40 <error statusCode="404" redirect="FileNotFound.htm" />41 </customErrors>42 -->43</system.web>44</configuration>
all looks ok right?
I also pass the connection through...
1private static String connstring = ConfigurationManager.ConnectionStrings["cashinsConnectionString"].ConnectionString;2private static SqlConnection conn =new SqlConnection(connstring);
so I can access the connection from a .cs file that holds my classes and methods etc. Could that be the source of the problem?
Thanks
|||Hi,
From your description, it seems that you application can connect to your database while lunched from Visual Studio but failed when lunched in IIS, right?
You can try the following steps to check if "AUTHORITY\NETWORK SERVICE" has been permitted to visit the database.
1. Open your Enterprise Manager and open the security node in your local sql server.
2. Click on "Logins", try to see if "AUTHORITY\NETWORK SERVICE" appeared in that list, if not, create the user and assign the corresponding server roles.
Thanks.
|||Cool! thanks
Monday, March 12, 2012
Programming SQL Express
Charles Rezsonya
Write this as T-SQl and then either write code that calls into the database and execute the script(call this code from your installer), or include a .sql file with the script as part of your installation and then call that through a call to sqlcmd to execute.
Either way I recomend having a copy of the script as part of your install so that if something goes wrong you can at least walk a user through running the script by hand.
|||Hi,These things can be easily changed using the SMO namespace:
using Microsoft.SqlServer.Management.Smo.Wmi;
(....)
ManagedComputer comp = new ManagedComputer(".");
comp.ClientProtocols["tcp"].IsEnabled = true;
(...)
Remeber to restart the service after changing this.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
|||amazing. i will certainly be trying that monday. Thanks. Keep an eye on this post incase i have add'l questions?
tia
Charles R
|||Sure, everyone who signed in for alerts (its by default in the forums will get an IM Alert and additional the email alert ( depending on the configuration)HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de|||
hey, anyway you can show me a script that would change the server to allow tcp remote connections? what application do i run to process the script?
|||ok. i'm not finding the dll to include the smo namespace using 'using' in the sql sdk directory. and when i go to the studio and go to projects -> add reference its not listed "microsoft.sqlserver.etc etc"....... where can i download this dll? any add'l source on connecting examples?|||actually i found it on one of my other servers i installed the sdk to. so i'm including it. next really is just to get it going now :)|||damn, but i am having a problem. i am using visual studio 2003 and when i go to about it says my .net framework is 1.1. is that a problem for the following message?
a referance to 'c:\program file\microsoft sql server\90\sdk\microsoft.sqlserver.sqlenum.dll' could not be added. this is not a valid or COM component. only assemblies with extension 'dll' and com components can be referenced. please make sure that the file is accessible, and that it is a valid assembly or com component.
|||is it possible to do this with visual studio 2003?|||I don't believe so.
SMO is a SQL 2005 and .NET Framework 2.0 technology. I think that VS 2003 is locked into NetFx1.1. (Any VS experts can feel free to correct me.) You have a couple alternatives:
Move up to VS 2005, you can get the VS Express Editions for free if you like. They have some reduced functionality.
Programming SQL Express
Charles Rezsonya
Write this as T-SQl and then either write code that calls into the database and execute the script(call this code from your installer), or include a .sql file with the script as part of your installation and then call that through a call to sqlcmd to execute.
Either way I recomend having a copy of the script as part of your install so that if something goes wrong you can at least walk a user through running the script by hand.
|||Hi,These things can be easily changed using the SMO namespace:
using Microsoft.SqlServer.Management.Smo.Wmi;
(....)
ManagedComputer comp = new ManagedComputer(".");
comp.ClientProtocols["tcp"].IsEnabled = true;
(...)
Remeber to restart the service after changing this.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
|||amazing. i will certainly be trying that monday. Thanks. Keep an eye on this post incase i have add'l questions?
tia
Charles R
|||Sure, everyone who signed in for alerts (its by default in the forums will get an IM Alert and additional the email alert ( depending on the configuration)HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de|||
hey, anyway you can show me a script that would change the server to allow tcp remote connections? what application do i run to process the script?
|||ok. i'm not finding the dll to include the smo namespace using 'using' in the sql sdk directory. and when i go to the studio and go to projects -> add reference its not listed "microsoft.sqlserver.etc etc"....... where can i download this dll? any add'l source on connecting examples?|||actually i found it on one of my other servers i installed the sdk to. so i'm including it. next really is just to get it going now :)|||damn, but i am having a problem. i am using visual studio 2003 and when i go to about it says my .net framework is 1.1. is that a problem for the following message?
a referance to 'c:\program file\microsoft sql server\90\sdk\microsoft.sqlserver.sqlenum.dll' could not be added. this is not a valid or COM component. only assemblies with extension 'dll' and com components can be referenced. please make sure that the file is accessible, and that it is a valid assembly or com component.
|||is it possible to do this with visual studio 2003?|||I don't believe so.
SMO is a SQL 2005 and .NET Framework 2.0 technology. I think that VS 2003 is locked into NetFx1.1. (Any VS experts can feel free to correct me.) You have a couple alternatives:
Move up to VS 2005, you can get the VS Express Editions for free if you like. They have some reduced functionality.