FredLarson
Joined: 17 Oct 2005 Posts: 6 Location: Phoenix, AZ
|
Posted: Tue Jan 31, 2006 12:49 am Post subject: Problem getting License Directory in VS 2005 |
|
|
I have developed an ASP.NET server control using your Licensing System source. The control was developed using .NET Version 1.1. Everything works as expected as long as I add the control to a .NET Version 1.1 web project. If there is no license present in design mode, a dialog box will be presented asking for a key. Once the key is added, a license file is added to the directory that contains the control. This is the behavior that I want.
The problem occurs when I add my control to a .NET V2.0 web project. The dialog box comes up as expected just like the Version 1.1 project but when I enter a key and click OK, a new license file gets created in a Visual Studio TEMP directory.
Although I am not 100% sure, the Code: | EncryptedLicenseProvider.GetLicenseDirectory | method appears to return a result based on Code: | type.Module.FullyQualifiedName | This points to a Visual Studio 2005 TEMP directory. I suspect that this is because of a change in how Visual Studio 2005 works.
In the Version 1.1 solution, the Code: | EncryptedLicenseProvider.GetLicenseDirectory | method returns a result based on Code: | resolver.GetPathOfAssembly | which is the correct folder.
Is there a fix that I can apply so that this works correctly in V2.0 projects? Thanks… _________________ Fred Larson |
|