Can't connect SQL

  • 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.

  • 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[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • I tried it, and it didn't work. Does this apply if i'm using Windows Authentication.

  • 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

  • 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

  • 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.

  • 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 🙂

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply