When deploying asp.net application to host on live server or IIS server, you might get this type of parser error.
Parser error occurs while some resources are required to serve the request but not able to get the source.
Server Error in ‘/’ Application
Description: An error occurred during the parsing of a resource required to service this request.
Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type ‘assembly.Default’
Following might be the possible solutions to solve out this error.
successfully copied to production server or virtual directory.
version of the DLL files. So, you need to re-compile or build all DLL’s before uploading to production or
2. Right-Click on your WebSite > Properties
3. Then in the “Directory”, Create your Application, Add it to your ApplicationPool and verify that your
virtual directory is mounted properly
4. Then in the “bin” directory should be seen and used with all the files under it
in the “Web.config” file. So, cross check those settings
Note: In most cases issue is we forget to upload latest built DLL’s under “bin” folder or failed to upload some files on server during uploading through FTP program. So, cross check all files are successfully uploaded to server.