G
Guest
In the Beta 2 of Visual Studio I have tried to create a custom resource
provider. It works perfectly when I run the application, but when I load the
control in desing mode I get an
Error 1 MyLabel1:
Could not load type 'XResourceProviderFactory' from assembly
'Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'.
C:\source\2005test\site1\Default.aspx
C:\...\site1\
The code for the Custom resource provider factory is in a seperate signed
dll, and the devenv has tried to access it in the bin directory with success.
Here is the main code
<DesignTimeResourceProviderFactoryAttribute("XResourceProviderFactory")> _
Public NotInheritable Class XResourceProviderFactory
Inherits System.Web.Compilation.ResourceProviderFactory
Public Overrides Function CreateGlobalResourceProvider(ByVal
classKey As String) As System.Web.Compilation.IResourceProvider
Return New DBResourceProvider(classKey)
End Function
Public Overrides Function CreateLocalResourceProvider(ByVal
virtualPath As String) As System.Web.Compilation.IResourceProvider
Return New DBResourceProvider(virtualPath)
End Function
End Class
provider. It works perfectly when I run the application, but when I load the
control in desing mode I get an
Error 1 MyLabel1:
Could not load type 'XResourceProviderFactory' from assembly
'Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'.
C:\source\2005test\site1\Default.aspx
C:\...\site1\
The code for the Custom resource provider factory is in a seperate signed
dll, and the devenv has tried to access it in the bin directory with success.
Here is the main code
<DesignTimeResourceProviderFactoryAttribute("XResourceProviderFactory")> _
Public NotInheritable Class XResourceProviderFactory
Inherits System.Web.Compilation.ResourceProviderFactory
Public Overrides Function CreateGlobalResourceProvider(ByVal
classKey As String) As System.Web.Compilation.IResourceProvider
Return New DBResourceProvider(classKey)
End Function
Public Overrides Function CreateLocalResourceProvider(ByVal
virtualPath As String) As System.Web.Compilation.IResourceProvider
Return New DBResourceProvider(virtualPath)
End Function
End Class