Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6780793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:32:53+00:00 2026-05-26T16:32:53+00:00

I have WinForm application which is almost ready to go for production and here

  • 0

I have WinForm application which is almost ready to go for production and here is the problem that I am facing and I am not able to resolve it.

Secondly sorry to post an image of the error log instead of actual text for that.

I am sort of new user of stack overflow and could not fix the formatting issue at all.

File Test.DAT is associated with KT.exe. But upon trying to open Test.DAT using KT.exe an exception is thrown.
(please see attached image…again sorry for the image).

I created a sample windows application which works fine but this one does not.

So, I am totally confused about what’s wrong with it?

So, now back to the problem. Look at the following file structure:

C:\PTS\KT\KT.ext
C:\PTS\KT\log4.net
C:\PTS\KT\Workspace\test.DAT

Can someone please help me to resolve this issue?

SOLUTION: Sorry for raising false alarm. Actually to get assembly information I was loading KT.exe inside Main() using Assembly.LoadForm(“KT.exe”) which was throwing error. I updated the code to Assembly assembly = Assembly.GetExecutingAssembly(); I can’t believe that it took so long to figure out this.

Error log

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:32:54+00:00Added an answer on May 26, 2026 at 4:32 pm

    Your problem is that the file association does not include the full path to kt.exe, only the file name. So when you open the file in the Workspace dir, the operating system tries to find kt.exe there as well.

    You can test this by moving the .dat file from workspace into the same directory as kt.exe, then double-click on it.

    Update:

    To re-associate the file with your program, take the following steps:

    1) Open a command prompt

    2) Clear the existing association by entering:

    ASSOC .dat= 
    

    3) Create a new file type entry for your app by entering:

    FTYPE KTDatFile="c:\pts\kt\kt.exe" %1 %*
    

    4) Associate the new file type with your extension by entering:

    ASSOC .dat=KTDatFile
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a winform application in which i have a lot of controls that
I have a mixed Winform/WPF application which frequently throws the exception: Could not load
I have my winform application gathering data using databinding. Everything looks fine except that
I have a winform application that uses some referenced web services to get data.
I have an c# winform application that runs under a local account but needs
I have an application (winform exe) that I run several times. Does this mean
We have an in house winform application that is used by about 20 users
I have a Winform application in which I am checking if a fully qualified
I have created a c# 2.0 WinForm application which loads dlls, searches for an
I have a WinForm application that has a list view in it. What I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.