4
Answers

Exported typelib not getting updated C# project

Photo of Rahul M

Rahul M

13y
2.9k
1
I am exporting DLL to a typelib(.tlb) using

"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" $(TargetDir)Project.dll /tlb:com.Project.tlb /codebase

It is getting registered succesfully.I look in typelib using liewiewer,all method declaration was proper.

But if I add any new method in DLL project and rebuild/clean .tlb file seems to be not getting updated with newely added methods.

Please let me know what I am missing?

Answers (4)

0
Photo of Gohil Jayendrasinh
NA 5k 2.8m 13y
if you want to store some information in  memorry then use caching.
http://weblogs.asp.net/mikaelsoderstrom/archive/2010/07/06/use-caching-in-asp-net-web-pages.aspx
0
Photo of Gary King
NA 83 159.3k 13y
Thanks for the response Lion, but I am still very unsure about caching....

The webforms contain confidential financial information and I have been asked to ensure that no data is cached on the users' browser. So I guess that I need to completely disable caching, but I am not sure of....

1. How to ensure there is no caching

2. If there is no caching, then would this affect the webform performance and/or functionality? (We dont use jQuery AJAX)
0
Photo of Gohil Jayendrasinh
NA 5k 2.8m 13y
For Page lavel caching
1.
<%@ OutputCache Duration="60" VaryByParam="None" %>

in web config

<outputCacheSettings>
  <outputCacheProfiles>
    <add name="CacheProfile1" duration="60" />
  </outputCacheProfiles>
</outputCacheSettings>

this will help you
http://msdn.microsoft.com/en-us/library/06bh14hk(v=vs.71).aspx
http://msdn.microsoft.com/en-us/library/ms178606.aspx

2.

if you use jQuery ajax
than
$.ajax({
  url: "test.html",
  context: document.body,
  cache:false, //it will force requested pages not to be cached by the browser.
  success: function(){
    $(this).addClass("done");
  }
});