Showing posts with label localhost. Show all posts
Showing posts with label localhost. Show all posts

Monday, March 19, 2012

Login failed for localhost/aspnet - please help, been trying for week to solve

I am really at my wits end. I have been trying for days to find an answer to this, and have tried so many things.

I simply keep getting the error that localhost (Phantomlap in my case)/ASPNET cannot access the DB. This is a synopsis:.
Tools I am using:

V Studio 2005, IIS 5.1, XP Pro SP 2, SqlServer 2005 (using the EXPRESS server).
Configurations:


web.config:

<connectionStrings>
<remove name="localsqlserver"/>
<add name="localsqlserver" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\aspnetdb.mdf;Integrated Security=true;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
Website is stored at:
C:Inetpubwwwroot
(within that I have an App_Data folder with following permission):
(I allowed, via security, the ASPNET account read/write access)
SQL Server status:
Phantomlap/aspnet user is added
Phantomlap/aspnet security as just about everything checkmarked

Please note--I am using SQLServer Express--I am not entirely sure I added the ASPNET account correctly--is there a tutorial on how to do this?

Please help,

Kind Regards

The real issue here is that User Instances are just not designed for web applications. Are you running this as a file based web site from within VWD (i.e. F5) or is this an IIS based site in production. If you're in production, you should likely start by changing to a standard connection with your database attached to the parent instance of SQL rather than trying to use the dynamic attach behavior of User Instances.

I've never seen anyone from the VWD team provide good instructions on how to work with applications once a database has been added.

Mike

|||Thats you and me both, how on earth can they let something like this go so long without a fix. Look I pay good knows how much for an IDE, test the thing within Visual Studio great, up load to the server and connect via IIS and then have to to more ruddy fiddles than a Linux command line fan. My user\ASPNET is registered with correct permissions on SQL Server 2005 Ok, the attached database should work straight off through IIS. Someone needs to get their backside kicked for letting this half baked problem drag on so long, asp boards are awash with people stuck on this.|||What error it exactly shows?|||

HI,

Refer below KBs for the workaround of your problem

http://support.microsoft.com/kb/316989/en-us

http://support.microsoft.com/kb/824308/en-us

http://support.microsoft.com/kb/301240/en-us

http://support.microsoft.com/kb/308157/en-us

HTH

Hemantgiri S. Goswami

Login failed for localhost/aspnet - please help, been trying for week to solve

I am really at my wits end. I have been trying for days to find an answer to this, and have tried so many things.

I simply keep getting the error that localhost (Phantomlap in my case)/ASPNET cannot access the DB. This is a synopsis:.
Tools I am using:

V Studio 2005, IIS 5.1, XP Pro SP 2, SqlServer 2005 (using the EXPRESS server).
Configurations:


web.config:

<connectionStrings>
<remove name="localsqlserver"/>
<add name="localsqlserver" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\aspnetdb.mdf;Integrated Security=true;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
Website is stored at:
C:Inetpubwwwroot
(within that I have an App_Data folder with following permission):
(I allowed, via security, the ASPNET account read/write access)
SQL Server status:
Phantomlap/aspnet user is added
Phantomlap/aspnet security as just about everything checkmarked

Please note--I am using SQLServer Express--I am not entirely sure I added the ASPNET account correctly--is there a tutorial on how to do this?

Please help,

Kind Regards

The real issue here is that User Instances are just not designed for web applications. Are you running this as a file based web site from within VWD (i.e. F5) or is this an IIS based site in production. If you're in production, you should likely start by changing to a standard connection with your database attached to the parent instance of SQL rather than trying to use the dynamic attach behavior of User Instances.

I've never seen anyone from the VWD team provide good instructions on how to work with applications once a database has been added.

Mike

|||Thats you and me both, how on earth can they let something like this go so long without a fix. Look I pay good knows how much for an IDE, test the thing within Visual Studio great, up load to the server and connect via IIS and then have to to more ruddy fiddles than a Linux command line fan. My user\ASPNET is registered with correct permissions on SQL Server 2005 Ok, the attached database should work straight off through IIS. Someone needs to get their backside kicked for letting this half baked problem drag on so long, asp boards are awash with people stuck on this.|||What error it exactly shows?|||

