Please Help With A Very Frustrating Problem!

May 21, 2006

Hello, the last few days I have been having problems uploading a single database to my server.I uploaded my site and all of my access databases work fine and all pages work fine except for the ones that have anything to do with login controls.  In my site I have a database ASPNETDB.MDF, it is the defualt SQL database created to store membership information.  Now I am not sure why it is not working when I try to connect to it.  Here is the specific error I recieve when I try to use any login control:

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.

 

I have searched and searched the web to try to find an answer to this and have not been able to find a clear one.  Here is what I believe may be causing some of the problems.  Btw, I use Godaddy hosting.

1. Godaddy support told me that I cannot just upload the sql server file to any folder on the server.  They said it has to be on a specific server.  HOwever i do not understand this.  Doesnt an sql express connection allow me to use the database and access it just like my access databases already on my server?

2. Is my connection string in my web.config file correct? : 

add name="LoginConnectionString" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|ASPNETDB.MDF;Integrated Security=True;User Instance=True"

I read somewhere that I may need to include a password and username for the conection but where do I insert this and how do set a password and username up?

If you know anything that could possible help please let me know.  I have really put alot of time into my site and I dont want it to fail becuase of this.  Also, is it possible and easy enough for me to just change the defual so that it uses a access databse instead of sql. 

THANK YOU IN ADVANCE!

Greg

View 5 Replies


ADVERTISEMENT

Frustrating Error Connecting To SQL 2000 From IIS With .NET 2.0

Jan 3, 2006

I am getting the following error when connecting to SQL 2000 from IIS with .NET 2.0.
It works perfectly with the Test Server that comes with VS 2005.
 
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
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: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

View 7 Replies View Related

Frustrating Backup/Restore Issue

Sep 26, 2006

Im running SQL Server 2005

I set up 4 maintenance plans:

1) Full production DBS backup every day at midnight

2) Transaction Backups every 10 minutes starting at 12:10 AM ending at 11:59 PM

3) Full System DBS backups

4) Maintenance on production database: index rebuild, stats, etc.

All the files are sucessfully there but when I try to restore the backup to a new database to make sure its valid it seems I can restore the full backup but the transaction logs seem to be completely disassociated with the full backup. Says there not from the same backup set

I tried the same thing earlier just taking a full backup and then transaction logs in two separate plans and it worked fine. Sometimes it seems to sync up and sometimes it does not. Any help on this issue would be much appreciated

Thanks

Scott

View 7 Replies View Related

Frustrating Visual Studio Crashes When Adding Script Step

Sep 19, 2007

I have two similar packages that are both experiencing this issue.

I need to add a script step to generate an incrementing id for the packages.

Once I add the script step, and then save the package, next time I open the package I get a "Microsoft Visual Studio has encountered a problem and needs to close" error which kills off Visual Studio.

The error signature is:
EventType: clr20r3
P1: devenv.exe
P2: 8.0.50727.762
P3: 45716759
P4: microsoft.sqlserver.txscript
P5: 9.0.242.0
P6: 443f5ab8
P7: 67
P8: d
P9: bbp0yyyc15o2dbouwcacz2m0bodqkotn

If I move the error window to one side, delete the whole Script step, and save the Package, then I can reopen the package again without the error occurring.

Here is the actual code in my script step (in case its of any assistance...)
(I have retyped it from a printout, so it may not be 100%. DOCID is supposed to increment from 1. DREF1 is a system-unique id, that takes up from where the last batch left off, and is a string prefixed by "MP")




Code Snippet

Imports System
Imports System.Data
Imports System.math
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Imports Microsoft.SqlServer.Dta.Runtime.Wrapper

Public Class ScriptMain

Inherits UserComponent
Dim ndx as Int32 = 0

Public Overrides Sub Input0_ProcessInputRow(Byval Row as Input0Buffer)

'
' Add your code here
'
Dim dref as String

ndx = ndx + 1
Row.DOCID = ndx

dref = "MP" + Ctype(ndx + Variables.MPIDOrig, String)
Row.DREF1 = dref
End Sub

Protected Overrides Sub finalize()

Variables.MPID = ndx + Variables.MPIDOrig
MyBase.Finalize()
End Sub
End Class





View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved