New Posts New Posts RSS Feed: Deployment Issue
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Deployment Issue

 Post Reply Post Reply
Author
CodeNameTech View Drop Down
Newbie
Newbie


Joined: 03-Dec-2010
Posts: 10
Post Options Post Options   Quote CodeNameTech Quote  Post ReplyReply Direct Link To This Post Topic: Deployment Issue
    Posted: 20-Apr-2011 at 2:43pm
Thanks Greg.

I have already done what you mention here.  Please see the other thread.
Back to Top
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Posted: 20-Apr-2011 at 1:08pm
Hi Mike,
 
Membership is very easy to get up and running.
 
You really only need two lines in your config file.  The first one sometimes gets missed and I have seen it cause failure to connect.  But as long as you have these lines, it will work out of the box. 
 
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=tcp:sql2k803.discountasp.net;Initial Catalog=SQL2008_717577_jet;User ID=SQL2008_717577_jet_user;Password=*;" />
 
Greg
Back to Top
CodeNameTech View Drop Down
Newbie
Newbie


Joined: 03-Dec-2010
Posts: 10
Post Options Post Options   Quote CodeNameTech Quote  Post ReplyReply Direct Link To This Post Posted: 20-Apr-2011 at 11:34am
I am having a very similar issue with my application.

The ASP.Net Membership Security features work fine when it is running on my development machine.  However, as soon as I deploy the application to my production server, the authentication stops working.

I tried deleting all of my project files off of the server and re-uploading (as per your previous post), but that did not resolve the problem.

I started a new thread on this (prior to discovering this topic):

Were you able to determine exactly what was causing your problem?  Perhaps it is the same as mine.

Thanks,

Mike
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 29-Jan-2011 at 4:15pm
OK, thanks for the update.
 
(Just a reminder, but later on when you deploy for production be sure to turn off access to the debug log, since it's a security hole.)
Back to Top
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Posted: 29-Jan-2011 at 12:44pm
Well, I did not resolve this in the test project, but in my main project, I was able to get past this issue by deleting everything from the site and doing a fresh upload. Then it started working.
 
When I try to update the site from VS using the "Replace Matching Files" option, it doesn't seem to replace all that it should and so there is some sort of conflict.   The other option of Delete Everything seems to work best.
 
In any case, this is resolved for now.
 
Greg
Back to Top
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Posted: 29-Jan-2011 at 10:09am
Hi Kim,
 
The global.asax has this line:
 
System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider()); 
Also, try connecting to the service.  I did a reupload and it connects to the service now.
Also, you can see the error log at: http://jetcm.net/debuglog.xml
Greg


Edited by gregweb - 29-Jan-2011 at 10:13am
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 29-Jan-2011 at 9:56am
I get a 404 error when navigating to http://jetcm.net/EntityService.svc, so I'im not sure the service is up.  Does the global.asax contain the registration of the VirtualPathProvider?
Back to Top
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Posted: 29-Jan-2011 at 9:10am
Ok, so I start with a brand new project using the Dev-Force Business template so it includes aspnet authentication.
 
I update the Config files so it includesa a "LocalSQLServer" line for the aspnetdb.  I then run the app and log in successfully.
 
I then deploy to my hosted website.  I get the No Endpoint is listening error.
 
To debug, I create a new project using the Ria Services Business Template, update the config file as above and deploy.  I can successfully log in - no errors.  This means it is not the hosting that is the problem.
 
As another debug attempt, I created another test project using the DevForce template that does not inlcude authentication.  I add an Entity Model, and then set up a query and execute it.  I deploy and it works no problem.  So this means it is not DevForce itself.
 
The issue seems to be not with Dev-Force, but with the ASPNetDb. 
 
The Entity Service is running.
 
The Debug file is empty.
 
All bin files are marked copy local and uploaded to the site.
 
The Config file looks like this:
 
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core" />
  </configSections>
  <connectionStrings >
  <remove name="LocalSqlServer" />
  <add name="LocalSqlServer" connectionString="Data Source=tcp:sql2k803.discountasp.net;Initial Catalog=SQL2008_717577_jet;User ID=SQL2008_717577_jet_user;Password=*;" />
  </connectionStrings>

  <ideablade.configuration version="6.00" xmlns="http://schemas.ideablade.com/2010/IdeaBladeConfig">
    <logging logFile="DebugLog.xml" />

    <objectServer>
      <serverSettings useAspNetSecurityServices="true" />
    </objectServer>
  </ideablade.configuration>
  
  <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"  multipleSiteBindingsEnabled="true"  />
  </system.serviceModel>
  
  <system.web>
    <authentication mode="Forms">
      <forms name=".SilverlightApplication97_ASPXAUTH" />
    </authentication>
    <roleManager enabled="true" />
    <profile>
      <properties>
        <add name="FriendlyName" />
      </properties>
    </profile>
  
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </assemblies>
    </compilation>
  </system.web>
</configuration>
If you want to see the error, go to JetCM.net.  You don't even have to log in, it just pops up the error after the xap loads.
 
I am not sure what else to do to debug this.  This same error happened when I first deployed the site, but then it went away for awhile and came back.  I don't know what the changes were that made it happen.
 
If you want to log onto the site via FTP, I can email you the password.  It's just a test site so there is nothing of value to mess up.
 
Greg
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down