|
You have a problem in your root web.config file. Have you been making manual changes to this file? Go to the web.config file from the error path and look at line 417. Most likely you are somebody else added something to the web.config that is not valid. You might be missing a closing tag or something.
Hope that helps.
Ben
|
|
|
|
|
I have been making changes to this file, but after that error occurred and I only comment all those inside web.config leaving only <configuration> node, but then I get: "No http handler was found for request type 'GET'".
The problem is that 417th line doesn't exist in this web.config file. 415 is the last line.
When I was trying to workaround this problem, I noticed that VS.NET highlighed this in web.config in c:\windows...
<add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
This is inside <assemblies> node and everyone have version=2.0.0.0...
I don't know if it helps if I change the version of all the nodes to 2.0.50727.42 which is the current version of installed .NET framework?
I don't have any solution (.sln) or .csproj file in my ASPNET projects root.
-- modified at 17:25 Sunday 6th May, 2007
|
|
|
|
|
I don't think changing that version will help. That is the dll version which is not the same as the framework version. If that line was getting highlighted then there is a good chance that the error in the config file is somewhere around there. It could be the line before or after. I think if you could put that config file back to its orginal state and then see if you still get the error. I would guess that you would not. Then if you start from that point and slowly add one new line at a time, you migth be able to figure out where the error is. The config file errors can often be a pain. It can sometimes be something simple like a missing
< or >, but sometimes it is not having things in the correct sections, which can be harder to figure out.
Ben
|
|
|
|
|
Thanks for the reply.
For now, it works.
I didn't knew what else to do so I add reference to System.EnterpriseServices hoping that will work and it works .
Compiling and running.
Now I have System.EnterpriseServices.dll in my Bin folder.
Maybe that helps a bit?
I think that this is (definitely) problem something on my computer, so if I deploy ASPNET web site elsewhere, I think that this won't be an issue.
Web.config is back how it was (or I think so ), but I will take a look one more time.
|
|
|
|
|
I think adding the dll is what fixed it. I am glad you figured it out.
Ben
|
|
|
|
|
I hope that I will figure out how to run ASPNET20 project without referencing that dll.
I think that this dll should be reference automatically from GAC?
Thanks for your time and help.
I appreciate that.
|
|
|
|
|
My understanding is that recently you must have added the code behind class in some namespace so what you need to do is
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Namespace.classname" %>
Also just in case if there is still some problem then see the web.config all the sections are properly typed, even change in case could can emit some errors
|
|
|
|
|
I will try it, but I want aspnet20 to work without that reference or inheritance.
Thanks for the reply.
|
|
|
|
|
Hi to all !
I'd like to understand, where in the resulting ..._aspx class goes inline code,
found on the page inside code brackets.
I want to create the dynamic page, where the existence of controls is managed by parameters,
say, from querystring.
Is the following the best way to do it:
<asp:inbox runat="server" ID="box1" .../>
<% if (Request.QueryString.Get("par")=="2"){ %>
<asp:inbox runat="server" ID="box2" .../>
<% } %>
Or I have to get rid of designer and create the page programmaticaly in whole?
Thanks in advance.
Regards,
Gennady
|
|
|
|
|
You could do it that way, but I would suggest looking at the Placeholder control and something to use to hide or show your controls. On you page load even you can check the query string and show or hide the correct placeholders that have the controls in them.
Hope that helps.
Ben
|
|
|
|
|
Hi !
Thank you for your reply. I'll look at this control (I'm new enough in ASP.NET).
But my question was not exactly "how to do", but rather "how it works".
The thing is that I have to create the new .NET version of the existing site that is on high demand (about a million visitors per month). So performance is THE issue. I'd like not to squander resources on creating hidden controls and emitting the javascript code that will never work.
That's why I'm trying to understand what is going on under the hood.
Thanks once more.
Regards,
Gennady
|
|
|
|
|
With the placeholder control, when it is set to false, that html is not rendered in the page. I don't think you would see any performance issue. The code that you had for your example could have some performace issues since it is parsed.
Ben
|
|
|
|
|
Hi !
So, if I've understand right, the inline code goes to the Render method
of the resulting class?
As for Placeholder control, I have to learn it in comparison to Panel
or simply adding controls to the page collection in the Load event handler.
From the glance I cannot see great difference between these three options for my case.
May be in the event propagation model?
Thanks.
Regards,
Gennady
|
|
|
|
|
I don't think that is true. The panel and the placeholder control are similar. The difference is that the panel control can still take up some space in the html. The placeholder control will not.
The example code you used has the <% these tags are parsed later and take more time. Since speed is a concern I think you would be much better off using the placeholder control.
Ben
|
|
|
|
|
kubben wrote: these tags are parsed later and take more time
Thanks, Ben !
This is exactly what I'd like to understand - when and where.
But think, even the placeholder will not be a good alternative.
More I think about it - more I incline to the idea, that the best decision in my case would be
to write the kind of page generator, that will create "static" aspx pages (about 100)
on the base of page template and type definitions from the DB.
This has to provide the performance benefit, yet supporting the desired level of flexibility and
managability. I hope ...
Thanks.
Regards,
Gennady
|
|
|
|
|
For your simple example panels would be good. If you're doing anything really complex though you could take a look at an article I wrote about handling views here: http://www.codeproject.com/useritems/ViewManagerTutorial.asp
Just one more option. I'm honestly not sure how much of a performance impact this would have versus panels. Because of the simplicity of the class though I would have to lean towards that it may be a leaner solution.
If anyone has any discrete data to the contrary please correct me!
-Justin
|
|
|
|
|
Hi !
Thank your for reply.
Concerning viewmanager, and also multiview and view controls - suppose I can use them,
say, to implement the tabs. But not in the case in question.
I think, it's not a good idea - generate 100 views per user request to always show him only one.
Or I didn't understand something?
To understand what type of site I mean - two links to the same site:
emap/English[^]
gj[^]
Thanks.
Regards,
Gennady
|
|
|
|
|
Ahh I see what you're going for. Honestly in that situation I would use the view manager. The reason for that is that the purpose of the class is always to show just one view. The ViewManager only stores references to the controls which I believe should be pretty inexpensive and the time it would take to initialize it should be trivial.
Also when you have such a complicated view it seems like it would be nice to be able to initialize it with a single call.
-Justin
|
|
|
|
|
Whenever I am composing a new email whenreading it in Outlook 2007 the words don't wrap at the end of a line on the right hand side of the screen. I used to use float=right and used to work in outlook 2003.
There is probably a really easy fix but I 'm drawing a blank on this one. Can anyone tell me how to make the make this happen?
Thanks!
|
|
|
|
|
Hi,
I am new to ASP.net 2. I have a wizard in my page and every time I drop a Checkbox Control, the page does not show the box next to the text. Even when i click on it, nothing happens!
Any idea?
Many thanks in advance,
Kamal
|
|
|
|
|
i am trying to send a mail from an asp.net page this is what i did code wise
<br />
MailMessage mailMessage;<br />
mailMessage = new MailMessage();<br />
<br />
mailMessage.To = "mail1@yahoo.com";<br />
mailMessage.From ="mail1_Test@Keroed_corp.com";<br />
<br />
mailMessage.Cc = "mail2@hotmail.com";<br />
<br />
mailMessage.Bcc = "mailingKE@gmail.com";<br />
<br />
mailMessage.BodyFormat = MailFormat.Text;<br />
<br />
mailMessage.Priority = MailPriority.Normal;<br />
<br />
mailMessage.Subject ="Test Mail";<br />
<br />
string bodyText ="Testing send Mail" + Environment.NewLine + "Hopefull this works";<br />
mailMessage.Body = bodyText;<br />
<br />
SmtpMail.SmtpServer = "";<br />
<br />
SmtpMail.Send(mailMessage);<br />
i this works because when i go into C:\Inetpub\mailroot\Queue i see the mails that the page tried to send so i am wondering if i need to do some further configuring to my smtp server in IIS
kenny
|
|
|
|
|
Does your ISP allow sending mail from any server? Some ISPs only allow sending mail through their SMTP server, to prevent spamming.
---
single minded; short sighted; long gone;
|
|
|
|
|
hi
i write this JavaScript Function to change Label1.Text Attribute :
<script language="javascript" type="text/javascript"><br />
function showWaiting(controlName,str)<br />
{<br />
document.getElementById(controlName).innerText = str;<br />
}<br />
</script><br />
<br />
OnClientClick="showWaiting('Label1',waiting ...');"
in normal webpages it's run correctly, but in webpages that inherited from masterPages does not run and don't work, how to solve my problem ? thanks
|
|
|
|
|
Don't repost the same question in a new thread.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
IMO the easy way is that you view the html source code of the page..then to detect where is the problem...
<< >>
|
|
|
|