|
m2a2011 wrote: Only one <configsections> element allowed per config file and if present must be the first child of the root <configuration> element.
This is plain english. It means what it says. Services like babel fish will translate it into whatever language you prefer, or, if you don't speak English well enough to understand this, then I'm sure there's a visual studio version in a language you would prefer.
I can't explain it any clearer than what the error message says. If you can't understand the error message, you won't understand my reply, as it will also be in English.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I created a web app in ASP.NET via Visual Studio 2008. I then uploaded it to my web hosting dir. But the app won't work as there is a config error trying to load System.Web.Extensions. OK, from what I can gather, there are 2 assemblies that need to be loaded, so I uploaded them to the web hosting dir, and instructed the web hoster to restart the server. But it still won't work, and the web hoster is saying that it is my fault.
Anyway, aside from fixing this error, doesn't it seem that a web hoster that claims to be able to host an ASP.NET application should be able to handle a "Hello World" web app produced by the latest Visual Studio? If there are any issues, shouldn't the web hoster be aware of them (especially after I have pointed it out)?
|
|
|
|
|
where did you put those dll ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Depends on the web host and their setup. Some may well be hosting 2.0 and not 3.5.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
System.Web.Extensions needs ASPNET Ajax installed. .NET 3.5 has it already. It is loaded in GAC with strong key. Check if you are using Public Token for it(I guess it is ) in your web.config.
I think you should install .NET 3.5 to the server before you could use it. If you are having Public token, you cant paste it to the bin directory and make it working.
|
|
|
|
|
Is the right version of the framework selected in the web application properties in IIS?
Rob
http://tagyurit.com
r
|
|
|
|
|
hi,
developing an ajax enabled site.
i am having a master page which has a asp:scriptmanager control. when i inherit the master page in my aspx page i am unable to get the asp:update panel control in the page aspx page.
Sandeep Kumbhar
|
|
|
|
|
Can U rephrase the Question. If u didnt see it in controls Try To Use Dll Again
If It Helps Click It as Answer
|
|
|
|
|
sanjubaba wrote: unable to get the asp:update panel control in the page
Clarify this.
only two letters away from being an asset
|
|
|
|
|
hi,
kindly view the following masterpage code
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<%@ Register Src="~/User_Controls/General/ctlHeader.ascx" TagName="ctlHeader" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager></asp:ScriptManager>
<div>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td style="height: 102px" valign="top">
<uc1:ctlHeader ID="uctlHeader" runat="server" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td align="center">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
<asp:UpdatePanel></asp:UpdatePanel>
</asp:contentplaceholder>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
In the master page i am able to get the <asp:UpdatePanel>
But in the content page where i am inheriting the master page, i m unable to get <asp:UpdatePanel>
view the content page code aspx page:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="testupdatepanel.aspx.cs" Inherits="Forms_testupdatepanel" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
Sandeep Kumbhar
|
|
|
|
|
sanjubaba wrote: i m unable to get <asp:updatepanel>
What do you mean? You can't type <asp:updatepanel>?
only two letters away from being an asset
|
|
|
|
|
I'm trying to use Response.TransmitFile in ASP.NET 2.0 instead of reading and writing chunks to a buffer for large files.
The questions I want to ask are:
1. Does anyone know how efficient Response.TransmitFile is? I can see that it doesn't add up the memory usage to IIS at all, but I'm not sure the impact on the server itself compared with reading and writing to a buffer in chunks.
2. What about security? by using Response.TransmitFile
Thanks,
|
|
|
|
|
Read this[^]
"Need Help" is not very good subject line and is probably the reason your question has been ignored.
only two letters away from being an asset
|
|
|
|
|
amarnath n.n wrote: 1. Does anyone know how efficient Response.TransmitFile is? I can see that it doesn't add up the memory usage to IIS at all, but I'm not sure the impact on the server itself compared with reading and writing to a buffer in chunks.
AFAIK, Response.TransmitFile directly writes the file in the Response stream, which is similar to reading and writing chunks to a buffer. It flushes the buffer once the file is written to the output stream.
amarnath n.n wrote: 2. What about security? by using Response.TransmitFile
There is no relation of Security with this. Its actually reading the file from a specified physical location of the server and writes the file directly to the stream. If asp.net user has permission to that folder, it can transmit the file properly.
|
|
|
|
|
I never had to use Response.TransmitFile . IMO, simple method to transmit files is to redirect to the file name. Rest all will be automatically taken care.
|
|
|
|
|
You are assuming that the file is in the folder structure. Many, store files out of the folder structure of the website so they can be properly secured on a user to user basis.
|
|
|
|
|
Hello,
I have created a web user control and that contain a javascript method that check for required field. if there is a required filed not filled it return an alert. the problem is that the page post back not in the control pageload but the page that contain that control. how can i prevent from post back when a special field is required.
regards.
dghdfghdfghdfghdgh
|
|
|
|
|
To call a javascript function prior to postback, take the button out of the form. Use the button to call javascript, and if everything is ok, use the javascript to call form.submit().
Rob
http://tagyurit.com
r
|
|
|
|
|
use
onclick = "return yourfunction()"
Now from the function return false when you show the alert, the page will then not be posted back.
function yourfunction()
{
if ...
{
alert('invalid');
return false;
}
return true;
}
|
|
|
|
|
Hi.
Hoping you guys can help me, and more importantly, the message I'm typing actually conveys my problem. I've come across a few forums where guys having my same problem, being answered in the way we don't want to.
My intranet website currently uses session variables and cookies to authenticate user. I would like to use the Active Directory login details of the user to gain access to the intranet. Now, to gain access to a PC, a user needs to login using his AD un and pwd, so surely the logged on user should be known somewhere.
So instead of using sessions and cookies, I want the user currently logged details, and directly log on to my intranet website. So I don't need to prompt the user again for details.
I think a step in the right direction would be to at least get the logged on user.
System.DirectoryServices DirectoryEntry and -Searcher doesn't really get you the logged on user. You can use these to search and add entries, but ya, they still don't provide me with the currently logged on user.
Going to IIS and Disabling anonymous access, and setting Integrated security. Kinda helps, but then my users still get prompted for a username and password. And yaaa, once again, I don't want that pop-up, because the user already needed to logon to the PC using his/her AD details, why can't IIS just use that.
And Lastly.
WindowsPricipal and Context.User.Identity.Name.... well, they only get set once the user logs in on that IIS popup I mentioned early, or simply not display anything when anonymous access is allowed.
I guess a short version is...
How do I plug my intranet into my active directory, without prompting the user for details again.
Hope my problem is stated clearly.
Thanks
|
|
|
|
|
Is your client, web server, and active directory server all on the same domain (or at least trusted among multiple domains)? This is a must in order to get authentication to work seamlessly.
rob
http://tagyurit.com
|
|
|
|
|
Try this for getting currently logged user name..
private string GetCurrentLoggedUser()
{
return System.Environment.UserName.ToString();
}
System.Environment.UserName - It return the logged user on the target OS.
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
Thanks
Md. Marufuzzaman
|
|
|
|
|
I have my intranet working just like that and use Context.User.Identity.Name to get the Domain\Username of the person accessing without pop ups.
There's 2 things I can think of that you need to do (since you already enabled integrated security)
1. As the person before said, the server must be in the same domain
2. The users need to have read access to the files by virtue of AD... in my case, I have a security group with all my users that is also a user in the server. if I remove these permissions from a particular app folder then I get the pop up asking for name and password.
hope it helps
|
|
|
|
|
Hi.
1. Very good point. My server isn't on the same domain. I do have a development test server that is on the same domain, I'll have to try the concept on that server.
2. I'm gonna rephrase the suggestion you're giving in point 2 just to see whether I understand you. And I'll also point out which parts aren't clear to me. By "users having read access...by AD", does this mean I need to setup/allow read access to all users via the normal right-click folder-> Security -> allow read etc. Or perhaps a security group in AD itself. I think the first suggestion is the correct one.
Thanks guys. I'll give these suggestions a shot. I won't mark this as completed yet.
I don't wanna through you guys too much off track. My intranet actually leverages off VBscript. But trying to get (below) to work is even more of a challenge. Even after registering the proper COM components. Arrgh.
But I'll give .Net a run and see how that goes.
set sysInfo = CreateObject("ADSystemInfo")
Response.Write(sysInfo.Name)
|
|
|
|
|
I've found this article [Windows support]
There's a very interesting section briefly explain the problem I'm receiving.
Integrated Windows authentication
Integrated Windows authentication is more secure than basic authentication and it functions well in an Intranet environment where users have Windows domain accounts. In integrated Windows authentication, the browser attempts to use the current user's credentials from a domain logon and if this fails, the user is prompted to enter a user name and password. If you use integrated Windows authentication, the user's password is not transmitted to the server. If the user has logged on to the local computer as a domain user, the user does not have to authenticate again when the user accesses a network computer in that domain.
NOTE: You cannot use integrated Windows authentication through a proxy server.
But as you can see, no real explanation of why it wouldn't get the user's domain logon. Or what needs to be done to allow the browser to get the domain logon
|
|
|
|