Hata Günlüğüm


1)Server Error in '/' Application.

Unable to load the specified metadata resource.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.Entity.Core.MetadataException: Unable to load the specified metadata resource.

Source Error:


Line 252:                throw new ArgumentNullException("entity");
Line 253:            }
Line 254:            _objectSet.Add(entity);
Line 255:        }
Line 256:

Bu hatayı App.Configdeki connection stringi Web.Configdeki connectionstring kısmına kopyalarak çözdüm.

2)

Violation of PRIMARY KEY constraint 'PK_AllUser'. Cannot insert duplicate key in object 'dbo.AllUser'. The duplicate key value is (-1).
The statement has been terminated.


Bu hatayı MSSQLSERVERdaki Identity Specification özelliğini yes yaparak çözdüm.

3)

Server Error in '/' Application.


Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 47:             get
Line 48:             {
Line 49:                 return _context.Set<T>();
Line 50:             }
Line 51:         }

Datasouce'a atadığım listeyi ToList() yaparak çözdüm.

System.Linq.Enumerable+WhereSelectListIterator

Bu şekilde görünen stringi First().ToString(); yaparak çözdüm


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





Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.



Page Loadda bir şey doldururken if(!Ispostback) kullanmayınca





Yorumlar

Popüler Yayınlar