473,657 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I run ASP.NET app from different virtual site?

Hi

I have a ASP.NET 1.1 app that is compiled to say "APP1.dll" and APP1 is the name of the virtual directory. I want to be able to have a staging site where I can just copy the files over to another virtual directory called APP2. When I first tried it I got Resource Manager errors. I tried just renaming the main dll and resource file dll's to APP2 and then got "Comparing the assembly name resulted in the mismatch: NAME" error. If the files run in the same virtual directory name that they were compiled under, everything is fine. What's the correct way to do this

Thanks
Chris
Nov 17 '05 #1
7 1289
"Chris" <st******@kubot a-kma.com> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
Hi,

I have a ASP.NET 1.1 app that is compiled to say "APP1.dll" and APP1 is

the name of the virtual directory. I want to be able to have a staging site
where I can just copy the files over to another virtual directory called
APP2. When I first tried it I got Resource Manager errors. I tried just
renaming the main dll and resource file dll's to APP2 and then got
"Comparing the assembly name resulted in the mismatch: NAME" error. If the
files run in the same virtual directory name that they were compiled under,
everything is fine. What's the correct way to do this?

I do this all the time, with no resource manager problems. Try again, from
scratch, and tell us what resource manager problems you're having.
--
John

Nov 17 '05 #2
Hi John,

I get:

[ArgumentExcepti on: ResourceManager base name should not end in
resources. It should be similar to MyResources, which the
ResourceManager can convert into MyResources.<cu lture>.resource s; for
example, MyResources.en-US.resources.]
System.Resource s.ResourceManag er.CommonSatell iteAssemblyInit () +195
System.Resource s.ResourceManag er..ctor(String baseName, Assembly
assembly) +55
SupplierLink.Ut ilityBiz..ctor( ) +78
SupplierLink.Lo gin..ctor() +100
_ASP.Login_aspx ..ctor() +6

I have a default resource file which is compile into the main dll and I
have 2 Satellite dlls for Japanese and Spanish. It all works fine when
it's under the same site name as it was developed under. Should I be
able to just use the same files on the the same server but under a
different virtual directory. It looks like this:

IIS
APP1
bin
APP1.dll
es
APP1.resources. dll
ja
APP1.resources. dll

New site that gets errors:

IIS
APP2
Bin
APP1.dll
es
APP1.resources. dll
ja
APP1.resources. dll

The virtual site name is the only difference. It's the same files just
copied to a different directory and with a different virtual site name.
Should I be able to do this?

I'm using Code-Behind pages and it's not strongly named and haven't done
anything with the GAC...

Thanks,
Chris
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
"Chris Strobel" <st******@kubot a-kma.com> wrote in message
news:#T******** ******@TK2MSFTN GP12.phx.gbl...
Hi John,

I get:

[ArgumentExcepti on: ResourceManager base name should not end in
resources. It should be similar to MyResources, which the
ResourceManager can convert into MyResources.<cu lture>.resource s; for
example, MyResources.en-US.resources.]
System.Resource s.ResourceManag er.CommonSatell iteAssemblyInit () +195
System.Resource s.ResourceManag er..ctor(String baseName, Assembly
assembly) +55
SupplierLink.Ut ilityBiz..ctor( ) +78 SupplierLink.Lo gin..ctor() +100
_ASP.Login_aspx ..ctor() +6

Ok, so maybe the SupplierLink.Ut ilityBiz constructor is instantiating a
ResourceManager and specifying something for the baseName parameter which
ends in ".resource" ? In that case, "don't do that".
--
John
Nov 17 '05 #4
I think I have it figured out. Is there a way to instantiate the Resource Manager without having to name the assembly? I was doing it like this:

Private mobjResourceMan ager As ResourceManager = New ResourceManager ("APP1.Resource s", GetType(Header) .Assembly)

I get errors if I don't include the APP1. In some examples I've seen they just have the name of the Resource which is "Resources.resx ". I was trying to share the same class file in 2 different projects which gets compiled into each project.

I can do something like this:

Private mobjResourceMan ager As ResourceManager = New ResourceManager (Reflection.Ass embly.GetExecut ingAssembly.Get Name.Name & ".Resources ", GetType(Header) .Assembly)

and that will make it work, but it seems like I shouldn't have to from other examples.

Thanks,
Chris
Nov 17 '05 #5
Didn't the error message say you should _not_ use the .resources extension?

