.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

FW 4 Dlls on FW2 webs

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :Windows Application
 

Hello, I'd like to know if this is possible. Thanks ! :)




View Complete Post


More Related Resource Links

C++ at Work: Create Dynamic Dialogs, Satellite DLLs, and More

  

This month Paul DiLascia teaches readers the right way to create dynamic dialogs, explains satellite DLLs and discusses language resource DLLs.

Paul DiLascia

MSDN Magazine September 2006


.net DLLs not secure

  

.net DLLs are not secure, this is such a disappointment. 


What can one do to secure DLL apart from obfucation (which is nothing about making DLL secure)

I know that I can build a DLL in vb6 or Delphi (thats secure) and then COM (tlbimp.exe) it for .net using interlop tools for .net

ref:http://msdn.microsoft.com/en-us/library/dd233112.aspx

BUT I dont want to that, I want to stay with .net (vb) , so can anything be done to truely secure a .net DLL ??

This is very important

MSVS 2005 ASP.net 2.0 vb.net 2




DllImport of 32-Bit dlls

  
Hi guys, I am a real newbie on 64-Bit progr. so my question might sound a little stupid. I have a VB.NET project which refered to a 32-Bit dll via COM-Interop. I migrated the project and the COM invocation does not work anymore. I tried several compiler settings (anyCPU, x86) but nothing helped. Then I found in my old C# book a method called DllImport (System.Runtime.InteropServices) I declared the dll as follows: <DllImport("fcvb.dll", CharSet:=CharSet.Auto)> _ Function dllBIN2_iv(ByVal price_u As Double, ByVal ex As Double, ByVal d_exp As Double, ByVal d_v As Double, ByVal price As Double, ByVal rate_ann As Double, ByVal acc_rate As Integer, ByVal cost_hldg As Double, ByVal acc_cost_hldg As Integer, ByVal option_type As Integer, ByVal iter As Integer, ByRef return_vlty_imp As Double) As Integer End Function When calling the Dll I got f... in the middle of the process saying: errMsg = "System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)   at Wcr_.NET_2005.Module1.dllBIN2_iv(Double price_u, Double ex, Double d_exp, Double d_v, Double price, Double rate_ann,... I am running an AMD64-Bit Opteron with 2GIG of Mem on Windows Server 2003 (64-Bit) Standard. Visual Studio 2005 Team Edition for SW Developers and .NET Framework 2.0   Any comments welcome I am open for both a COM wrapper .NET dll or n

AppDomain to Load and Manage DLLs

  
My question/situation is with regard to AppDomain.CreateInstanceFrom or AppDomain.CreateInstanceFromAndUnwrap or AppDomain capabilities.My customer wants a service (or application) that can invoke Public methods from any .NET Managed DLL and be able to add, change, rename, delete those DLLs out of their storage location while the service is running.  DLLs will mostly likely not be marked Serializable and will most likely not inherit from MarshalByRefObject.  Presently, I am providing this functionality without the ability to change, rename, or delete DLLs while the service is running by loading the DLLs at service start (not very memory friendly).Could I create a manager class that supports this functionality, load that class into a separate AppDomain, invoke methods as needed, and unload the AppDomain as needed when DLLs change?  I would manage execution with a Queue object to ensure that requests for invocation don't get lost and don't try to access the manager when it is no longer in scope.  A FileSystemWatcher would handle unloading the AppDomain when changes occurred.Does this sound correct, normal, abnormal, or not possible?Software Developer, Augusta Systems

how can we show error in our application when exception occur in webs service

  
how can we show error in our application when exception occur in webs service

