ورود

View Full Version : سوال: WCF Error



mjsoft
یک شنبه 15 آبان 1390, 18:53 عصر
سلام این فایل کانفیگ من هستش و به نظر درستع ولی error میده
?xml version="1.0" encoding="utf-8" ?>
<configuration>

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

<system.serviceModel>
<services>
<service name="EvalServiceLibrary.EvalService">
<clear />
<endpoint address="ws" binding="wsHttpBinding" contract="EvalServiceLibrary.IEvalService"
listenUriMode="Explicit">
<identity>
<dns value="localhost" />
<certificateReference storeName="My" storeLocation="LocalMachine"
x509FindType="FindBySubjectDistinguishedName" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"
listenUriMode="Explicit" isSystemEndpoint="false">
<identity>
<certificateReference storeName="My" storeLocation="LocalMachine"
x509FindType="FindBySubjectDistinguishedName" />
</identity>
</endpoint>
<endpoint address="basic" binding="basicHttpBinding" contract="EvalServiceLibrary.IEvalService"
listenUriMode="Explicit">
<identity>
<certificateReference storeName="My" storeLocation="LocalMachine"
x509FindType="FindBySubjectDistinguishedName" />
</identity>
</endpoint>
<endpoint address="net.tcp://localhost:8888/EvalService" binding="netTcpBinding"
contract="EvalServiceLibrary.IEvalService" listenUriMode="Explicit">
<identity>
<certificateReference storeName="My" storeLocation="LocalMachine"
x509FindType="FindBySubjectDistinguishedName" />
</identity>
</endpoint>
<endpoint address="net.pipe://localhost/EvalService" binding="netNamedPipeBinding"
bindingConfiguration="" contract="EvalServiceLibrary.IEvalService" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8888/EvalService" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>

<serviceMetadata httpGetEnabled="True"/>

<serviceDebug includeExceptionDetailInFaults="False" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>

</configuration>
این eror هستش که میده هر چی تو اینترنت گشتم پیدا نکردم چیه؟
System.InvalidOperationException: Cannot load the X.509 certificate identity specified in the configuration.
at System.ServiceModel.Description.ConfigLoader.LoadI dentity(IdentityElement element)
at System.ServiceModel.Description.ConfigLoader.LoadS erviceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress)
at System.ServiceModel.ServiceHostBase.LoadConfigurat ionSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection)
at System.ServiceModel.ServiceHostBase.LoadConfigurat ionSectionInternal(ConfigLoader configLoader, ServiceDescription description, String configurationName)
at System.ServiceModel.ServiceHostBase.ApplyConfigura tion()
at System.ServiceModel.ServiceHostBase.InitializeDesc ription(UriSchemeKeyedCollection baseAddresses)
at System.ServiceModel.ServiceHost.InitializeDescript ion(Type serviceType, UriSchemeKeyedCollection baseAddresses)
at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
at Microsoft.Tools.SvcHost.ServiceHostHelper.CreateSe rviceHost(Type type, ServiceKind kind)
at Microsoft.Tools.SvcHost.ServiceHostHelper.OpenServ ice(ServiceInfo info)

ایمان اختیاری
شنبه 28 آبان 1390, 08:27 صبح
این لینک رو ببینید ..

لینک 1 (http://stackoverflow.com/questions/335719/how-can-i-configure-wcf-to-use-x509-certificates-over-the-internet)

لینک 2 (http://wcfsecurity.codeplex.com/wikipage?title=How%20To%20-%20Create%20and%20Install%20Temporary%20Certificat es%20in%20WCF%20for%20Message%20Security%20During% 20Development&ProjectName=wcfsecurity)

saman2
پنج شنبه 18 اسفند 1390, 15:48 عصر
من هم برنامه WCF ام روی فایل کانفیگ اکسپشن میگیره: AddressAccessDeniedException
HTTP could not register URL http://+:8080/MagicEightBallServices/. Your process does not have access rights to this namespace
سورس رو هم کاملا از منبع (موثق)تایپ کردم و خیلی بعیده مشکل داشته باشه.
دوستانی که در اینمورد و چگونگی برطرف کردنش اطلاعات دارن لطفا راهنمایی کنن.(ضمنا من از سی شارپ اکسپرس 2008 و ویندوز 7 استفاده می کنم).

ferankyy
شنبه 20 اسفند 1390, 12:31 عصر
من هم برنامه WCF ام روی فایل کانفیگ اکسپشن میگیره: AddressAccessDeniedException
HTTP could not register URL http://+:8080/MagicEightBallServices/. Your process does not have access rights to this namespace
سورس رو هم کاملا از منبع (موثق)تایپ کردم و خیلی بعیده مشکل داشته باشه.
دوستانی که در اینمورد و چگونگی برطرف کردنش اطلاعات دارن لطفا راهنمایی کنن.(ضمنا من از سی شارپ اکسپرس 2008 و ویندوز 7 استفاده می کنم).

برنامه رو به صورت Run As Administrator اجرا کن خوب میشه