.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

Very Basic Question - Error message running first page

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

Hi Everyone,

I am running Windows 7 and I have gone into Control Panel and activated all of the IIS Functions.

The web application I am running was downloaded from the net (and has worked on other machines previously).  Once I downloaded it, I moved it into C:/inetpub/wwwroot/code/main.asp

I am a bit of a novice at this!  But I am hoping someone can point me in the right direction!

 

I get the following error when I try and run the web application through IE:

"An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system administrator please click here to find out more about this error."

(When i click the "click here" button it just goes to the IIS site).

 

Appreciate any help I can get!

Thankyou!

 

 




View Complete Post


More Related Resource Links

Page cannot be found error on clearing cookies while running application

  
Hello all,            I've a web application which is running on sql state session .. And is running well under normal conditions. But when my application is in home page or landing page after loging to the application, if user clears all his history and cookies and click on any menu in the application . It is giving  Internet Explorer cannot display the webpage error.. I'm not able to debug the error.. am getting the same problem even under deploying conditions. How to handle this issue?   Thanks in advance, Hari.

Null reference message Custom Error page

  
how come a Null session value that is called, doesn't get directed to the Custom Error Page?

Basic Web Forms Question Regarding Returning Html To The page

  

I have a web application I am working on but this is using simple web forms.

Long story short I want to create a commenting system similar to that of google sites for example.

All comments are saved to the database against a user id and submission id (meaning they are relevant to the page they are presented on).

Currently I am displaying them in a table using GridView which is kinda well annoying.

Is there anyway to return custom HTML from the server to a palceholder control or something of the like.

Basically run a for loop and fill up a placeholder control with html that will render appropriatelly

I know, its basic but I am a total noob.


Response.Redirect cannot be called in a page callback error message.

  

Hi.  I'm using the Dundas Chart Controls in VS 2005.  These controls are built utilizing AJAX.  I have a basic page with a dundas chart control containing a funnel chart.  The funnel contains Quotes, Sales Orders and Invoices.  When the user clicks on the control, I want to determine whether they clicked on Quotes, Sales Orders or Invoices and transfer to the appropriate Details Page.  I've got the code working to determine which transaction type they clicked on; but, I get the "Response.Redirect cannot be called in a page callback." error when the page tries to redirect.  Note: I get a similar issue if I try server.transfer.

Suggestions?

 Here's my code:

