Monday, November 25, 2019

Server Error in '/POCAdmin' Application.

Server Error in '/POCAdmin' Application.

Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error:



Answer:


Set AppPool = .Net v4.5 Classic
In manage ap pools , advanced settings set Enable 32-Bit Applications = true





Server Error in '/POCAdmin' Application.

Request is not available in this context


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request is not available in this context

Source Error:

Line 90:             // Set up the NhibernateFactories
Line 91:             var jcdcFactory = ObjectFactory.GetNamedInstance<INHFactory>("JCDC");
Line 92:             jcdcFactory.BuildFactoryByConfigFile<StaffEO, StaffEOMap>("~/JCDCDB.config");
Line 93: 
Line 94:             //only uncomment these for webapps

Source File: D:\TFS\POCAdmin\POCAdmin\Utilities\BootstrapStuctureMap.cs    Line: 92



THE ANSWER



Net pool is default (Integrated), change to classic           

Monday, June 10, 2019

Sucessfully logging into TFS after a Password change.

Do the following:
 
     1.       Exit out of all your sessions including TFSWeb.
     2.       Go to Control Panel à Credential Manager
     3.       In the “Generic Credentials” click on the TFS entry down arrow and select “Remove from vault”.
     4.       Try connecting again through Visual Studio.
    
     reboot
     Check out a file in TFS to force it to detect your credentials changed



Sunday, May 6, 2018

Finding the new 2016 rank requirements work sheet



I had a hard time finding the updated rank worksheets for the Boy scout ranks using the 2016 2017 requirements.

Scout, Tenderfoot, Second Class, First Class, Star, Life, Eagle

But here they are!

http://usscouts.org/advance/boyscout/list.asp

Thursday, August 31, 2017

Create local host cert for ssl, and install so that ssl works when debugging locally, in windows7 , with powershell as part of the process.



So I'm teaching my self about ssl, on the way to learning to do SSO to Google suite for edu.

I had to create a ssl web site for testing this process.
here are the steps I used to get the cert stuff working


  1. In powershell run the following command
    1. New-SelfSignedCertificate -DnsName "localhost" -CertStoreLocation "cert:\LocalMachine\My"
      1. Which I got from this Stack Overflow article https://stackoverflow.com/questions/8169999/how-can-i-create-a-self-signed-cert-for-localhost
  2. Then install following the steps in this video
    1. https://www.youtube.com/watch?v=y4uKPUFmSZ0
  3. The close your browser, and press <F5> to start debugging the app afresh.
That's it!

Friday, February 10, 2017

Vs 2015 malformed NuGet.Config missing root element

 To fix the Vs2015 issue at JCDC use this as the guts of your NuGet.Config file in the
root of the solution.

If you are not at JCDC leave out the repository path and put in the guts of your own old style NuGet.Config

<?xml version="1.0" encoding="utf-8"?>

<configuration>

<settings>

<repositoryPath>./packages</repositoryPath>

</settings>

</configuration>
 
 


Thursday, January 19, 2017

Case notes expired session issue,

case notes used a child application architecture to share the login with the parent app.

to do this the following must be set up

In order for virtual applications to work the machine key needs to be the same for the child as it is for the parent.  Currently the 2012 server has the key set up to auto generate.  Add key to machine's web.config.
Machine key taken from Windows 2003 server (10.0.240.199)
 
Open C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config
There are two <system.web> sections.  One is inside a <location> section, one is not.  Paste the key in the <system.web> section that is not.
 
<machineKeyvalidationKey="<your key goes here>" decryption="3DES" validation="SHA1"/>​