Error while trying to register DLLs for Microsoft Jet on Windows Server 2008 R2 64bit

  
Hello! I'm having issues with importing Excel spreadsheets into Microsoft SQL Server 2005 on a Windows Server 2008 R2 64bit server.  After browsing the web, it appears that the problem is with the DLL's used by Microsoft Jet.  I've thus attempted to re-register these DLL's.  However, I am receiving the following results. c:\Windows\SysWOW64> regsvr32 c:\Windows\SysWOW64\msjetoledb40.dllSuccessful c:\Windows\SysWOW64> regsvr32 c:\Windows\SysWOW64\msjet40.dllSuccessful c:\Windows\SysWOW64> regsvr32 c:\Windows\SysWOW64\msjint40.dllThe module "msjint40.dll" was loaded but the entry-point DLLRegisterServer was not found c:\Windows\SysWOW64> regsvr32 c:\Windows\SysWOW64\msjter40.dllThe module "msjter40.dll" was loaded but the entry-point DLLRegisterServer was not found c:\Windows\SysWOW64> regsvr32 c:\Windows\SysWOW64\msjtes40.dllSuccessful c:\Windows\SysWOW64> regsvr32 c:\Windows\SysWOW64\mswstr10.dllThe module "mswstr10.dll" was loaded but the entry-point DLLRegisterServer was not found I've set the application pool for this site to use 32bit.  Please note that due to my role on the team, other options such as using ACE are not available to me, unless I can prove that I've exhausted all other options. Thoughts? Thanks,Mike

MS.IT.SiteDeleteCapture Error When Creating Webs

  
When I try to create a web in any of my site collections I get the error below.  I have tried deactivating the Feature but it still shows this error.  I tried uninstalling after first seeing this error and it still gave this error. Does anyone know how to fix? and get rid of this tool completely?   Feature '78b94e15-23ce-43f9-8036-babd847497d1' could not be installed because the loading of event receiver assembly "MS.IT.SiteDeleteCapture, Version=1.0.0.0, Culture=neutral, PublicKeyToken=98e95e81f8e48206" failed: System.IO.FileNotFoundException: Could not load file or assembly 'MS.IT.SiteDeleteCapture, Version=1.0.0.0, Culture=neutral, PublicKeyToken=98e95e81f8e48206' or one of its dependencies. The system cannot find the file specified. File name: 'MS.IT.SiteDeleteCapture, Version=1.0.0.0, Culture=neutral, PublicKeyToken=98e95e81f8e48206' at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assembly

How can I restrict runtime to look for dlls in only bin folder

  
Hi, How do I restrict runtime to see only bin folder to load two specific dlls To explain the scenario better, I need my windows application to communicate with MQ server. But my constraint is that I do not want the users of the application to load MQ Client. For this I extracted two dlls from MQ client and included in my project's bin folder and tried to conect to MQ server. It works perfectly fine if there is no MQ Client installed on the machine. But if any version of MQ Client is present on the machine, it fails. I believe it is trying to read from the dlls present on the machine instead of reading it from bin folder and it fails for some of the older version which did not supported .NET calls. I would want to restrict the runtime to read only two dlls and not go to load other dlls if it finds MQ Client installed.   Can <assemblybind> or probing method help me in this? If so, how to include it in my config file.          

How to restrict runtime to load dlls from bin folder only and not look elsewhere

  
Hi, How do I restrict runtime to see only bin folder to load two specific dlls To explain the scenario better, I need my windows application to communicate with MQ server. But my constraint is that I do not want the users of the application to load MQ Client. For this I extracted two dlls from MQ client and included in my project's bin folder and tried to conect to MQ server. It works perfectly fine if there is no MQ Client installed on the machine. But if any version of MQ Client is present on the machine, it fails. I believe it is trying to read from the dlls present on the machine instead of reading it from bin folder and it fails for some of the older version which did not supported .NET calls. I would want to restrict the runtime to read only two dlls and not go to load other dlls if it finds MQ Client installed.   Can <assemblybind> or probing method help me in this? If so, how to include it in my config file.        

