Hi,
We have an application that has been deployed into a virtual folder
along with ascx, aspx and the code-behind files. It runs smoothly as
long as we don't change any code-behind file. If we change a file, we
expect ASP .NET to recompile the website when a user next accesses it.
However, on next access the user gets the following error:
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: BC30554: 'Parameter' is ambiguous.
Source Error:
Line 23: Dim db As Database = DatabaseFactory .CreateDatabase ()
Line 24: Dim cmd As System.Data.Com mon.DbCommand =
db.GetStoredPro cCommand(strPro cName)
Line 25: Dim param As Parameter
Line 26: For Each param In objPrameters
Line 27: db.AddInParamet er(cmd, param.Name, param.Type,
param.DefaultVa lue)
We know for sure that there is not syntax error in the changed code.
If we reset IIS and delete everything from "C:\WINDOWS\Mic rosoft.NET
\Framework\v2.0 .50727\Temporar y ASP.NET Files", the website runs fine
again.
Can you suggest why ASP.NET is not recompiling on its own when
something changes?
Will this problem go away if we use pre-compiled DLLs instead of
letting ASP .NET compile in-place? We know that even if we use pre-
compiled DLLs, the "C:\WINDOWS\Mic rosoft.NET\Fram ework
\v2.0.50727\Tem porary ASP.NET Files" directory still gets filled with
DLLs. Not sure why. However, if we have to change something in a code-
behind and create a new DLL and replace it in the vrtual directory,
will we see the same problem as mentioned above?
Please provide some guidance.
Thanks,
Yash 1 5750
this is due to compile batching. for compile performance when a site is
compiled, several pages are compiled together. when you update the site
a batch grouping occurs. in the recompile two pages reference Parameters
from different namespaces (for example you named a class Parameters)
and the decalre becomes ambiguous.
just fully qualify parameter as you did DbCommand.
-- bruce (sqlwork.com) ya****@gmail.co m wrote:
Hi,
We have an application that has been deployed into a virtual folder
along with ascx, aspx and the code-behind files. It runs smoothly as
long as we don't change any code-behind file. If we change a file, we
expect ASP .NET to recompile the website when a user next accesses it.
However, on next access the user gets the following error:
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: BC30554: 'Parameter' is ambiguous.
Source Error:
Line 23: Dim db As Database = DatabaseFactory .CreateDatabase ()
Line 24: Dim cmd As System.Data.Com mon.DbCommand =
db.GetStoredPro cCommand(strPro cName)
Line 25: Dim param As Parameter
Line 26: For Each param In objPrameters
Line 27: db.AddInParamet er(cmd, param.Name, param.Type,
param.DefaultVa lue)
We know for sure that there is not syntax error in the changed code.
If we reset IIS and delete everything from "C:\WINDOWS\Mic rosoft.NET
\Framework\v2.0 .50727\Temporar y ASP.NET Files", the website runs fine
again.
Can you suggest why ASP.NET is not recompiling on its own when
something changes?
Will this problem go away if we use pre-compiled DLLs instead of
letting ASP .NET compile in-place? We know that even if we use pre-
compiled DLLs, the "C:\WINDOWS\Mic rosoft.NET\Fram ework
\v2.0.50727\Tem porary ASP.NET Files" directory still gets filled with
DLLs. Not sure why. However, if we have to change something in a code-
behind and create a new DLL and replace it in the vrtual directory,
will we see the same problem as mentioned above?
Please provide some guidance.
Thanks,
Yash This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert Downes |
last post by:
I'm using the following in a page that I'm testing in Mozilla:
p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto}
But the dashed border is extending to the right-edge of the screen. I
want it to only extend as far as it needs to to nicely contain the
content within (a couple of links).
Is width: auto the wrong property to do this? Is Mozilla rendering the
style wrong?
|
by: Kai-Uwe Bux |
last post by:
Hi folks,
I have trouble writing a class, derving from stringstream, that collects
item and once it's done will write them to std::cout in one go. It works
fine except when I use it as a temporary. Here is a tiny test programm:
#include <iostream>
#include <sstream>
|
by: pt |
last post by:
Hallo,
i wonder how it is going to be of this code below regarding of the
return of temporary object.
Prototypes:
===========
bool Activation(TCHAR *c);
std::basic_string<TCHAR> GetFile();
|
by: Dave Rahardja |
last post by:
Hi all,
Although the following definition is legal:
const int& i = 5;
....and that the lifetime of the temporary variable to which i refers is
identical to i itself, why would anyone want to do this instead of a simple
const int i = 5;
|
by: James Foreman |
last post by:
Running UDB 8.2.0 on Suse linux 8.1, as database administrator I do:
declare global temporary table session.animal_noises
(animal varchar(10), noises varchar(10));
insert into session.animal_noises
values ('Duck', 'QUACK');
select *
from session.animal_noises;
| |
by: Andy S. |
last post by:
Hi,
I'm trying to declare and use temporary tables. I have written the
following code in Java. Creating the tablespace (i can see the
tablespace created using the Control Center), the temporary table and
even inserting the values execute fine (even the executeUpdate while
inserting returns a positive number indicating that rows have been
inserted). However, when I select * from the temporary table, 0 rows
are returned and the while loop...
|
by: cc |
last post by:
hi,
how do I make keyboard & mouse temporary not response to desktop
|
by: RainBow |
last post by:
I understand that a compiler synthesises a default constructor if none
is provided by the user ( of course depending on the situation if
synthesis of such c'tor is actually needed in the program e.g if vptr
is needed, default c'tor must be synthesised by compiler).
In the class Temporary below, there is no reason why a compiler should
synthesise a default c'tor.
class Temporary
{
|
by: Klaas Vantournhout |
last post by:
Hi all,
I was wondering if it is possible if you can check in a function if one
of the arguments is temporary.
What I mean is the following. A is a class, foo is a function returning
a class and bar is a function using A is an argument returning something
else
class A;
|
by: casul |
last post by:
Hi All,
Given the following code :
char const & identity( char const &c ) { return c; }
char const & f( ) { return identity('A'); }
char const & g( ) { return 'A'; }
Of course, the compiler complains of function 'g' returning a
|
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...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |