Print Page | Close Window

Easy Login Implementation for testing

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2182
Printed Date: 21-Jun-2026 at 8:54pm


Topic: Easy Login Implementation for testing
Posted By: mseeli
Subject: Easy Login Implementation for testing
Date Posted: 22-Sep-2010 at 8:54am
I am just starting to use DefForce. So far I've always used the project template "DefForce Silverlight Application" and it worked just fine. 

Now I have a more complex database structure to work with. Because of this I moved the database into a separate Solution that contains two projects ModelDF and ModelSL (just like you did it in the PrismExplorer). Everything compiles OK but when I run the application and it tries to read some data I get the error:

System.InvalidOperationException: Call Connect() before doing a Login

I guess it wants me to Login first. How do I get around this in an easy way? At the moment security is not an issue because I am just testing. My Database uses Integrated Security.

How does the "DefForce Silverlight Application"-template get around an explicit Login?

Thank you for your support.

Markus Seeli



Replies:
Posted By: mseeli
Date Posted: 23-Sep-2010 at 12:33am
I discovered the following:

The problem is in the missing Global.asax in the Web Project generated by the "Silverlight Navigation Application"-Template that I used. In an application generated with the DefForce-Template you get a Global.asax with the following lines in it;

 protected void Application_Start(Object sender, EventArgs e) {
   
      System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider());     
    }

I then made a copy of the Global.asax and included it in my project. For some reason he does not recoginze the IdeaBlade namespace. 
I checked all referenced libraries and they are all the same. 
Any idea what I am missing?

Markus Seeli


Posted By: DenisK
Date Posted: 23-Sep-2010 at 12:11pm
Hi Markus;

Could you upload your project solution to the forum so I can take a look at it?

Thanks,

Denis



Print Page | Close Window