Project dependency / reference and 3rd party dlls missing

  
hi,i'm having the same problem in multiple solutions and i asked for help in a couple of "forums" already.... here is an easy explaination about my problem.we have 3 projects:Project "A" - a web applicationproject "B" - class libraryproject "C" - class libraryProject C holds a reference to a 3rd party dll. let's say thirdparty.dll. the 3rd party dll is referenced in the C.csproj file with a relative path and private = true (copy local = true): <Reference Include="ThirdPartysNameSpace.BlaBla, Version=1.2.3.4, Culture=neutral, PublicKeyToken=0912345678910123, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\_tools\thirdparty.dll</HintPath> <Private>True</Private> </Reference> Project B holds a project to project reference to Project C.Project A holds a project to project reference to Project B.when i compile project C the thirdparty.dll is copied to its bin directory. C's bin directory contains C.dll and thirdparty.dll - correct so far.however when i then compile project B the thirdparty.dll isn't copied to project B's bin directory! B's bin only contains C.dll and B.dll. why isn't project C's bin content copied to B's bin?(sure thirdparty.dll is also missing in project A's bin directory.

sqlserver clr with referenced dlls

  
where can i find a good step by step introduction for creating a sqlserver clr sp which is referencing dlls like mappoint. I understand and can follow up the helloworld example which works well. Then i modified the class calculating the distance between 2 hardcoded addresses in US and adding the using directive for interop.mappoint.dll and interop.mappointutilities.dll I compiled my class: C:\windows\microsoft.net\framework\v3.5\csc /target:library c:\helloworld\helloworld.cs /r:c:\helloworld\obj\debug\interop.mappoint.dll /r:c:\helloworld\helloworld\obj\debug\interop.mappointutilities.dll The comilation runs without an error. but when i try to register the assembly in sqlconsole create assembly helloworld from c:\helloworld.dll with permission set safe (also tried unsafe) I get the error: Meldung 10301, Ebene 16, Status 1, Zeile 1 Die HelloWorld-Assembly verweist auf die interop.mappoint, version=0.0.0.0, culture=neutral, publickeytoken=null.-Assembly, die in der aktuellen Datenbank nicht vorhanden ist. SQL Server hat versucht, die Assembly, auf die verwiesen wird, am gleichen Pfad wie die verweisende Assembly zu suchen und automatisch zu laden. Dieser Vorgang ist jedoch fehlgeschlagen (Ursache: 2(Das System kann die angegebene Datei nicht finden.)). Laden Sie die Assembly, auf die verwiesen wird, in die aktuelle Datenbank, und wiederholen Sie die Anforderung. meaning thast

Differences between signed and unsigned dlls

  
Hi, Can someone brief on differences between signed and unsigned dlls. How can we test each of these ? thanks in advance sam

Webs Webservices problem : The request failed with HTTP status 401: Unauthorized

  
I am trying to run this code to get the web collection details. I am running this code in debug mode in Visual Studio 2005. I am running this code on sharepoint.acme.com, the same machine on which MOSS 2007 is installed.

        Webs websService = new Webs();
        System.Net.SystemNetworkCredential credentials =
        websService.Credentials = System.Net.CredentialCache.DefaultCredentials;
        websService.Url = "http://sharepoint.acme.com/_vti_bin/Webs.asmx";

        System.Xml.XmlNode myNode = websService.GetAllSubWebCollection();

I get this error. "The request failed with HTTP status 401: Unauthorized" in the last line while debug mode running. Earlier it used to work fine, but today I see this problem. Both acme\administrator and sharepoint\administrator can log into SharePoint. I tried running this code by logging in to my win2k3 desktop as acme\administrator once and launching Visual Studio 2005 and sharepoint\administrator another time. Both time it I got the same error.

Could someone please help me in resolving this error?

how to sign Ent Lib DLLs???

  

Hi Forum,

I have had to sign the EL5.0 DLLs for GACing and I tried out various options. Finally, I had to open the source solution in VS2008 and in the Properties window, changed the Strong name key file and compiled it. Is there any better way of doing this???

Praveen.


Praveen Behara
MCST : BizTalk Server 2006 R2
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend