473,797 Members | 3,204 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom Resource provider factory

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 'XResourceProvi derFactory' from assembly
'Microsoft.Visu alStudio.Web, Version=8.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a'.
C:\source\2005t est\site1\Defau lt.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
<DesignTimeReso urceProviderFac toryAttribute(" XResourceProvid erFactory")> _
Public NotInheritable Class XResourceProvid erFactory
Inherits System.Web.Comp ilation.Resourc eProviderFactor y

Public Overrides Function CreateGlobalRes ourceProvider(B yVal
classKey As String) As System.Web.Comp ilation.IResour ceProvider
Return New DBResourceProvi der(classKey)
End Function

Public Overrides Function CreateLocalReso urceProvider(By Val
virtualPath As String) As System.Web.Comp ilation.IResour ceProvider
Return New DBResourceProvi der(virtualPath )
End Function
End Class
Nov 19 '05 #1
0 1513

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
415
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is comprised of a DataGrid may have separate permissions for adding, deleting and updating a news item. Problem Up until now, I have been implementing security directly inside the control. I will test directly against the security model to see if...
0
1269
by: jonathan.eves | last post by:
Hi I am having a hard time with localization of the sitemap. I have created a custom SiteMapProvider which inherits from StaticSiteMapProvider. For which everything works fine. The next thing i did was to add a unique resource key to each the nodes and add these resource keys to my globalisation database. Running a SQL Trace shows that the call for the localized resource is never made. Here is the code that builds creates my nodes
0
2524
by: Kurtis | last post by:
G'Day, I'm in the process of developing a custom ResourceProvider for an ASP.Net web application written in C# 2.0, which uses SQL server as the data store. I'm half way there! After setting the key for the resource provider in the web.config to the custom provider, view a page in the VS ide in design mode, choose tools/create resources for page, the custom resource provider is fired up and the resources are stored in a SQL table. ...
2
1777
by: Jimmy | last post by:
I should write a custom resource provider that should do something simple: return the resource key together with the textual value in one string. I started delving into this subject. The online examples I've seen implement IResourceProvider but I can't get any clear idea to how actually access the default resource provider (the resources are in App_GlobalResources) giving the same interface to the callers. (Using ASP.NET 2.0) Any...
5
2780
by: Daniel | last post by:
Hey guys When you hook an event (c# 2.0 syntax): myEvent += MyMethodToFire; You need to also unsubscribe it to avoid a resource leak so that the object it is in gets garbage collected like so : myEvent -= MyMethodToFire; That's all fine, but when you use visual studio to create events for objects it never creates an unsubscribing reference, so is it puting in resource leaks? Or is this being cleared somewhere that i am not seeing?
6
1549
by: Mike P | last post by:
Can anybody tell me exactly what a provider is? And give an example? *** Sent via Developersdex http://www.developersdex.com ***
2
1881
by: Larry | last post by:
Hello, I am about to write an app for Pocket PC 2003 / Windows CE / Mobile 5 (don't know which yet) from which I need to query both SQL Server Express 2005 and SQLCe. I would like to be able to use a provider factory to not have to duplicate code. ADO 2.0 has DbProviderFactory, but it is not available in the .NET Compact framework. I could write my own provider factory "the old way" using IDbConnection, etc., but I rather not...
0
1386
by: Jordan S. | last post by:
Using .NET 3.5... in a "plain old" .aspx page I have the following code in the Init event: this.Context.Response.Cache.SetExpires(DateTime.Now.AddSeconds(60)); this.Context.Response.Cache.SetCacheability(HttpCacheability.Public); this.Context.Response.Cache.SetValidUntilExpires(false); It works great. Testing shows that the page is cached for 60 seconds as expected. Specifically, I insert the current date/time into the Response...
6
1692
by: Jordan S. | last post by:
Using .NET 3.5... 1. Will ASP.NET guarantee that no more than ONE instance of a custom HTTP handler factory (class implementing IHttpHandlerFactory) is ever created in an ASP.NET application? 2. Assuming the answer to #1 is "yes - never more than one instance" (I hope that's true), then does ASP.NET automatically take care of concurrency with respect to accessing that one instance?
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.