Dim hitTestResult As Dundas.Charting.WebControl.HitTestResult = Chart1.HitTest(e.X, e.Y)

            If Not (hitTestResult Is Nothing) Then

                Dim clicked As Dundas.Charting.WebControl.DataPoint = hitTestResult.Series.Points(hitTestResult.PointIndex)

                Select Case hitTestResult.PointIndex
                    Case 0

                        Response.Redirect(

I can not create Article page in publishing site with a error message related to Microsoft SharePoin

  

I installed MOSS 2010 successfully with all requirements and options. After that It created a Publishing site. But, when I create an article page for news, the error page show that:

--------------------------------------

File Not found Trouble Shoot issues with Microsoft SharePoint Foundation (*).

Correlation ID: 5cce256-b30b-477d-9820-c46238f224a

Date and Time: ...

-----------------------------------------------------

*:it's a link to open an error windows like this Besides, if i create a site with other templates (not Publishing template), I can not also start Publishing feature


Need help with a custom error page that shows the error message details

  

I know how to alter the web config to redirect to an errors page but what I need to do is have the actual offending error message print to that page. This is a special request for testing reasons, I realize the whole point of a custom error page is to provide a user friendly message when an error occurs but for testing we want to show the user the message so they can copy and paste it into a ticketing system we are using for beta testing feedback.

Should I use the global.asax instead? I am pretty new to vb.net and am not sure how to get the actual error message to display on my custom error page. Any guidance would be greatly appreciated.

Thanks



Custom Error Page question

  

I create my own customize error page. The code fragement for catch the eroor as following:

HttpCompileException _ccExp = null;
string _expType = "RunTime Error...";
Exception _lastError = Server.GetLastError();

// Get the Stack Frame
if (_lastError is HttpUnhandledException && _lastError.InnerException != null) _lastError = _lastError.InnerException;
//StackTrace stack = new StackTrace(_lastError.GetBaseException(), true);
StackTrace stack = new StackTrace(_lastError, true);
for (int i = 0; i < stack.FrameCount; i++)
	if (!String.IsNullOrEmpty(stack.GetFrame(i).GetFileName())) {
		_frame = stack.GetFrame(i);
		break;
	}
if (_frame == null) _frame = stack.GetFrame(0);

// Get file name
string _fileName = _frame.GetFileName();

I try get the .aspx file in the last line, "string _fileName = _frame.GetFileName();".
Why I got a url-formed file name such as "http://server/Work/SomeOne.aspx", sometimes,
and other time, I got a physical path such as "D:\websites\MySite\wwwroot\Work\SomeOne.aspx" ?

 


Page IS Valid Validation Error and Message Box Pops up twice which is annoying???

  

Hi,

 

i have a create User Wizard with a Custom Template so I can grab more information from the user who is

registering on my page.  When they click the submit button a window modal popup extender pops up using Javascript code to

show them the Form is being processed.

 

createUserWizard Submit Button


  <asp:Button ID="StepNextButton" runat="server"  CommandName="MoveNext"  OnClientClick="ShowMP();" align="middle" CausesValidation="False"
                                            Text="Submit my Profile"  />
                                                                     

 

Javascript code<

a .NET Framework Int32 error message when running SQL Mmanagement Studio 2008 Express

  

hi,

i'm a newbi to SQL, just installed Microsoft® SQL Server® 2008 Express with Tools(https://www.microsoft.com/downloads/...displaylang=en), also installed the SP1 as requiered and .NET Framework 2.

oh and im running on newly installed WIN 7 Ultimate N x64.

each time when opening mngmnt studio i get a small popup window that says:

---------------------------------------------

Microsoft .NET Framework

Unhandled exeption has occurred in a component in your application. if you click continue the application will ignore this error and attempe to continue.

Method not found: 'Int32

Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomain.

-------------------------------------------------------------------

Bellow i have a "Details"

a .NET Framework Int32 error message when running SQL Mmanagement Studio 2008 Express

  

hi,

i'm a newbi to SQL, just installed Microsoft® SQL Server® 2008 Express with Tools(https://www.microsoft.com/downloads/...displaylang=en), also installed the SP1 as requiered and .NET Framework 2.

oh and im running on newly installed WIN 7 Ultimate N x64.

each time when opening mngmnt studio i get a small popup window that says:

---------------------------------------------

Microsoft .NET Framework

Unhandled exeption has occurred in a component in your application. if you click continue the application will ignore this error and attempe to continue.

Method not found: 'Int32

Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomain.

-------------------------------------------------------------------

Bellow i have a "Details"

WebBrowser control error message page handling

  

Hi.

 

I have WebBrowser control on my winform. When I try navigate to some web-site I get standard IE error pages like:

  • "Navigation to the webpage was canceled"
  • "The address is not valid"
  • "Page couldn't be loaded"
  • etc.

I need to handle these errors and return custom error message to user. Is there any way to solve this issue?

I know about NavigateError event from the OLE DWebBrowserEvents2 interface. I implemented it. But when some navigation error occures I need stay at page from which user tried navigate (CanGoBack property returns false if it's first page).

Is it real? How?

Thanks.

 


how to keep error message label in center of page ?

  

In winfomr I am usign a label to display different messages like success or falure and any other error message.

Please guide how to keep error message label in center of form. I want to make it centerilzed no matter text in it is one word or a sentense.

Kindly guide how to do that.


Handling 404 page not found with Error page

  

Hi,

      How do i handle 404 page not found?


Inserting personal error message in ValidationSummary

  

Hi,

I am creating a web form that requires a lot of validation. I use many of the validation control in asp.net already like RequiredFieldValidator and CompareValidator. 

My Problem: after my custom validation for the value entered return an error message, and I pressed enter key when the field is empty, my custom error message is overlapped by my ValidationSummary. 

Setting my custom error to visible = false on button click also does not seem to work as it requires for me to enter the value first.

This made me think, is there a way to insert my custom validation inside the ValidationSummary as an error message like for other validation control?

Thanks in advance


Some basic MVC question

  
  1. In regular asp net I can run (debug) the application but I can either "view in browser" that gives me the option to view the application and write code on same time.

In MVC I can't find this option.

  1. What is the basic DATA MODEL for working with SQL DB.

I mean with no any framework (entity framework, Sub sonic, Link to SQL etc')

I look for basic application that works with data but with no fw.

  1. What is the popular DB framework that working with data.
  2.  I am looking on  mvc series

Like

C# Soup To Nuts  (the best series ever)

http://blogs.msdn.com/b/wsteele/archive/2007/01/29/c-soup-to-nuts-webcast-links.aspx

I watch some of the MVC video, seems that the music store is good but I have to wait to the other part.

Does any one know and recommend   a Microsoft MVC tutorial?

https://msevents.microsoft.com/CUI/AdvancedSearch.aspx?culture=en-US#advsearchloaded

 

Thanks!

 


urlrouting - page not found error

  

I have a dynamic data site setup and running locally fine from vs 2008.

When i deploy to a remote windows 2003 server (IIS6), all the pages also work ok apart from one page/table.  I can access it's list page,  but the edit and insert pages throw 404 errors.

I'm thinking it's a url routing/hosting issue as i've copied back the database from the remote server and it all works fine on my local machine.

Is there anything i can do to debug this behaviour?

Below is my register routes entry from the global.asax

Any suggestions greatly appreciated as, i've been stuck on this for days :(


public static void RegisterRoutes(RouteCollection routes)
{
    MetaModel model = new MetaModel();
    model.FieldTemplateFactory = new AdvancedFieldTemplateFactory();

    model.RegisterContext(typeof(Sponsorship.Data.Entities), new ContextConfiguration() { ScaffoldAllTables = false });
    model.DynamicDataFolderVirtualPath = "~/admin/DynamicData";

    routes.Add(new DynamicDataRoute("admin/{table}/{action}.aspx")
    {
        Constraints = new RouteValueDictionary(new { action = "List|Details|Edit|Insert" }),

create user wizard login error message dont show in a message box?

  

hi

 

i am using create user wizard and capturing other information within content template when a new user

registers. Some of the textboxes are binded to required field validators.

 

there is a validation control on the page and ShowMessage box is True.

If they dont complete some of the text boxes then the message box pops Up with the error message.

It does not however include information errors like "User already exists" or Email address already exists

from the create user wizard membership  UserName and Password Textboxes

 

is it possilbe to hook all of these up so I get one message box with all errors including membership ones?

 

thanks

 


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend