Sunday, July 20, 2008 Register Login
Search:    Go
 
 


   Mini Anket Minimize  

1. "Module" ün Türkçesi Nedir?







Submit Survey  View Results
     
 Print   
Burada Reklam Ver 468x60 Reklam Bandı


SearchForum Home
     
  DotNetNuke Yardım!  DotNetNuke 4.x Kurulum  "Object re...
 Re: "Object reference not set to an instance of an object." hatası
 
 10/17/2006 4:02:21 PM
User is offlineXeon
50 posts
www.dnnturkiye.com


Re: "Object reference not set to an instance of an object." hatası
 Modified By Xeon  on 10/17/2006 9:37:21 PM)

SQL server ile ilgili yapman gereken özel bir ayar yok...

İstersen remote desktop ile bağlanıp soruna bakabilirim ama zannediyorum bu server test serverı değil ve doğal olarak bana admin hakkı vermek istemeyeceksin...

Aklına gelen her türlü detayı yazmaya çalış. Normal şartlar altında dnn için hiç bir özel ayar gerekmiyor... yapılan tek yar .net framework 2.0 ve dosya erişim hakları... Bunların haricinde yapman gereken hiç bir ayar yok...

Ama SQL kurulumunda özel security ayarları yaptıysan o konu hakkında bir şey söyleyemeyeceğim...


Melih Eroglu
DotNetNuke Türkiye
 10/17/2006 4:03:33 PM
User is offlineesaydam
7 posts


Re: "Object reference not set to an instance of an object." hatası
 Modified By admin  on 10/20/2006 2:24:57 PM)
Kurulum esnası için web.config'de custom errors'u off yaptım. Kurulum yaparken çıkan hata kodu aşağıda. Belki buradan bir şeyler çıkabilir.

Server Error in '/' Application.
The stored procedure 'dbo.GetModuleSetting' doesn't exist. Des c r i p tion: 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.InvalidOperationException: The stored procedure 'dbo.GetModuleSetting' doesn't exist.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <ф@ Page Language="C#" Debug="true" ф>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[InvalidOperationException: The stored procedure 'dbo.GetModuleSetting' doesn't exist.]
System.Data.SqlClient.SqlCommand.DeriveParameters() +878696
System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) +88
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) +212
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) +303
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) +154
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) +36
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) +200
DotNetNuke.Data.SqlDataProvider.GetModuleSetting(Int32 ModuleId, String SettingName) +101
DotNetNuke.Entities.Modules.ModuleController.UpdateModuleSetting(Int32 ModuleId, String SettingName, String SettingValue) +29
DotNetNuke.Entities.Modules.UserModuleBase.UpdateSettings(Int32 portalId, Hashtable settings) +123
DotNetNuke.Entities.Modules.UserModuleBase.GetSetting(Int32 portalId, String settingKey) +79
DotNetNuke.Entities.Profile.ProfileController.FillCollection(IDataReader dr) +175
DotNetNuke.Entities.Profile.ProfileController.GetPropertyDefinitionsByPortal(Int32 portalId) +23
DotNetNuke.Security.Profile.DNNProfileProvider.GetProfileProperties(Int32 portalId, IDataReader dr, UserProfile objProfile) +29
DotNetNuke.Security.Profile.DNNProfileProvider.GetUserProfile(UserInfo& user) +86
DotNetNuke.Entities.Users.UserInfo.get_Profile() +49
DotNetNuke.Services.Upgrade.Upgrade.ParseSuperUser(XmlNode node) +457
DotNetNuke.Services.Upgrade.Upgrade.InstallDNN(String strProviderPath) +1400
DotNetNuke.Framework.Install.InstallApplication() +1171
DotNetNuke.Framework.Install.Page_Load(Object sender, EventArgs e) +274
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


 10/20/2006 7:19:59 PM
User is offlinegreenflash
28 posts
www.mikroproje.com