--
John
"Chris" <an*******@disc ussions.microso ft.com> wrote in message
news:09******** *************** ***********@mic rosoft.com...
I think I have it figured out. Is there a way to instantiate the Resource Manager without having to name the assembly? I was doing it like this:
Private mobjResourceMan ager As ResourceManager = New ResourceManager ("APP1.Resource s", GetType(Header) .Assembly)
I get errors if I don't include the APP1. In some examples I've seen they just have the name of the Resource which is "Resources.resx ". I was trying
to share the same class file in 2 different projects which gets compiled
into each project.
I can do something like this:

Private mobjResourceMan ager As ResourceManager = New ResourceManager (Reflection.Ass embly.GetExecut ingAssembly.Get Name.Name &
".Resources ", GetType(Header) .Assembly)
and that will make it work, but it seems like I shouldn't have to from other examples.
Thanks,
Chris

Nov 17 '05 #6
I tried renaming them to something different and I still got the error.
When you instantiate the ResourceManager are you using just the name of
the resource files or do you put in the AssemblyName.Re sources?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #7
"Chris Strobel" <st******@kubot a-kma.com> wrote in message
news:#w******** ******@TK2MSFTN GP12.phx.gbl...
I tried renaming them to something different and I still got the error.
When you instantiate the ResourceManager are you using just the name of
the resource files or do you put in the AssemblyName.Re sources?


I don't use this method.

Just try it without the ".resources " extension and see what happens.
--
John

Nov 18 '05 #8

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

Similar topics

1
2209
by: Guoqi Zheng | last post by:
Dear sir, I have a site, http://www.vitaminstore.nl. Inside that site, I have some virtual dictionaries. For example, http://www.vitaminstore.nl/search/ or some subdomains like http://mail.vitaminstore.nl. Question: I would like the cookie which was created by a subdomain or virtual dictionary can be read from the root domain. Here it is http://www.vitaminstore.nl.
2
2636
by: flat_ross | last post by:
Hi, I am in a shop where developers are required to work off of a network share. This is so that code is backed up nightly. So I am testing running an ASP.NET Web application with a Class assembly all on a shared drive. I have the solution working perfectly. However, I have run into a hiccup. In order to map IIS Virtual Dir to a network drive, you need
4
1641
by: Anders K. Jacobsen [DK] | last post by:
Hi I have some common UserControls i want to share between to sites (on the same mashine but on diffrent virtual paths). right now i have on solution file with aprox 10 projects. 2 of these is webprojetcs wich need to shere some common userControls. Optimally i want a class libarary project wich contains the controls so i could import the DLL and use the controls. But that of course doesnt work.
4
1972
by: SB | last post by:
Hi I'm trying to get forms-based authentication to authenticate different users for differet pages, like this: <configuration> <location path="Member" allowOverride="true"> <system.web> <authorization> <!-- allow tags must be first --> <allow users="Admin"/>
2
2677
by: §iD` | last post by:
Hi! I would like to create a virtual folder (which I want to mount) and populate managing his content by a DLL or something like that in VB.NET (2.0). How can I acomplish this? Thanks to all!
8
2529
by: Nate | last post by:
I am running on Window 2003. I have a website built in ASP.NET 2.0. I need to have a Virtual Directory running an application in 1.1. I have configured each in its own Application Pool. The 1.1 application picks up and parses the 2.0 web.config. It is complaining about the connectionstrings node. If I comment out that node the applications both run. I have tried running the 1.1 application under 2.0 but there are some controls used in...
10
3377
by: TS | last post by:
i just noticed the website i created in VS 2005 is running on a different port than the default. I see that it is running on the local web server, and also that the website i created isn't in IIS. My crystal report looks weird because it is trying to show images from the crystalreportviewers10 virtual directory based on the current website running, which in this case is localhost:1169, but actuall the crystalreportviewers10 virtual...
2
1465
by: tshad | last post by:
I have set up a Virtual Directory underneath my normal Web Site in IIS 6 for 2 of our sites. One of them works file. The other one is giving me an error: **************************************************************************** Parser Error Message: The module 'ScollKeeperModule' is already in the application and cannot be added again
1
2067
by: rogersmithiii | last post by:
We have a production web site - www.thesite.com - laid out as follows on IIS 6: d:\Inetpub\wwwroot\default.asp There are lots of subdirectories inside of WWWROOT including a cgi-bin directory that contains a simple ASP Visitor Counter script. This cgi-bin directory sits at D:\InetPub\wwwroot\cgi-bin\filename.ext We also have a staging site (for testing web content before posting to the real site) located here.
0
8420
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
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
8740
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
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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
5642
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
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
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

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.