mohammad-seifi
پنج شنبه 14 دی 1391, 14:20 عصر
یه وب سایت داریم که بخش سبد خرید را با پروفایل درست کردیم
روی یه هاست ایرانی راه اندازی کردیم بدون مشکل داره کار می کنه
اما یه هاست خارجی خریدیم متاسفانه خطای زیر را تولید می کند
The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.
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.Configuration.Provider.ProviderException: The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.
Source Error:
[No relevant source lines]
Source File: App_Code.p37lohmi.2.cs Line: 30
Stack Trace:
[ProviderException: The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.]
System.Web.DataAccess.SqlConnectionHelper.EnsureSq lExpressDBFile(String connectionString) +2588927
System.Web.DataAccess.SqlConnectionHelper.GetConne ction(String connectionString, Boolean revertImpersonation) +113
System.Web.Profile.SqlProfileProvider.GetPropertyV aluesFromDatabase(String userName, SettingsPropertyValueCollection svc) +772
System.Web.Profile.SqlProfileProvider.GetPropertyV alues(SettingsContext sc, SettingsPropertyCollection properties) +433
System.Configuration.SettingsBase.GetPropertiesFro mProvider(SettingsProvider provider) +258
System.Configuration.SettingsBase.GetPropertyValue ByName(String propertyName) +132
System.Configuration.SettingsBase.get_Item(String propertyName) +102
System.Web.Profile.ProfileBase.GetInternal(String propertyName) +36
System.Web.Profile.ProfileBase.get_Item(String propertyName) +68
System.Web.Profile.ProfileBase.GetPropertyValue(St ring propertyName) +7
ProfileCommon.get_Cart() in App_Code.p37lohmi.2.cs:30
ShoppingCart.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\e-glarastore.com\httpdocs\UserControls\ShoppingCart. ascx.cs:19
System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456
در ضمن هاست خارجیه فقظ انتخاب asp.net 2 و 4 را داراست در حالی که ورژن asp.net ما 3.5 میباشد
البته چون بقیه صفحات به درستی کار می کند فک نکنم مشکل از ورژن باشد
در ضمن از کلاس استفاده کردم
یعنی یه کلاس تعریف کردم و توی وب کانفیگ ست کردم
در هاست قبلی به درست کار میکنه اما در هاست جدید مشکل داره و error رو تولید می کنه
روی یه هاست ایرانی راه اندازی کردیم بدون مشکل داره کار می کنه
اما یه هاست خارجی خریدیم متاسفانه خطای زیر را تولید می کند
The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.
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.Configuration.Provider.ProviderException: The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.
Source Error:
[No relevant source lines]
Source File: App_Code.p37lohmi.2.cs Line: 30
Stack Trace:
[ProviderException: The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.]
System.Web.DataAccess.SqlConnectionHelper.EnsureSq lExpressDBFile(String connectionString) +2588927
System.Web.DataAccess.SqlConnectionHelper.GetConne ction(String connectionString, Boolean revertImpersonation) +113
System.Web.Profile.SqlProfileProvider.GetPropertyV aluesFromDatabase(String userName, SettingsPropertyValueCollection svc) +772
System.Web.Profile.SqlProfileProvider.GetPropertyV alues(SettingsContext sc, SettingsPropertyCollection properties) +433
System.Configuration.SettingsBase.GetPropertiesFro mProvider(SettingsProvider provider) +258
System.Configuration.SettingsBase.GetPropertyValue ByName(String propertyName) +132
System.Configuration.SettingsBase.get_Item(String propertyName) +102
System.Web.Profile.ProfileBase.GetInternal(String propertyName) +36
System.Web.Profile.ProfileBase.get_Item(String propertyName) +68
System.Web.Profile.ProfileBase.GetPropertyValue(St ring propertyName) +7
ProfileCommon.get_Cart() in App_Code.p37lohmi.2.cs:30
ShoppingCart.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\e-glarastore.com\httpdocs\UserControls\ShoppingCart. ascx.cs:19
System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456
در ضمن هاست خارجیه فقظ انتخاب asp.net 2 و 4 را داراست در حالی که ورژن asp.net ما 3.5 میباشد
البته چون بقیه صفحات به درستی کار می کند فک نکنم مشکل از ورژن باشد
در ضمن از کلاس استفاده کردم
یعنی یه کلاس تعریف کردم و توی وب کانفیگ ست کردم
در هاست قبلی به درست کار میکنه اما در هاست جدید مشکل داره و error رو تولید می کنه