HI,

Refer below KBs for the workaround of your problem

http://support.microsoft.com/kb/316989/en-us

http://support.microsoft.com/kb/824308/en-us

http://support.microsoft.com/kb/301240/en-us

http://support.microsoft.com/kb/308157/en-us

HTH

Hemantgiri S. Goswami

Monday, March 12, 2012

Login box displayed when browsing to ReportServer

Hi,
I have RS and SQL Server on the same development box. When I browse to
http://localhost/ I can see my reports on my box. However, when other
users browse to my machine with http://mymachinename/ they get a Windows
Login box pop up. When they type in their Windows Credentials, the box
pops up again. If they click cancel, they get "You are not authorized to
view this page."
How should I configure IIS to get this working? I've never used IIS or
Reporting Services before.
Thanks.
--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602m.htmlIt sounds like a permissions issue. Try enabling anonymous access for the
website, and make sure that the virtual directories that IIS is using have
the proper permissions (at least read perms for the IIS account).
"Mark Allison" wrote:
> Hi,
> I have RS and SQL Server on the same development box. When I browse to
> http://localhost/ I can see my reports on my box. However, when other
> users browse to my machine with http://mymachinename/ they get a Windows
> Login box pop up. When they type in their Windows Credentials, the box
> pops up again. If they click cancel, they get "You are not authorized to
> view this page."
> How should I configure IIS to get this working? I've never used IIS or
> Reporting Services before.
> Thanks.
> --
> Mark Allison, SQL Server MVP
> http://www.markallison.co.uk
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602m.html
>|||Thanks Aaron, yes definitely a perms issue. This is how things are set up:
The error the user sees (different now from my earlier post):
http://tinyurl.com/58mty
IIS
===Authentication methods
http://tinyurl.com/46btf
Default web site properties
http://tinyurl.com/6l9ch
Reporting Services
==================RS Data sources
http://tinyurl.com/5wd78
RS Execution
http://tinyurl.com/3lqlq
RS Security
http://tinyurl.com/4p98j
Reporting Services, IIS and the SQL Server where the Reports database is
located are all on the box.
Thanks for looking into this.
--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602m.html
Aaron Z wrote:
> It sounds like a permissions issue. Try enabling anonymous access for the
> website, and make sure that the virtual directories that IIS is using have
> the proper permissions (at least read perms for the IIS account).
> "Mark Allison" wrote:
>
>>Hi,
>>I have RS and SQL Server on the same development box. When I browse to
>>http://localhost/ I can see my reports on my box. However, when other
>>users browse to my machine with http://mymachinename/ they get a Windows
>>Login box pop up. When they type in their Windows Credentials, the box
>>pops up again. If they click cancel, they get "You are not authorized to
>>view this page."
>>How should I configure IIS to get this working? I've never used IIS or
>>Reporting Services before.
>>Thanks.
>>--
>>Mark Allison, SQL Server MVP
>>http://www.markallison.co.uk
>>Looking for a SQL Server replication book?
>>http://www.nwsu.com/0974973602m.html|||I've resolved this myself by using a standard SQL Login.
Thanks for your time.
--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602m.html
Mark Allison wrote:
> Thanks Aaron, yes definitely a perms issue. This is how things are set up:
> The error the user sees (different now from my earlier post):
> http://tinyurl.com/58mty
> IIS
> ===> Authentication methods
> http://tinyurl.com/46btf
> Default web site properties
> http://tinyurl.com/6l9ch
>
> Reporting Services
> ==================> RS Data sources
> http://tinyurl.com/5wd78
> RS Execution
> http://tinyurl.com/3lqlq
> RS Security
> http://tinyurl.com/4p98j
>
> Reporting Services, IIS and the SQL Server where the Reports database is
> located are all on the box.
> Thanks for looking into this.
>