SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Can't connect SQL


Can't connect SQL

Author
Message
leonzkyhv
leonzkyhv
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
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.
Evil Kraig F
Evil Kraig F
SSC-Insane
SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)

Group: General Forum Members
Points: 20219 Visits: 7660
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
leonzkyhv
leonzkyhv
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 8
I tried it, and it didn't work. Does this apply if i'm using Windows Authentication.
SqlZen
SqlZen
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 332
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
leonzkyhv
leonzkyhv
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
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

SqlZen
SqlZen
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 332
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.
leonzkyhv
leonzkyhv
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
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 Smile
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search