Showing posts with label website. Show all posts
Showing posts with label website. Show all posts

Sunday, February 19, 2012

Error message about SQL Server is displayed

I have a website that works OK on my local machine when I test it within Microsoft Visual Studio's debugging mode. However now that I have copied it over to a remote server it is failing with an error message of:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

As far as I'm aware I have never used SQL Server with my webpage. All connections to databases are to Oracle with connection strings and providers set up in the webconfig file. The website does however use a login control to recognise authorised users. Does this mean I've unknowingly been using SQL Server (to support the login control) and I therefore need to install this on the remote machine? Or is it something simpler? Wondered if anybody had seen this error message before?

Hi,

The website does however use a login control to recognize authorized users.

As you mentioned in your post, you are using login controls to recognize authorized users. In ASP.NET, such controls like logins, createuserwizard and etc are parts of .Net Membership provider mechanism.

In your local side, I think the SQLExpress has been shipped in your Visual Studio, so it can support the membership to work. But after you deployed your application to your server, the membership still tries to find the database to support. Unfortunately, the database does exist on your server, so the error occurs.

Thanks.

|||

Hi Nai-Dong, thanks for replying. I agree with your suggestion that the membership is tying and failing to read the database. The database MDF file is present and in the correct location. The permissions are set on this file as according to other forum posts I've read. I also installed SQLServer Express on the remote machine. I suspect that the membership is not picking up the SQLServerExpress install but I am not sure how to fix this. It's such a shame because the ASP.NET login controls and .Net membership provider are really neat and simple to use. Due to time restraints it's looking like I'm going to have to use my Oracle database to contain the login information and write code myself to enable authentication.

|||

Hi,

Well, i just want to provide you some materials on membership which maybe helpful to you when you are going to use Membership in your next project.

About Membership Providershttp://msdn2.microsoft.com/en-us/library/aa478949.aspx

Membership introductionhttp://msdn2.microsoft.com/en-us/library/yh26yfzy.aspx

Settings on using Membershiphttp://msdn2.microsoft.com/en-us/library/ms731049.aspx

Besides, you can export all the datatables with schemas in ASPNETDB into your Oracle database, and change the membership provider, you also can use membership with a Oracle back-end database.

Hope that helps. Thanks.

|||

Thanks Michael - greatly appreciated. I will certainly read through them. I like the idea of Oracle providing membership since I can connect to me Oracle db without any problems.

Wednesday, February 15, 2012

Error Message - Server is unavailable

I am running the Report Services website on IIS6 on WIndows 2003.
When I browse to the /reports website on the server, I get a message in big
red letters saying that the server is not avaialbe and that more info is in
the event log of the server.
When I look at the server's Application event log, there are two errors
Source: ASP.NET 2.0.50727.0
EventID: 1073
User N/A
Description: Failed to initialize the Application: /LM/W3SVC/1/root/Reports
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
Culture=neutral, PublicKey Token = b03f5f7f11d50a3a' or one of its
dependencies. Access is denied
<followed by a Stack Trace>
and
Source: ASP.NET 2.0.50727.0
EventID: 1088
User N/A
Description: Failed to execute request because the AppDomain could not be
created.
Error: 0x80070005 Access is denied
What should I be doing to investigate and rectify this error?
Cheers
BobOn Jun 26, 10:07 am, "Bob Miller" <some...@.microsoft.com> wrote:
> I am running the Report Services website on IIS6 on WIndows 2003.
> When I browse to the /reports website on the server, I get a message in big
> red letters saying that the server is not avaialbe and that more info is in
> the event log of the server.
> When I look at the server's Application event log, there are two errors
> Source: ASP.NET 2.0.50727.0
> EventID: 1073
> User N/A
> Description: Failed to initialize the Application: /LM/W3SVC/1/root/Reports
> Exception: System.IO.FileLoadException
> Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
> Culture=neutral, PublicKey Token = b03f5f7f11d50a3a' or one of its
> dependencies. Access is denied
> <followed by a Stack Trace>
> and
> Source: ASP.NET 2.0.50727.0
> EventID: 1088
> User N/A
> Description: Failed to execute request because the AppDomain could not be
> created.
> Error: 0x80070005 Access is denied
> What should I be doing to investigate and rectify this error?
> Cheers
> Bob
Hi,
for many reason you can get the error message...
Ist of all check your asp.net version of the site...
for this...
open inetmgr.exe and under websites... select your web site...
right click on the site... from option menu select properties...
now in website properties check your asp.net version...
suppose to ASP.net 2.0... if not select asp.net 2.0... and then
save...
Thanks
Masudur
http://munnacs.110mb.com