|
|
still the same error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 38: ASP.NET to identify an incoming user.
Line 39: -->
Line 40: <authentication mode="Forms">
Line 41: <forms name="MyAuth" cookieless="AutoDetect" />
Line 42: </authentication>
Source File: e:\inetpub\host134\vicinternational\vicinternational.vic.edu.au\www\vic\web.config Line: 40
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
cheers,
sneha
|
|
|
|
|
I checked this as well. But this is not the problem. I am unable to understand what is creating the problem.
cheers,
sneha
|
|
|
|
|
Most of the times this error comes if you have your project directory contains the backup copy of the same project. So in that case, multiple copies of web.config exist for the same project. It is very strange that it is not true in your case as you told that you already checked it. Can you check it once more? I think something is getting missed.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
I checked thoroughly but didn't find another web.config.
Is there any special settings in web.config for it to be configured.
I used
debug="false"
<authentication mode="Forms">
<forms name="MyAuth" cookieless="AutoDetect" />
</authentication>
<customErrors mode="Off" defaultRedirect="~/Error.aspx">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
these are the main settings I have done. Are they correct?
cheers,
sneha
|
|
|
|
|
Changes that you have done with the web.config should not have created an impact like this. Have you tried to run the project directlty from Visual Studio.NET? Is it giving error on that case also?
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
Yes yes tried that. It is running perfectly.
cheers,
sneha
|
|
|
|
|
Are you using IIS 6.0? If it is then create a new virtual directory with a separate application pool (not the default one). You can refer the following url:
http://aspalliance.com/1464_Deploying_ASPNET_Applications.all[^]
All the best and may your problem get solved soon.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
|
|
I have a user control with some textboxes and linkbuttons,
when I write some text in one of the textboxes and then hit the enter key, the page load event fires.
is it possible to cause one of the other page's events to fire?
|
|
|
|
|
Set defaultButton property of the form to the button that you want to use.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
hi benams,
What i have understood, the solution is "javascript" check for e.keycode (or e.which) and compare it with 13 the ascii value for enter key then u can call method __doPostBack("control_name","event_to_call") this will cause the postback to the spcified event in the code behind file. Check out if this helps
regards
|
|
|
|
|
I tryed __doPostBack("lnb","Click") and __doPostBack("lnb","OnClick"). Both of them cause postback, but non of them fires the Click event of the wanted contorl...
|
|
|
|
|
hey benams,
So according to ur present senario, i guess one of the following 2 will help
1. In case the control use server side event u wanna fire is an html control with runat="server" tag, in that case u need to use javascript in the following manner
<script language=javascript type=text/javascript>
function checkKey()
{
var key;
key = window.event.keyCode;
if(key==13)
{
var btn = document.getElementById("Control_ID");
if(btn!=null)
{
btn.focus();
btn.ServerClick();
}
}
}
</script>
2) In case the control is an asp control starting with asp: then in that case the earlier way i suggested is appropriate, further follow this link to clear ur doubts
Hope this helps, and if not feel free to query again
Till then happy coding
|
|
|
|
|
I have a web user control with some linkbuttons. I add it dinamically to an aspnet page a few times in the pageload event.
When I click on one of the linkbutttons at first time, the onclick event doesnt fire(only pageload fires), but at the other times I do it, the link button onclick event fires.
I want the event to fire at any click, anyone has an idea how can I fix it?
|
|
|
|
|
Hi,
Where did you set the attribute? You should set the attribute after adding the control. The controls should be rendered first and then attributes should be set.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
Hi,
what attribute do you mean? I put the onclick="lnb_Click" in the aspx page(where I declare the link button). I also tryed to put in Page_load, Page init and PreRender. Nothing of them works
|
|
|
|
|
Earlier you have mentioned that you have added it dynamically. Have you set the attributes to that link button on page load?
LinkButton1.Attributes.Add("onClick", "alert('hello');");
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
I don't add a link button dinamically, I add a web user control dinamically.
I set it to be:
lnb.Click += new EventHandler(func); (I want it to execute a server method)
* I do it in on the Page_Load of the user control(not of the aspx page)
maybe it's neccessary to access the link button from the page thar contains my user control?
|
|
|
|
|
-- =============================================
-- Author: anbu
-- Create date:
-- Description: sp to check login and to set theme
-- =============================================
CREATE PROCEDURE EscIndexLoginCheckTheme
@username varchar(500),
@password varchar(500)
AS
BEGIN
declare @IsAlreadyexist as int
declare @sessionvalue as int
if exists(Select empguid from empmaster where employeeid=@username and password=@password and status=0)
begin
select @IsAlreadyexist=0 -- Login Available
Select @sessionvalue= empmaster.EmpGUID,Themesetting.th_name from empmaster inner join EmpTheme on empmaster.EmpGUID = EmpTheme.EmpGUID inner join Themesetting on EmpTheme.themeid = Themesetting.themeid
where employeeid=@username and password=@password
end
else
Begin
select @IsAlreadyexist=1 -- Invalid Login
end
select @IsAlreadyexist as Result,@sessionvalue as id
END
i am getting the following error
"A SELECT statement that assigns a value to a variable must not be combined with data-retrieval operations."
|
|
|
|
|
Seems like a SQL question to me.... Did you google the error message ?
anbusenthil wrote: Select @sessionvalue= empmaster.EmpGUID,Themesetting.th_name from empmaster inner join EmpTheme on empmaster.EmpGUID = EmpTheme.EmpGUID inner join Themesetting on EmpTheme.themeid = Themesetting.themeid
where employeeid=@username and password=@password
Assuming the error means exactly what is says, in plain English, you can't selecet th_name into a table AND select EmpGUID into @sessionvalue at the same time. That's assuming the error message means exactly what it says.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
First of all this is ASP.NET Forum, there is separate Forum for SQL . So that would the proper place for ask this questions.
anbusenthil wrote: Select @sessionvalue= empmaster.EmpGUID,Themesetting.th_name from empmaster inner join EmpTheme on empmaster.EmpGUID = EmpTheme.EmpGUID inner join Themesetting on EmpTheme.themeid = Themesetting.themeid
where employeeid=@username and password=@password
Did you validate the statement?
|
|
|
|
|
pls correct t stored proc and send me back
tanx
|
|
|
|
|
anbusenthil wrote: pls correct t stored proc and send me back
We are here to give you the solution not to do the job for you. All of us has pointed out the error in the SP, now its your job to correct it.
|
|
|
|