|
Connection String
|
|||
---|---|---|---|
#18+
Здравствуйте! Проблема в следующем: у меня есть wcf сервис и в нем есть метод getConnectionString ConnectionStrig я храню в app файле. Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20.
Код: plaintext
System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs. мой app файл: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8.
И вопрос второй: Как записать новый connectionstring из программы, т.е. сделать метод setConnectionString и как его результат менять connection string в app.config Заранее спасибо! ... |
|||
:
Нравится:
Не нравится:
|
|||
26.03.2011, 08:31 |
|
Connection String
|
|||
---|---|---|---|
#18+
jltn дела в том что класc static? ... |
|||
:
Нравится:
Не нравится:
|
|||
28.03.2011, 09:47 |
|
Connection String
|
|||
---|---|---|---|
#18+
fpj,hfkcz в чем ошибка но не знаю как исправить. Оказывается эта ошибка выскакивает при вызове метода GetConnectionString а почему?... ... |
|||
:
Нравится:
Не нравится:
|
|||
28.03.2011, 11:42 |
|
Connection String
|
|||
---|---|---|---|
#18+
решил проблему. оказывается при вызове getconnectionstring, открывался файл app.config не тот который в проекте сервиса, а конфигурационный файл клиента... а хранить строку подключения у каждого клиента как-то неинтересно, поэтому создал обычный xml файл и класс, который считывает, записывает и удаляет информацию из него. ... |
|||
:
Нравится:
Не нравится:
|
|||
29.03.2011, 14:20 |
|
|
start [/forum/topic.php?fid=19&fpage=22&tid=1397483]: |
0ms |
get settings: |
8ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
61ms |
get topic data: |
8ms |
get forum data: |
3ms |
get page messages: |
41ms |
get tp. blocked users: |
2ms |
others: | 251ms |
total: | 393ms |
0 / 0 |