Re: "Object reference not set to an instance of an object." hatası
Slmlar sorun sanırım collation ayarlarıyla ilgili mailde de cevaplamıştım, ancak önerim Latin1_CI_AS (umarım doğru yazmışımdır) sistemini hem SQL server için hem de dnn için kullanman yönünde olacaktır. dbo larla ilgili sorunu sanırım bu şekilde aşmıştım.

 10/22/2006 12:36:19 PM
User is offlinesahin
6 posts


Re: "Object reference not set to an instance of an object." hatası
Selam esaydam,
Hatayi düzeltmek icin hatanin nerede oldugunu dogru tespit etmek lazim,
benim kanimca sen önemli islemleri dugru yapmissin:
1. web.config dosyasinda veritabanina dogru yönlendirme, bunu sen dogru yapmissin.
2. IIS de Virtual Directory islemi, onuda dogru yapmissin.

1.Gönderdigin hata raporunda, DNN http üzerinden calisabiliyor(bu IIS de Virtual directory islemini dogru yaptiginin kaniti).
2. Ayni raporda veritabanina tablooarin yazidigi listeleniyor(Burda veritabaninin dogru olusturuldugu ve web.config dosyasinda veritabanina dogru yönlendirme yapildiginin kaniti).

Ayni raporda gösterilen hatalarda DNN kurulum asamasinda bazi log dosyalarini yazamadigini Örnegin: "03.01.01.log" bunun gibi birkac dosya bildiriyor. Bu dosyalari DNN kurulum aninda "SqlDataProvider" klasörüne" yaziyor, bu hata bende hic olusmadigi icin dikkatimi cekmemisti,
bu hata bende neden olusmadi ama sende oluyor, bence bunun nedeni, ben DNN'i C:/ partition "Driver" koymuyorum
Ben C: yi sadece windows a ayirdim diger tüm uygulama ve calismalarimi baska Driver üzerinden yapiyorum örnegin
D:/ veya E:/  bunun bana bircok avantaj lari var windows daha performansli calisiyor,
E:/ ye koydugum web uygulamalarinda dosya yazma hakkini vermekten kurtulmus oluyorum.

Senin yazinda ve ayni zamanda hata raporunda da görüldügü gibi  DNN web uygulamani C:/dnn gibi bir yerde bulunduruyorsun, ayni zamanda windows da C:/ de bulunuyor, Windows kendi güvenlik sistemi icinde kendi bulundugu driveri(C:/) tüm disardan gelen emirlere karsi yani(http://) koruyor, bunu Klasör ve dosya yazma haklarini yasaklayarak.
Siz eger uygulamanizi baska Drivere tasimak istemiyorsaniz, dosya yazma hakkini bizzat vermelisiniz, bu sadece dnn icin degil diger web uygulamalariniz icinde gecerli.

Not: Windows explorer üzerinde C:/ ye klasör ve dosya yazmak mümkün ,
        Internet explorer ile C:/ ye kalsör ve dosya yazmak icin önce dosya yazma hakkini vermek lazim.

Bu diger Driverler icin gecerli degil sadece C:/ icin gecerli, bu benim pratik tecrübemden cikardigim sonuclar.

Dosya yazma hakkini nasil verebilirsin?
Bunun icin:

1. windows explore ile degistirmek istedigin klasörün üzerine maouse ile git
  örnek: E:\DNN\Providers\DataProviders\SqlDataProvider (Ben de E:/ benim yapmama gerek yoktur, sende C:/ oldugunu varsayiyorum), ve SqlDataProvider klasörünün üstüne sag tikla,
2. acilan menüden Properties i sec türkcesi ayarlar olmali,
3 acilan dialog penceresinden Güvenlik bölümünü sec (Almancasi Sicherheit ben almanca windows  kullaniyorum)
bu bölümde yazma kutusunu(checkbox). aktivle.

Bunlari yaptiktan sonra DNN kurulumunu yaparsan gerekli metin dosyalarini yazabilecegini saniyorum.

Diger Dirver'e tasirsan DNN i bu islemi yapmana gerek yoktur.
Basarilar sahin.

  DotNetNuke Yardım!  DotNetNuke 4.x Kurulum  "Object re...
Burada Reklam Ver 468x60 Reklam Bandı
 
 
Terms Of Use  Privacy Statement