New Posts New Posts RSS Feed: Easy Login Implementation for testing
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Easy Login Implementation for testing

 Post Reply Post Reply
Author
mseeli View Drop Down
Newbie
Newbie
Avatar

Joined: 20-Sep-2010
Location: Switzerland
Posts: 31
Post Options Post Options   Quote mseeli Quote  Post ReplyReply Direct Link To This Post Topic: Easy Login Implementation for testing
    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
Back to Top
mseeli View Drop Down
Newbie
Newbie
Avatar

Joined: 20-Sep-2010
Location: Switzerland
Posts: 31
Post Options Post Options   Quote mseeli Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down