Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Can't connect SQL Expand / Collapse
Author
Message
Posted Monday, July 7, 2014 5:14 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 8, 2014 3:09 PM
Points: 4, Visits: 8
Can't connect to database via code. I can connect with visual studio 2013 and i can view the tables and its content in the server explorer tab. I checked the services and they are all running. It's a ASP website when i try to query y get a 500 error.

This is a restored database (by me a noob) becouse i got a new computer in work (new job).

Please Help , sorry English is no my first language.

Ideas, tutorials, Books, Aditional Info i can give. Really need the help.

P.S. Good ASP Book with this kind of topic u can recommend. I know how to program, never really learned how to configure this stuff.
Post #1590158
Posted Monday, July 7, 2014 6:19 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 12:13 AM
Points: 6,147, Visits: 7,204
Your website logs in (usually) via a different login than you do. The security for that login needs to be reset on the restored database. What happens is the SIDs get out of sync.

These are also known as orphaned users.

Start here (MSDN link):
http://msdn.microsoft.com/en-us/library/ms175475.aspx



- Craig Farrell

Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

For better assistance in answering your questions | Forum Netiquette
For index/tuning help, follow these directions. |Tally Tables

Twitter: @AnyWayDBA
Post #1590163
Posted Tuesday, July 8, 2014 10:13 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 8, 2014 3:09 PM
Points: 4, Visits: 8
I tried it, and it didn't work. Does this apply if i'm using Windows Authentication.
Post #1590427
Posted Tuesday, July 8, 2014 10:54 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Saturday, July 19, 2014 1:55 AM
Points: 41, Visits: 265
Try to get the root cause of the server error in IIS :
http://stackoverflow.com/questions/2640526/detailed-500-error-message-asp-iis-7-5

Post #1590436
Posted Tuesday, July 8, 2014 12:48 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 8, 2014 3:09 PM
Points: 4, Visits: 8

SqlZen i change the conf to get a detailed error. i got this i'm not sure if thats what u need.



No Web service is found in: AutentificacionWS.asmx.
Description: An unhandled exception when running the current Web request. Check the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: .

Source Error:

It has generated an unhandled during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: No Web service is found in: Autent.ws.]
System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods, Boolean inlineScript) +1051
System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String virtualPath) +48
System.Web.Script.Services.RestHandler.CreateHandler(HttpContext context) +227
System.Web.Script.Services.RestHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +185
System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +120
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +856
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +188


Información de versión: Versión de Microsoft .NET Framework:4.0.30319; Versión ASP.NET:4.0.30319.34009
Post #1590470
Posted Tuesday, July 8, 2014 1:50 PM This worked for the OP Answer marked as solution
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Saturday, July 19, 2014 1:55 AM
Points: 41, Visits: 265
It seems that there is nothing to do with the database, the authentication web service is not found.
You have to check in IIS where your web service is hosted.
A lot of information can be found at StackOverflow.
Post #1590492
Posted Tuesday, July 8, 2014 3:20 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 8, 2014 3:09 PM
Points: 4, Visits: 8
Thanks a lot for you're help it was a ISS configuration, i feel so stupid, sorry. And really, thanks a lot i hope one day i can help someone like u just helped me. Better get researching exacly how does ASP work.

Thanks a lot really :)
Post #1590546
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse