System Installation
This guide covers the complete installation process for SMAF (Sistema de Manejo y Administración de Fondos), the internal expense and travel allowance control system for the Mexican Federal Public Administration.System Requirements
Ensure all prerequisites are met before beginning the installation process.
Server Requirements
- Operating System: Windows Server 2008 R2 or higher
- Web Server: Internet Information Services (IIS) 7.0 or higher
- Framework: .NET Framework 4.0
- Database: MySQL 5.6 or higher (MySQL 5.6.17 recommended)
- Memory: Minimum 4 GB RAM (8 GB recommended)
- Disk Space: Minimum 2 GB for application, 10 GB for database
Development Requirements
- IDE: Visual Studio 2010 or higher (Visual Studio 2013 recommended)
- MSBuild: Version 4.0
- Target Framework: .NET Framework 4.0
Required Dependencies
SMAF relies on several third-party components that must be installed before deployment:Core Dependencies
Telerik UI for ASP.NET AJAX
Version: 2014.2.618.40Telerik provides the primary UI controls for the application.Required Assemblies:
Telerik.Web.UI.dll(Version 2014.2.618.40)Telerik.Reporting.dll(Version 8.1.14.618)Telerik.ReportViewer.WebForms.dll(Version 8.1.14.618)Telerik.OpenAccess.Web.40.dll(Version 2014.2.617.2)Telerik.WinControls.UI.dll(Version 2014.2.617.20)Telerik.QuickStart.dll
iTextSharp PDF Library
Version: 5.5.5Required for PDF generation and manipulation.Required Assemblies:
itextsharp.dllitextsharp.pdfa.dllitextsharp.xtra.dll
QRCoder Library
Used for QR code generation on official documents and receipts.Required Assembly:
QRCoder.dllAjax Control Toolkit
Version: 4.1.40412.0 (Spanish culture)Provides additional AJAX functionality and controls.Required Assemblies:
AjaxControlToolkit.dll(Culture: es)AjaxControlToolkit.resources.dll
Additional Framework Dependencies
The following .NET Framework assemblies are required:System.Design(Version 4.0.0.0)System.Web.Extensions(Version 4.0.0.0)System.Web.Extensions.Design(Version 4.0.0.0)System.Windows.Forms(Version 4.0.0.0)Microsoft.Build.Framework(Version 4.0.0.0)System.Management(Version 4.0.0.0)System.Speech(Version 4.0.0.0)
Installation Steps
Prepare the Environment
- Install Windows Server 2008 R2 or higher
- Install .NET Framework 4.0
- Enable IIS with ASP.NET 4.0
- Install MySQL Server 5.6 or higher
Install Visual Studio and Build Tools
For development environments:
- Install Visual Studio 2010 or higher
- Install ASP.NET and Web Development workload
- Install .NET Framework 4.0 targeting pack
Install Third-Party Dependencies
Install all required dependencies listed above. Copy DLL files to the project’s
bin directory or install via NuGet package manager.Build the Application
Compile the application using MSBuild:Project Structure:
InapescaWeb.csproj- Main web applicationInapescaWeb.BRL.csproj- Business rules layerInapescaWeb.DAL.csproj- Data access layerInapescaWeb.Entidades.csproj- Entity classes
Setup Database
Configure web.config
Post-Installation Tasks
Configure SSL/TLS
For production environments, enable HTTPS:Setup Scheduled Tasks
Configure automated maintenance tasks:- Database backups (daily)
- Log file cleanup (weekly)
- Session cleanup (daily)
- Report generation (as needed)
Configure Firewall
Troubleshooting
Common Issues
Application fails to start
Application fails to start
Symptoms: HTTP 500 errors or application won’t loadSolutions:
- Verify .NET Framework 4.0 is installed
- Check application pool identity has correct permissions
- Review IIS logs and Windows Event Viewer
- Ensure all dependencies are installed in the
bindirectory
Database connection errors
Database connection errors
Symptoms: Login fails, “Connection string not found” errorsSolutions:
- Verify MySQL service is running
- Check connection string encryption/decryption
- Validate database credentials
- Test MySQL connectivity from server
Telerik controls not rendering
Telerik controls not rendering
Symptoms: UI components missing or displaying incorrectlySolutions:
- Verify Telerik assemblies are in
bindirectory - Check Telerik version matches web.config registration
- Enable CDN or disable CDN based on network configuration
- Verify Telerik license is valid
File upload failures
File upload failures
Symptoms: Cannot upload documents or XML filesSolutions:
- Check
maxRequestLengthsetting in web.config (default: 50000 KB) - Verify IIS request limits in applicationHost.config
- Ensure upload directories have write permissions
- Check disk space availability
Upgrade Path
From Previous Versions
When upgrading from earlier versions:- Backup current database and files
- Review breaking changes in release notes
- Update database schema with migration scripts
- Deploy new application files
- Update web.config settings
- Test thoroughly in staging environment
- Schedule maintenance window for production deployment
Next Steps
Configuration
Configure web.config settings, connection strings, and application parameters
Database Setup
Setup MySQL database, import schema, and configure initial data