Thursday, April 6, 2017

How can remove Welcome text from "Welcome" user interface of MSI installer(SETUP) created in visual Studio 2013

There are many options to resolve this issue.

I suggest just remove "Welcome" user interface from setup wizard.

Action1 - Right click on SETUP Project(In solution explore) select View
Action2 - Select User Interface
Action3 - Remove Welcome interface from Start in Install sction
Action4 -  Add one TextBoxA

 and set its property as below

TextBoxA
--------------------------------------------------------
Banner Text - Welcome in {Product Name} Setup wizard.
Body Text = The shortcut icon will be created on desktop.
Edit1Property = DISABLEADVTSHORTCUTS
 Edit1Value = 1
Edit1visible = false
Edit2visible = false
Edit3visible = false
Edit4visible = false
Updatetext - Installation Successful. Thank you for choosing {Product Name}. Please click                               on the Close button.

Monday, October 17, 2016

Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Getting following issue, when I compile this project.
"Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

Solution: - 
Need to change in Webconfig file one chance after that it will work smoothly.
<compilation debug="true" targetFramework="4.5.1"  />
first time above code in webconfig file.

I just added one more attribute "optimizeCompilations="true" inside tag  and code below as.

<compilation debug="true" targetFramework="4.5.1" optimizeCompilations="true" />

Monday, February 1, 2016

OpenAM - session Management/ Single signon

openAM is good open source tool for authentication and authorization to user for specific resource or product. This is built on Java and free to use. It supports token based management system(JAT) and all security mechanism. It exposes a list of REST API, which can be used for multi-purpose. Currently ForgeRock maintain this application. OpenAM can be downloaded from their site. openAM12.0 is stable released version by them. Also openAm13.0 is available those are nightbuilds.

https://forgerock.org/

http://www.ip-api.com/

IP address, DNS name and many other information can get from this site. This URL provides list of API for getting these thing.

simply copy and paste below URL on browser and get your complete details:

http://ip-api.com/json

Friday, November 28, 2014

when consuming web services in .net hosted over IIS, getting error "Request format is unrecognized for URL ....."

Server Error in '/' Application.

Request format is unrecognized for URL unexpectedly ending in '/JsonCityList'.

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.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/JsonCityList'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: Request format is unrecognized for URL 
unexpectedly ending in '/JsonCityList'.]
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler
(Type type, HttpContext context, HttpRequest request, 
HttpResponse response)+713315
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler
(HttpContext context, String verb, String url, String filePath) +308
System.Web.Script.Services.ScriptHandlerFactory.GetHandler
(HttpContext context, String requestType, String url, 
String pathTranslated) +89
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication
.IExecutionStep.Execute() +516
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +288



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408



Fixing this issue need to add the following in web.config file.



<configuration>
    <system.web>
    <webServices>
        <protocols>
            <add name="HttpGet"/>
            <add name="HttpPost"/>
        </protocols>
    </webServices>
    </system.web>
</configuration>